h_guiobject.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_GUIOBJECT_H
  3. #define __HOOK_GUIOBJECT_H
  4. #include "h_rootobj.h"
  5. #define H_GUIOBJECT_PARENT H_RootObject
  6. class H_GuiObject : public H_GUIOBJECT_PARENT {
  7. public:
  8. H_GuiObject(ScriptObject *o);
  9. H_GuiObject();
  10. virtual ~H_GuiObject();
  11. virtual void H_hook(ScriptObject *o);
  12. ScriptObject *getHookedObject();
  13. virtual int eventCallback(ScriptObject *object, int dlfid, scriptVar **params, int nparams);
  14. virtual void hook_onSetVisible(int onoff) { }
  15. virtual void hook_onLeftButtonUp(int x, int y) { }
  16. virtual void hook_onLeftButtonDown(int x, int y) { }
  17. virtual void hook_onRightButtonUp(int x, int y) { }
  18. virtual void hook_onRightButtonDown(int x, int y) { }
  19. virtual void hook_onRightButtonDblClk(int x, int y) { }
  20. virtual void hook_onLeftButtonDblClk(int x, int y) { }
  21. virtual void hook_onMouseMove(int x, int y) { }
  22. virtual void hook_onEnterArea() { }
  23. virtual void hook_onLeaveArea() { }
  24. virtual void hook_onEnable(int onoff) { }
  25. virtual void hook_onResize(int x, int y, int w, int h) { }
  26. virtual void hook_onTargetReached() { }
  27. virtual void hook_onStartup() { }
  28. virtual void hook_onChar(const wchar_t *c) { }
  29. virtual void hook_onAccelerator(const wchar_t *accel) { }
  30. virtual void hook_onKeyDown(int vk_code) { }
  31. virtual void hook_onKeyUp(int vk_code) { }
  32. virtual void hook_onGetFocus() { }
  33. virtual void hook_onKillFocus() { }
  34. virtual void hook_onAction(const wchar_t *action, const wchar_t *param, int x, int y, int p1, int p2, ScriptObject *source) { }
  35. private:
  36. ScriptObject *obj;
  37. int inited;
  38. static int loaded;
  39. static int onsetvisible_id;
  40. static int onleftbuttonup_id;
  41. static int onleftbuttondown_id;
  42. static int onrightbuttonup_id;
  43. static int onrightbuttondown_id;
  44. static int onrightbuttondblclk_id;
  45. static int onleftbuttondblclk_id;
  46. static int onmousemove_id;
  47. static int onenterarea_id;
  48. static int onleavearea_id;
  49. static int onenable_id;
  50. static int onresize_id;
  51. static int ontargetreached_id;
  52. static int onstartup_id;
  53. static int onchar_id;
  54. static int onaccelerator_id;
  55. static int onkeydown_id;
  56. static int onkeyup_id;
  57. static int ongetfocus_id;
  58. static int onkillfocus_id;
  59. static int onaction_id;
  60. };
  61. #endif