diff options
Diffstat (limited to 'scene/gui/line_edit.h')
-rw-r--r-- | scene/gui/line_edit.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h index 64c37861d0..0746547115 100644 --- a/scene/gui/line_edit.h +++ b/scene/gui/line_edit.h @@ -37,7 +37,7 @@ */ class LineEdit : public Control { - GDCLASS( LineEdit, Control ); + GDCLASS(LineEdit, Control); public: enum Align { @@ -91,7 +91,6 @@ private: Timer *caret_blink_timer; - void _text_changed(); bool expand_to_text_length; @@ -122,16 +121,16 @@ private: void _gui_input(InputEvent p_event); void _notification(int p_what); - protected: static void _bind_methods(); + public: void set_align(Align p_align); Align get_align() const; - virtual Variant get_drag_data(const Point2& p_point); - virtual bool can_drop_data(const Point2& p_point,const Variant& p_data) const; - virtual void drop_data(const Point2& p_point,const Variant& p_data); + virtual Variant get_drag_data(const Point2 &p_point); + virtual bool can_drop_data(const Point2 &p_point, const Variant &p_data) const; + virtual void drop_data(const Point2 &p_point, const Variant &p_data); void menu_option(int p_option); PopupMenu *get_menu() const; @@ -170,7 +169,7 @@ public: void set_secret(bool p_secret); bool is_secret() const; - void select(int p_from=0, int p_to=-1); + void select(int p_from = 0, int p_to = -1); virtual Size2 get_minimum_size() const; @@ -180,10 +179,8 @@ public: virtual bool is_text_field() const; LineEdit(); ~LineEdit(); - }; - VARIANT_ENUM_CAST(LineEdit::Align); #endif |