1
0

xuimenuso.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // ----------------------------------------------------------------------------
  2. // Generated by ScriptObjectFactory [Sun Dec 14 07:21:52 2003]
  3. //
  4. // File : xuimenuso.h
  5. // Class : XuiMenuScriptObject
  6. // class layer : Automatic Object Scripting
  7. // ----------------------------------------------------------------------------
  8. #ifndef __XUIMENUSCRIPTOBJECT_H
  9. #define __XUIMENUSCRIPTOBJECT_H
  10. class XuiMenu;
  11. #include <api/script/objects/rootobj.h>
  12. #include <api/script/objcontroller.h>
  13. #define XUIMENU_SCRIPTPARENT GuiObjectWnd
  14. #define XUIMENU_SCRIPTPARENTCLASS L"GuiObject"
  15. // ----------------------------------------------------------------------------
  16. // {73C00594-961F-401B-9B1B-672427AC4165}
  17. static const GUID XuiMenuScriptGuid =
  18. { 0x73c00594, 0x961f, 0x401b, { 0x9b, 0x1b, 0x67, 0x24, 0x27, 0xac, 65, 101 } };
  19. // -----------------------------------------------------------------------------
  20. class XuiMenuScriptObject : public XUIMENU_SCRIPTPARENT {
  21. protected:
  22. XuiMenuScriptObject();
  23. virtual ~XuiMenuScriptObject();
  24. public:
  25. void xuiMenuScriptObject_init();
  26. public:
  27. virtual void script_onOpenMenu();
  28. virtual void script_onCloseMenu();
  29. private:
  30. };
  31. // -----------------------------------------------------------------------------
  32. class XuiMenuScriptController : public ScriptObjectControllerI {
  33. public:
  34. virtual const wchar_t *getClassName();
  35. virtual const wchar_t *getAncestorClassName();
  36. virtual ScriptObjectController *getAncestorController();
  37. virtual int getNumFunctions();
  38. virtual const function_descriptor_struct *getExportedFunctions();
  39. virtual GUID getClassGuid();
  40. virtual ScriptObject *instantiate();
  41. virtual void destroy(ScriptObject *o);
  42. virtual void *encapsulate(ScriptObject *o);
  43. virtual void deencapsulate(void *o);
  44. public:
  45. static scriptVar script_setMenuGroup(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar mg);
  46. static scriptVar script_getMenuGroup(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO);
  47. static scriptVar script_setMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar m);
  48. static scriptVar script_getMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO);
  49. static scriptVar script_spawnMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar monitor);
  50. static scriptVar script_cancelMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO);
  51. static scriptVar script_setNormalId(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar id);
  52. static scriptVar script_setDownId(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar id);
  53. static scriptVar script_setHoverId(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar id);
  54. static scriptVar script_onOpenMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO);
  55. static scriptVar script_onCloseMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO);
  56. static scriptVar script_nextMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO);
  57. static scriptVar script_previousMenu(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO);
  58. private:static function_descriptor_struct exportedFunctions[];
  59. };
  60. extern XuiMenuScriptController *xuiMenuScriptController;
  61. // ----------------------------------------------------------------------------
  62. #endif // __XUIMENUSCRIPTOBJECT_H