xuihideobject.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __HIDEOBJECT_H
  2. #define __HIDEOBJECT_H
  3. #include <api/skin/objectactuator.h>
  4. #define HIDEOBJECT_PARENT ObjectActuator
  5. extern const wchar_t HideObjectXuiObjectStr[];
  6. extern char HideObjectXuiSvcName[];
  7. // -----------------------------------------------------------------------
  8. // Your wnd object class
  9. class HideObject: public HIDEOBJECT_PARENT {
  10. public:
  11. HideObject();
  12. virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value);
  13. virtual void actuator_onPerform(GuiObject *target);
  14. virtual const wchar_t *getActuatorTag() { return HideObjectXuiObjectStr; } // for error msgs purposes
  15. protected:
  16. /*static */void CreateXMLParameters(int master_handle);
  17. private:
  18. int myxuihandle;
  19. enum {
  20. HIDEOBJECT_HIDE= 0,
  21. };
  22. static XMLParamPair params[];
  23. };
  24. // -----------------------------------------------------------------------
  25. // This defines the svc_xuiObject that exposes your wnd object
  26. class HideObjectXuiSvc : public XuiObjectSvc<HideObject, HideObjectXuiObjectStr, HideObjectXuiSvcName> {};
  27. #endif