diff options
Diffstat (limited to 'scene/gui/base_button.h')
| -rw-r--r-- | scene/gui/base_button.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scene/gui/base_button.h b/scene/gui/base_button.h index 83c66326c5..9a5213d971 100644 --- a/scene/gui/base_button.h +++ b/scene/gui/base_button.h @@ -42,9 +42,9 @@ class BaseButton : public Control { OBJ_TYPE( BaseButton, Control ); bool toggle_mode; - + struct Status { - + bool pressed; bool hovering; bool press_attempt; @@ -55,15 +55,15 @@ class BaseButton : public Control { int pressing_button; } status; - + ButtonGroup *group; - + protected: - + virtual void pressed(); virtual void toggled(bool p_pressed); static void _bind_methods(); @@ -82,7 +82,7 @@ public: DrawMode get_draw_mode() const; /* Signals */ - + bool is_pressed() const; ///< return wether button is pressed (toggled in) bool is_pressing() const; ///< return wether button is pressed (toggled in) bool is_hovered() const; @@ -90,7 +90,7 @@ public: void set_pressed(bool p_pressed); ///only works in toggle mode void set_toggle_mode(bool p_on); bool is_toggle_mode() const; - + void set_disabled(bool p_disabled); bool is_disabled() const; @@ -98,7 +98,7 @@ public: bool get_click_on_press() const; - BaseButton(); + BaseButton(); ~BaseButton(); }; |