Skip to content

Commit

Permalink
Make Widget as primary base:
Browse files Browse the repository at this point in the history
Allow to have Widget base and widget pointer inter-convertible.
Needed for some binder (as tolua++) which might store pointer as `void*` and cast back to base for virtual call).
  • Loading branch information
Jarod42 committed Sep 21, 2024
1 parent 3aaeae1 commit eb46afe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions include/guisan/widgets/dropdown.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ namespace gcn
* will be sent to all action listeners of the drop down.
*/
class GCN_CORE_DECLSPEC DropDown :
public Widget,
public ActionListener,
public KeyListener,
public MouseListener,
public FocusListener,
public SelectionListener,
public Widget
public SelectionListener
{
public:
/**
Expand Down
4 changes: 2 additions & 2 deletions include/guisan/widgets/scrollarea.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ namespace gcn
* ScrollArea.
*/
class GCN_CORE_DECLSPEC ScrollArea:
public MouseListener,
public Widget
public Widget,
public MouseListener
{
public:
/**
Expand Down
6 changes: 3 additions & 3 deletions include/guisan/widgets/tab.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ namespace gcn
* @see TabbedArea
* @since 0.8.0
*/
class GCN_CORE_DECLSPEC Tab:
public MouseListener,
public Widget
class GCN_CORE_DECLSPEC Tab :
public Widget,
public MouseListener
{
public:

Expand Down
6 changes: 3 additions & 3 deletions include/guisan/widgets/tabbedarea.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ namespace gcn
*
* @since 0.8.0
*/
class GCN_CORE_DECLSPEC TabbedArea:
class GCN_CORE_DECLSPEC TabbedArea :
public Widget,
public ActionListener,
public KeyListener,
public MouseListener,
public Widget
public MouseListener
{
friend class Tab;

Expand Down

0 comments on commit eb46afe

Please sign in to comment.