LineEdit.pkg 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $#include "LineEdit.h"
  2. class LineEdit : public BorderImage
  3. {
  4. LineEdit(Context* context);
  5. virtual ~LineEdit();
  6. void SetText(const String& text);
  7. void SetText(const char* text);
  8. void SetCursorPosition(unsigned position);
  9. void SetCursorBlinkRate(float rate);
  10. void SetMaxLength(unsigned length);
  11. void SetEchoCharacter(unsigned c);
  12. void SetCursorMovable(bool enable);
  13. void SetTextSelectable(bool enable);
  14. void SetTextCopyable(bool enable);
  15. const String& GetText() const;
  16. unsigned GetCursorPosition() const;
  17. float GetCursorBlinkRate() const;
  18. unsigned GetMaxLength() const;
  19. unsigned GetEchoCharacter() const;
  20. bool IsCursorMovable() const;
  21. bool IsTextSelectable() const;
  22. bool IsTextCopyable() const;
  23. Text* GetTextElement() const;
  24. BorderImage* GetCursor() const;
  25. tolua_property__get_set String& text;
  26. tolua_property__get_set unsigned cursorPosition;
  27. tolua_property__get_set float cursorBlinkRate;
  28. tolua_property__get_set unsigned maxLength;
  29. tolua_property__get_set unsigned echoCharacter;
  30. tolua_property__is_set bool cursorMovable;
  31. tolua_property__is_set bool textSelectable;
  32. tolua_property__is_set bool textCopyable;
  33. tolua_readonly tolua_property__get_set Text* textElement;
  34. tolua_readonly tolua_property__get_set BorderImage* cursor;
  35. };