c_guiobject.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __C_GUIOBJECT_H
  3. #define __C_GUIOBJECT_H
  4. #include "c_rootobj.h"
  5. #define C_GUIOBJECT_PARENT C_RootObject
  6. class C_GuiObject : public C_GUIOBJECT_PARENT {
  7. public:
  8. C_GuiObject(ScriptObject *object);
  9. C_GuiObject();
  10. virtual ~C_GuiObject();
  11. virtual void C_hook(ScriptObject *o);
  12. ScriptObject *getScriptObject();
  13. virtual void show();
  14. virtual void hide();
  15. virtual int isVisible();
  16. virtual void onSetVisible(int onoff);
  17. virtual void setAlpha(int alpha);
  18. virtual int getAlpha();
  19. virtual void onLeftButtonUp(int x, int y);
  20. virtual void onLeftButtonDown(int x, int y);
  21. virtual void onRightButtonUp(int x, int y);
  22. virtual void onRightButtonDown(int x, int y);
  23. virtual void onRightButtonDblClk(int x, int y);
  24. virtual void onLeftButtonDblClk(int x, int y);
  25. virtual void onMouseMove(int x, int y);
  26. virtual void onEnterArea();
  27. virtual void onLeaveArea();
  28. virtual void setEnabled(int onoff);
  29. virtual int getEnabled();
  30. virtual void onEnable(int onoff);
  31. virtual void resize(int x, int y, int w, int h);
  32. virtual void onResize(int x, int y, int w, int h);
  33. virtual int isMouseOver(int x, int y);
  34. virtual int getLeft();
  35. virtual int getTop();
  36. virtual int getWidth();
  37. virtual int getHeight();
  38. virtual void setTargetX(int x);
  39. virtual void setTargetY(int y);
  40. virtual void setTargetW(int w);
  41. virtual void setTargetH(int r);
  42. virtual void setTargetA(int alpha);
  43. virtual void setTargetSpeed(float insecond);
  44. virtual void gotoTarget();
  45. virtual void onTargetReached();
  46. virtual void cancelTarget();
  47. virtual void reverseTarget(int reverse);
  48. virtual void onStartup();
  49. virtual int isGoingToTarget();
  50. virtual void setXmlParam(const wchar_t *param, const wchar_t *value);
  51. virtual const wchar_t *getXmlParam(const wchar_t *param);
  52. virtual void init(ScriptObject *parent);
  53. virtual void bringToFront();
  54. virtual void bringToBack();
  55. virtual void bringAbove(ScriptObject *guiobj);
  56. virtual void bringBelow(ScriptObject *guiobj);
  57. virtual int getGuiX();
  58. virtual int getGuiY();
  59. virtual int getGuiW();
  60. virtual int getGuiH();
  61. virtual int getGuiRelatX();
  62. virtual int getGuiRelatY();
  63. virtual int getGuiRelatW();
  64. virtual int getGuiRelatH();
  65. virtual int isActive();
  66. virtual ScriptObject *getParent();
  67. virtual ScriptObject *getParentLayout();
  68. virtual ScriptObject *getTopParent();
  69. virtual int runModal();
  70. virtual void endModal(int retcode);
  71. virtual ScriptObject *findObject(const wchar_t *id);
  72. virtual ScriptObject *findObjectXY(int x, int y);
  73. virtual const wchar_t *getName();
  74. virtual int clientToScreenX(int x);
  75. virtual int clientToScreenY(int y);
  76. virtual int clientToScreenW(int w);
  77. virtual int clientToScreenH(int h);
  78. virtual int screenToClientX(int x);
  79. virtual int screenToClientY(int y);
  80. virtual int screenToClientW(int w);
  81. virtual int screenToClientH(int h);
  82. virtual int getAutoWidth();
  83. virtual int getAutoHeight();
  84. virtual void setFocus();
  85. virtual void onChar(const wchar_t *c);
  86. virtual void onAccelerator(const wchar_t *accel);
  87. virtual int isMouseOverRect();
  88. virtual ScriptObject *getInterface(const wchar_t *interface_guid);
  89. virtual void onKeyDown(int vk_code);
  90. virtual void onKeyUp(int vk_code);
  91. virtual void onGetFocus();
  92. virtual void onKillFocus();
  93. virtual int sendAction(const wchar_t *action, const wchar_t *param, int x, int y, intptr_t p1, intptr_t p2);
  94. virtual int onAction(const wchar_t *action, const wchar_t *param, int x, int y, intptr_t p1, intptr_t p2, ScriptObject *source);
  95. private:
  96. ScriptObject *obj;
  97. int inited;
  98. static int loaded;
  99. static int show_id;
  100. static int hide_id;
  101. static int isvisible_id;
  102. static int onsetvisible_id;
  103. static int setalpha_id;
  104. static int getalpha_id;
  105. static int onleftbuttonup_id;
  106. static int onleftbuttondown_id;
  107. static int onrightbuttonup_id;
  108. static int onrightbuttondown_id;
  109. static int onrightbuttondblclk_id;
  110. static int onleftbuttondblclk_id;
  111. static int onmousemove_id;
  112. static int onenterarea_id;
  113. static int onleavearea_id;
  114. static int setenabled_id;
  115. static int getenabled_id;
  116. static int onenable_id;
  117. static int resize_id;
  118. static int onresize_id;
  119. static int ismouseover_id;
  120. static int getleft_id;
  121. static int gettop_id;
  122. static int getwidth_id;
  123. static int getheight_id;
  124. static int settargetx_id;
  125. static int settargety_id;
  126. static int settargetw_id;
  127. static int settargeth_id;
  128. static int settargeta_id;
  129. static int settargetspeed_id;
  130. static int gototarget_id;
  131. static int ontargetreached_id;
  132. static int canceltarget_id;
  133. static int reversetarget_id;
  134. static int onstartup_id;
  135. static int isgoingtotarget_id;
  136. static int setxmlparam_id;
  137. static int getxmlparam_id;
  138. static int init_id;
  139. static int bringtofront_id;
  140. static int bringtoback_id;
  141. static int bringabove_id;
  142. static int bringbelow_id;
  143. static int getguix_id;
  144. static int getguiy_id;
  145. static int getguiw_id;
  146. static int getguih_id;
  147. static int getguirelatx_id;
  148. static int getguirelaty_id;
  149. static int getguirelatw_id;
  150. static int getguirelath_id;
  151. static int isactive_id;
  152. static int getparent_id;
  153. static int getparentlayout_id;
  154. static int gettopparent_id;
  155. static int runmodal_id;
  156. static int endmodal_id;
  157. static int findobject_id;
  158. static int findobjectxy_id;
  159. static int getname_id;
  160. static int clienttoscreenx_id;
  161. static int clienttoscreeny_id;
  162. static int clienttoscreenw_id;
  163. static int clienttoscreenh_id;
  164. static int screentoclientx_id;
  165. static int screentoclienty_id;
  166. static int screentoclientw_id;
  167. static int screentoclienth_id;
  168. static int getautowidth_id;
  169. static int getautoheight_id;
  170. static int setfocus_id;
  171. static int onchar_id;
  172. static int onaccelerator_id;
  173. static int ismouseoverrect_id;
  174. static int getinterface_id;
  175. static int onkeydown_id;
  176. static int onkeyup_id;
  177. static int ongetfocus_id;
  178. static int onkillfocus_id;
  179. static int sendaction_id;
  180. static int onaction_id;
  181. };
  182. #endif