Console.pkg 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. $#include "Engine/Console.h"
  2. class Console : public Object
  3. {
  4. void SetDefaultStyle(XMLFile* style);
  5. void SetVisible(bool enable);
  6. void Toggle();
  7. void SetAutoVisibleOnError(bool enable);
  8. void SetCommandInterpreter(const String interpreter);
  9. void SetNumBufferedRows(unsigned rows);
  10. void SetNumRows(unsigned rows);
  11. void SetNumHistoryRows(unsigned rows);
  12. void SetFocusOnShow(bool enable);
  13. void UpdateElements();
  14. XMLFile* GetDefaultStyle() const;
  15. BorderImage* GetBackground() const;
  16. LineEdit* GetLineEdit() const;
  17. Button* GetCloseButton() const;
  18. bool IsVisible() const;
  19. bool IsAutoVisibleOnError() const;
  20. const String GetCommandInterpreter() const;
  21. unsigned GetNumBufferedRows() const;
  22. unsigned GetNumRows() const;
  23. void CopySelectedRows() const;
  24. unsigned GetNumHistoryRows() const;
  25. unsigned GetHistoryPosition() const;
  26. const String GetHistoryRow(unsigned index) const;
  27. bool GetFocusOnShow() const;
  28. tolua_property__get_set XMLFile* defaultStyle;
  29. tolua_readonly tolua_property__get_set BorderImage* background;
  30. tolua_readonly tolua_property__get_set LineEdit* lineEdit;
  31. tolua_readonly tolua_property__get_set Button* closeButton;
  32. tolua_property__is_set bool visible;
  33. tolua_property__is_set bool autoVisibleOnError;
  34. tolua_property__get_set String commandInterpreter;
  35. tolua_property__get_set unsigned numBufferedRows;
  36. tolua_property__get_set unsigned numRows;
  37. tolua_property__get_set unsigned numHistoryRows;
  38. tolua_readonly tolua_property__get_set unsigned historyPosition;
  39. tolua_property__get_set bool focusOnShow;
  40. };
  41. Console* GetConsole();
  42. tolua_readonly tolua_property__get_set Console* console;
  43. ${
  44. #define TOLUA_DISABLE_tolua_EngineLuaAPI_GetConsole00
  45. static int tolua_EngineLuaAPI_GetConsole00(lua_State* tolua_S)
  46. {
  47. return ToluaGetSubsystem<Console>(tolua_S);
  48. }
  49. #define TOLUA_DISABLE_tolua_get_console_ptr
  50. #define tolua_get_console_ptr tolua_EngineLuaAPI_GetConsole00
  51. $}