1
0

sgammagroup.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef __SGammagroup_H
  2. #define __SGammagroup_H
  3. class SGamma;
  4. #include <api/script/script.h>
  5. #include <api/script/objcontroller.h>
  6. #include <api/script/objects/rootobj.h>
  7. #include <api/script/objects/rootobject.h>
  8. #include <api/skin/skinelem.h>
  9. #include <api/skin/gammamgr.h>
  10. #define SGAMMAGROUP_SCRIPTPARENT RootObjectInstance
  11. class GammagroupScriptController : public ScriptObjectControllerI {
  12. public:
  13. virtual const wchar_t *getClassName();
  14. virtual const wchar_t *getAncestorClassName();
  15. virtual ScriptObjectController *getAncestorController();
  16. virtual int getNumFunctions();
  17. virtual const function_descriptor_struct *getExportedFunctions();
  18. virtual GUID getClassGuid();
  19. virtual ScriptObject *instantiate();
  20. virtual void destroy(ScriptObject *o);
  21. virtual void *encapsulate(ScriptObject *o);
  22. virtual void deencapsulate(void *o);
  23. private:
  24. static function_descriptor_struct exportedFunction[];
  25. };
  26. extern GammagroupScriptController *gammagroupController;
  27. class SGammagroup : public SGAMMAGROUP_SCRIPTPARENT {
  28. public:
  29. SGammagroup();
  30. SGammagroup(const wchar_t * parentSet, const wchar_t * grpName);
  31. SGammagroup(const wchar_t * parentSet, int i);
  32. virtual ~SGammagroup();
  33. //protected:
  34. ColorThemeGroup * grp;
  35. const wchar_t * parentSet;
  36. private:
  37. void __construct();
  38. public:
  39. static scriptVar script_vcpu_setRed(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar color);
  40. static scriptVar script_vcpu_setGreen(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar color);
  41. static scriptVar script_vcpu_setBlue(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar color);
  42. static scriptVar script_vcpu_setBoost(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar color);
  43. static scriptVar script_vcpu_setGray(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar color);
  44. static scriptVar script_vcpu_setID(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar color);
  45. static scriptVar script_vcpu_getRed(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  46. static scriptVar script_vcpu_getGreen(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  47. static scriptVar script_vcpu_getBlue(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  48. static scriptVar script_vcpu_getBoost(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  49. static scriptVar script_vcpu_getGray(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  50. static scriptVar script_vcpu_getID(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  51. };
  52. #endif