c_button.h 980 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __C_BUTTON_H
  3. #define __C_BUTTON_H
  4. #include "c_guiobject.h"
  5. #define C_BUTTON_PARENT C_GuiObject
  6. class C_Button : public C_BUTTON_PARENT {
  7. public:
  8. C_Button(ScriptObject *object);
  9. C_Button();
  10. virtual ~C_Button();
  11. virtual void C_hook(ScriptObject *o);
  12. ScriptObject *getScriptObject();
  13. virtual void onActivate(int activated);
  14. virtual void onLeftClick();
  15. virtual void onRightClick();
  16. virtual void setActivated(int onoff);
  17. virtual void setActivatedNoCallback(int onoff);
  18. virtual int getActivated();
  19. virtual void leftClick();
  20. virtual void rightClick();
  21. private:
  22. ScriptObject *obj;
  23. int inited;
  24. static int loaded;
  25. static int onactivate_id;
  26. static int onleftclick_id;
  27. static int onrightclick_id;
  28. static int setactivated_id;
  29. static int setactivatednocallback_id;
  30. static int getactivated_id;
  31. static int leftclick_id;
  32. static int rightclick_id;
  33. };
  34. #endif