h_guitree.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_GUITREE_H
  3. #define __HOOK_GUITREE_H
  4. #include "h_guiobject.h"
  5. #define H_GUITREE_PARENT H_GuiObject
  6. class H_GuiTree : public H_GUITREE_PARENT {
  7. public:
  8. H_GuiTree(ScriptObject *o);
  9. H_GuiTree();
  10. virtual ~H_GuiTree();
  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_onWantAutoContextMenu() { }
  15. virtual void hook_onMouseWheelUp(int clicked, int lines) { }
  16. virtual void hook_onMouseWheelDown(int clicked, int lines) { }
  17. virtual void hook_onContextMenu(int x, int y) { }
  18. virtual void hook_onChar(wchar_t c) { }
  19. virtual void hook_onItemRecvDrop(ScriptObject *item) { }
  20. virtual void hook_onLabelChange(ScriptObject *item) { }
  21. virtual void hook_onItemSelected(ScriptObject *item) { }
  22. virtual void hook_onItemDeselected(ScriptObject *item) { }
  23. private:
  24. ScriptObject *obj;
  25. int inited;
  26. static int loaded;
  27. static int onwantautocontextmenu_id;
  28. static int onmousewheelup_id;
  29. static int onmousewheeldown_id;
  30. static int oncontextmenu_id;
  31. static int onchar_id;
  32. static int onitemrecvdrop_id;
  33. static int onlabelchange_id;
  34. static int onitemselected_id;
  35. static int onitemdeselected_id;
  36. };
  37. #endif