h_container.h 995 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_CONTAINER_H
  3. #define __HOOK_CONTAINER_H
  4. #include "h_rootobj.h"
  5. #define H_CONTAINER_PARENT H_RootObject
  6. class H_Container : public H_CONTAINER_PARENT {
  7. public:
  8. H_Container(ScriptObject *o);
  9. H_Container();
  10. virtual ~H_Container();
  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_onSwitchToLayout(ScriptObject *newlayout) { }
  15. virtual void hook_onBeforeSwitchToLayout(ScriptObject *oldlayout, ScriptObject *newlayout) { }
  16. virtual void hook_onHideLayout(ScriptObject *_layout) { }
  17. virtual void hook_onShowLayout(ScriptObject *_layout) { }
  18. private:
  19. ScriptObject *obj;
  20. int inited;
  21. static int loaded;
  22. static int onswitchtolayout_id;
  23. static int onbeforeswitchtolayout_id;
  24. static int onhidelayout_id;
  25. static int onshowlayout_id;
  26. };
  27. #endif