h_togglebutton.h 665 B

12345678910111213141516171819202122232425262728293031
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_TOGGLEBUTTON_H
  3. #define __HOOK_TOGGLEBUTTON_H
  4. #include "h_button.h"
  5. #define H_TOGGLEBUTTON_PARENT H_Button
  6. class H_ToggleButton : public H_TOGGLEBUTTON_PARENT {
  7. public:
  8. H_ToggleButton(ScriptObject *o);
  9. H_ToggleButton();
  10. virtual ~H_ToggleButton();
  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_onToggle(int (null)) { }
  15. private:
  16. ScriptObject *obj;
  17. int inited;
  18. static int loaded;
  19. static int ontoggle_id;
  20. };
  21. #endif