Console.pkg 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 AddAutoComplete(const String option);
  14. void RemoveAutoComplete(const String option);
  15. void UpdateElements();
  16. XMLFile* GetDefaultStyle() const;
  17. BorderImage* GetBackground() const;
  18. LineEdit* GetLineEdit() const;
  19. Button* GetCloseButton() const;
  20. bool IsVisible() const;
  21. bool IsAutoVisibleOnError() const;
  22. const String GetCommandInterpreter() const;
  23. unsigned GetNumBufferedRows() const;
  24. unsigned GetNumRows() const;
  25. void CopySelectedRows() const;
  26. unsigned GetNumHistoryRows() const;
  27. unsigned GetHistoryPosition() const;
  28. const String GetHistoryRow(unsigned index) const;
  29. bool GetFocusOnShow() const;
  30. tolua_property__get_set XMLFile* defaultStyle;
  31. tolua_readonly tolua_property__get_set BorderImage* background;
  32. tolua_readonly tolua_property__get_set LineEdit* lineEdit;
  33. tolua_readonly tolua_property__get_set Button* closeButton;
  34. tolua_property__is_set bool visible;
  35. tolua_property__is_set bool autoVisibleOnError;
  36. tolua_property__get_set String commandInterpreter;
  37. tolua_property__get_set unsigned numBufferedRows;
  38. tolua_property__get_set unsigned numRows;
  39. tolua_property__get_set unsigned numHistoryRows;
  40. tolua_readonly tolua_property__get_set unsigned historyPosition;
  41. tolua_property__get_set bool focusOnShow;
  42. };
  43. Console* GetConsole();
  44. tolua_readonly tolua_property__get_set Console* console;
  45. ${
  46. #define TOLUA_DISABLE_tolua_EngineLuaAPI_GetConsole00
  47. static int tolua_EngineLuaAPI_GetConsole00(lua_State* tolua_S)
  48. {
  49. return ToluaGetSubsystem<Console>(tolua_S);
  50. }
  51. #define TOLUA_DISABLE_tolua_get_console_ptr
  52. #define tolua_get_console_ptr tolua_EngineLuaAPI_GetConsole00
  53. $}