1
0

virtualhostwnd.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef __VIRTUALHOSTWND_H
  2. #define __VIRTUALHOSTWND_H
  3. #include "../../common/guiobjwnd.h"
  4. class VirtualHostWnd : public GuiObjectWnd {
  5. public:
  6. VirtualHostWnd();
  7. virtual ~VirtualHostWnd();
  8. virtual int onInit();
  9. virtual int onPaint(Canvas *c);
  10. virtual int onResize();
  11. virtual void onChildInvalidate(api_region *r, ifc_window *who);
  12. virtual int onLeftButtonDown(int x, int y);
  13. virtual int onLeftButtonUp(int x, int y);
  14. virtual int onRightButtonDown(int x, int y);
  15. virtual int onRightButtonUp(int x, int y);
  16. virtual int onLeftButtonDblClk(int x, int y);
  17. virtual int onRightButtonDblClk(int x, int y);
  18. virtual int onMouseMove(int x, int y);
  19. virtual void virtualhostwnd_setContent(const wchar_t *groupid);
  20. virtual void virtualhostwnd_setContent(SkinItem *item);
  21. virtual void virtualhostwnd_onNewContent();
  22. virtual void virtualhostwnd_onPaintBackground(Canvas *c);
  23. virtual void virtualhostwnd_fitToClient(int fit);
  24. virtual void virtualhostwnd_getContentRect(RECT *r);
  25. virtual ifc_window *virtualhostwnd_getContentRootWnd();
  26. #ifdef WASABI_COMPILE_SCRIPT
  27. virtual ScriptObject *virtualhostwnd_findScriptObject(const wchar_t *object_id);
  28. #endif
  29. #ifdef WASABI_COMPILE_SKIN
  30. virtual GuiObject *virtualhostwnd_findObject(const wchar_t *object_id);
  31. virtual GuiObject *virtualhostwnd_getContent();
  32. virtual ScriptObject *virtualhostwnd_getContentScriptObject();
  33. #endif
  34. private:
  35. GuiObjectWnd *group;
  36. int fittoclient;
  37. int xoffset, yoffset;
  38. int groupwidth, groupheight;
  39. int scripts_enabled;
  40. };
  41. #endif