c_guitree.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __C_GUITREE_H
  3. #define __C_GUITREE_H
  4. #include "c_guiobject.h"
  5. #define C_GUITREE_PARENT C_GuiObject
  6. class C_GuiTree : public C_GUITREE_PARENT {
  7. public:
  8. C_GuiTree(ScriptObject *object);
  9. C_GuiTree();
  10. virtual ~C_GuiTree();
  11. virtual void C_hook(ScriptObject *o);
  12. ScriptObject *getScriptObject();
  13. virtual int onWantAutoContextMenu();
  14. virtual int onMouseWheelUp(int clicked, int lines);
  15. virtual int onMouseWheelDown(int clicked, int lines);
  16. virtual int onContextMenu(int x, int y);
  17. virtual int onChar(int c);
  18. virtual void onItemRecvDrop(ScriptObject *item);
  19. virtual void onLabelChange(ScriptObject *item);
  20. virtual void onItemSelected(ScriptObject *item);
  21. virtual void onItemDeselected(ScriptObject *item);
  22. virtual int getNumRootItems();
  23. virtual ScriptObject *enumRootItem(int which);
  24. virtual void jumpToNext(int c);
  25. virtual void ensureItemVisible(ScriptObject *item);
  26. virtual int getContentsWidth();
  27. virtual int getContentsHeight();
  28. virtual ScriptObject *addTreeItem(ScriptObject *item, ScriptObject *par, int sorted, int haschildtab);
  29. virtual int removeTreeItem(ScriptObject *item);
  30. virtual void moveTreeItem(ScriptObject *item, ScriptObject *newparent);
  31. virtual void deleteAllItems();
  32. virtual int expandItem(ScriptObject *item);
  33. virtual void expandItemDeferred(ScriptObject *item);
  34. virtual int collapseItem(ScriptObject *item);
  35. virtual void collapseItemDeferred(ScriptObject *item);
  36. virtual void selectItem(ScriptObject *item);
  37. virtual void selectItemDeferred(ScriptObject *item);
  38. virtual void delItemDeferred(ScriptObject *item);
  39. virtual void hiliteItem(ScriptObject *item);
  40. virtual void unhiliteItem(ScriptObject *item);
  41. virtual ScriptObject *getCurItem();
  42. virtual ScriptObject *hitTest(int x, int y);
  43. virtual void editItemLabel(ScriptObject *item);
  44. virtual void cancelEditLabel(int destroyit);
  45. virtual void setAutoEdit(int ae);
  46. virtual int getAutoEdit();
  47. virtual ScriptObject *getByLabel(ScriptObject *item, const wchar_t *name);
  48. virtual void setSorted(int dosort);
  49. virtual int getSorted();
  50. virtual void sortTreeItems();
  51. virtual ScriptObject *getSibling(ScriptObject *item);
  52. virtual void setAutoCollapse(int doautocollapse);
  53. virtual int setFontSize(int newsize);
  54. virtual int getFontSize();
  55. virtual int getNumVisibleChildItems(ScriptObject *c);
  56. virtual int getNumVisibleItems();
  57. virtual ScriptObject *enumVisibleItems(int n);
  58. virtual ScriptObject *enumVisibleChildItems(ScriptObject *c, int n);
  59. virtual ScriptObject *enumAllItems(int n);
  60. virtual int getItemRectX(ScriptObject *item);
  61. virtual int getItemRectY(ScriptObject *item);
  62. virtual int getItemRectW(ScriptObject *item);
  63. virtual int getItemRectH(ScriptObject *item);
  64. private:
  65. ScriptObject *obj;
  66. int inited;
  67. static int loaded;
  68. static int onwantautocontextmenu_id;
  69. static int onmousewheelup_id;
  70. static int onmousewheeldown_id;
  71. static int oncontextmenu_id;
  72. static int onchar_id;
  73. static int onitemrecvdrop_id;
  74. static int onlabelchange_id;
  75. static int onitemselected_id;
  76. static int onitemdeselected_id;
  77. static int getnumrootitems_id;
  78. static int enumrootitem_id;
  79. static int jumptonext_id;
  80. static int ensureitemvisible_id;
  81. static int getcontentswidth_id;
  82. static int getcontentsheight_id;
  83. static int addtreeitem_id;
  84. static int removetreeitem_id;
  85. static int movetreeitem_id;
  86. static int deleteallitems_id;
  87. static int expanditem_id;
  88. static int expanditemdeferred_id;
  89. static int collapseitem_id;
  90. static int collapseitemdeferred_id;
  91. static int selectitem_id;
  92. static int selectitemdeferred_id;
  93. static int delitemdeferred_id;
  94. static int hiliteitem_id;
  95. static int unhiliteitem_id;
  96. static int getcuritem_id;
  97. static int hittest_id;
  98. static int edititemlabel_id;
  99. static int canceleditlabel_id;
  100. static int setautoedit_id;
  101. static int getautoedit_id;
  102. static int getbylabel_id;
  103. static int setsorted_id;
  104. static int getsorted_id;
  105. static int sorttreeitems_id;
  106. static int getsibling_id;
  107. static int setautocollapse_id;
  108. static int setfontsize_id;
  109. static int getfontsize_id;
  110. static int getnumvisiblechilditems_id;
  111. static int getnumvisibleitems_id;
  112. static int enumvisibleitems_id;
  113. static int enumvisiblechilditems_id;
  114. static int enumallitems_id;
  115. static int getitemrectx_id;
  116. static int getitemrecty_id;
  117. static int getitemrectw_id;
  118. static int getitemrecth_id;
  119. };
  120. #endif