h_layout.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_LAYOUT_H
  3. #define __HOOK_LAYOUT_H
  4. #include "h_group.h"
  5. #define H_LAYOUT_PARENT H_Group
  6. class H_Layout : public H_LAYOUT_PARENT {
  7. public:
  8. H_Layout(ScriptObject *o);
  9. H_Layout();
  10. virtual ~H_Layout();
  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_onDock() { }
  15. virtual void hook_onUndock() { }
  16. virtual void hook_onScale(double newscalevalue) { }
  17. virtual void hook_onMove() { }
  18. virtual void hook_onEndMove() { }
  19. virtual void hook_onUserResize(int x, int y, int w, int h) { }
  20. virtual void hook_onMouseEnterLayout() { }
  21. virtual void hook_onMouseLeaveLayout() { }
  22. virtual void hook_onSnapAdjustChanged() { }
  23. private:
  24. ScriptObject *obj;
  25. int inited;
  26. static int loaded;
  27. static int ondock_id;
  28. static int onundock_id;
  29. static int onscale_id;
  30. static int onmove_id;
  31. static int onendmove_id;
  32. static int onuserresize_id;
  33. static int onmouseenterlayout_id;
  34. static int onmouseleavelayout_id;
  35. static int onsnapadjustchanged_id;
  36. };
  37. #endif