LineEdit.pkg 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. void SetDoubleClickInterval(float interval);
  16. const String& GetText() const;
  17. unsigned GetCursorPosition() const;
  18. float GetCursorBlinkRate() const;
  19. unsigned GetMaxLength() const;
  20. unsigned GetEchoCharacter() const;
  21. bool IsCursorMovable() const;
  22. bool IsTextSelectable() const;
  23. bool IsTextCopyable() const;
  24. Text* GetTextElement() const;
  25. BorderImage* GetCursor() const;
  26. float GetDoubleClickInterval() const;
  27. tolua_property__get_set String& text;
  28. tolua_property__get_set unsigned cursorPosition;
  29. tolua_property__get_set float cursorBlinkRate;
  30. tolua_property__get_set unsigned maxLength;
  31. tolua_property__get_set unsigned echoCharacter;
  32. tolua_property__is_set bool cursorMovable;
  33. tolua_property__is_set bool textSelectable;
  34. tolua_property__is_set bool textCopyable;
  35. tolua_readonly tolua_property__get_set Text* textElement;
  36. tolua_readonly tolua_property__get_set BorderImage* cursor;
  37. tolua_property__get_set float doubleClickInterval;
  38. };