xuigroupxfade.h 934 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _XUIGROUPXFADE_H
  2. #define _XUIGROUPXFADE_H
  3. #include <api/wnd/wndclass/guiobjwnd.h>
  4. #define GROUPXFADE_PARENT GuiObjectWnd
  5. class GroupXFade : public GROUPXFADE_PARENT {
  6. public:
  7. static const wchar_t *xuiobject_getXmlTag() { return L"GroupXFade"; }
  8. static const char *xuiobject_getServiceName() { return "GroupXFade XuiObject"; }
  9. GroupXFade();
  10. virtual ~GroupXFade();
  11. virtual int onInit();
  12. virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value);
  13. virtual int onResize();
  14. enum {
  15. GROUPXFADE_SETGROUP,
  16. GROUPXFADE_SETSPEED,
  17. };
  18. void setNewGroup(const wchar_t *grp);
  19. protected:
  20. /*static */void CreateXMLParameters(int master_handle);
  21. private:
  22. int myxuihandle;
  23. GuiObject *child[2];
  24. StringW id[2];
  25. int curchild;
  26. double speed;
  27. static XMLParamPair params[];
  28. };
  29. class GroupXFadeXuiSvc : public XuiObjectSvc2<GroupXFade> {};
  30. #endif