guiobjectx.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. #ifndef NULLSOFT_WASABI_GUIOBJECTX_H
  2. #define NULLSOFT_WASABI_GUIOBJECTX_H
  3. #include <wasabicfg.h>
  4. #include <api/script/objects/guiobject.h>
  5. class GuiObjectX : public GuiObject
  6. {
  7. public:
  8. virtual ~GuiObjectX() {}
  9. virtual ifc_window *guiobject_getRootWnd()=0;
  10. virtual void guiobject_setRootWnd(ifc_window *w)=0;
  11. virtual void guiobject_onInit()=0;
  12. virtual void guiobject_getGuiPosition(int *x, int *y, int *w, int *h, int *rx, int *ry, int *rw, int *rh)=0;
  13. virtual void guiobject_setGuiPosition(int *x, int *y, int *w, int *h, int *rx, int *ry, int *rw, int *rh)=0;
  14. virtual int guiobject_getAnchoragePosition(int *x1, int *y1, int *x2, int *y2, int *anchor)=0;
  15. virtual void guiobject_setAnchoragePosition(int *x1, int *y1, int *x2, int *y2, int *anchor)=0;
  16. virtual void guiobject_validateAnchorage()=0;
  17. virtual void guiobject_setParentGroup(Group *g)=0;
  18. virtual ScriptObject *guiobject_getScriptObject()=0;
  19. virtual RootObject *guiobject_getRootObject()=0;
  20. virtual Group *guiobject_getParentGroup()=0;
  21. virtual GuiObject *guiobject_getParent()=0;
  22. virtual void guiobject_setTabOrder(int a)=0;
  23. virtual void guiobject_setId(const wchar_t *id)=0;
  24. virtual const wchar_t *guiobject_getId()=0;
  25. virtual void guiobject_setTargetX(int tx)=0;
  26. virtual void guiobject_setTargetY(int ty)=0;
  27. virtual void guiobject_setTargetW(int tw)=0;
  28. virtual void guiobject_setTargetH(int th)=0;
  29. virtual void guiobject_setTargetA(int th)=0;
  30. virtual void guiobject_setTargetSpeed(float s)=0;
  31. virtual void guiobject_gotoTarget(void)=0;
  32. virtual void guiobject_cancelTarget()=0;
  33. virtual void guiobject_reverseTarget(int reverse)=0;
  34. virtual int guiobject_getAutoWidth()=0;
  35. virtual int guiobject_getAutoHeight()=0;
  36. virtual int guiobject_movingToTarget()=0;
  37. virtual void guiobject_bringToFront()=0;
  38. virtual void guiobject_bringToBack()=0;
  39. virtual void guiobject_bringAbove(GuiObject *o)=0;
  40. virtual void guiobject_bringBelow(GuiObject *o)=0;
  41. virtual void guiobject_setClickThrough(int ct)=0;
  42. virtual int guiobject_isClickThrough()=0;
  43. virtual void guiobject_setAutoSysMetricsX(int a)=0;
  44. virtual void guiobject_setAutoSysMetricsY(int a)=0;
  45. virtual void guiobject_setAutoSysMetricsW(int a)=0;
  46. virtual void guiobject_setAutoSysMetricsH(int a)=0;
  47. virtual int guiobject_getAutoSysMetricsX()=0;
  48. virtual int guiobject_getAutoSysMetricsY()=0;
  49. virtual int guiobject_getAutoSysMetricsW()=0;
  50. virtual int guiobject_getAutoSysMetricsH()=0;
  51. virtual int guiobject_getRegionOp()=0;
  52. virtual void guiobject_setRegionOp(int op)=0;
  53. virtual int guiobject_isRectRgn()=0;
  54. virtual void guiobject_setRectRgn(int rrgn)=0;
  55. virtual void guiobject_onLeftButtonDown(int x, int y)=0;
  56. virtual void guiobject_onLeftButtonUp(int x, int y)=0;
  57. virtual void guiobject_onRightButtonDown(int x, int y)=0;
  58. virtual void guiobject_onRightButtonUp(int x, int y)=0;
  59. virtual void guiobject_onLeftButtonDblClk(int x, int y)=0;
  60. virtual void guiobject_onRightButtonDblClk(int x, int y)=0;
  61. virtual int guiobject_onMouseWheelUp(int click, int lines)=0;
  62. virtual int guiobject_onMouseWheelDown(int click, int lines)=0;
  63. virtual void guiobject_onMouseMove(int x, int y)=0;
  64. virtual void guiobject_onEnterArea()=0;
  65. virtual void guiobject_onLeaveArea()=0;
  66. virtual void guiobject_onEnable(int en)=0;
  67. virtual void guiobject_setEnabled(int en)=0;
  68. virtual void guiobject_onResize(int x, int y, int w, int h)=0;
  69. virtual void guiobject_onSetVisible(int v)=0;
  70. virtual void guiobject_onTargetReached()=0;
  71. virtual void guiobject_setAlpha(int a)=0;
  72. virtual void guiobject_setActiveAlpha(int a)=0;
  73. virtual void guiobject_setInactiveAlpha(int a)=0;
  74. virtual int guiobject_getAlpha()=0;
  75. virtual int guiobject_getActiveAlpha()=0;
  76. virtual int guiobject_getInactiveAlpha()=0;
  77. virtual int guiobject_isActive()=0;
  78. virtual void guiobject_onStartup()=0;
  79. virtual int guiobject_setXmlParam(const wchar_t *param, const wchar_t *value)=0;
  80. virtual const wchar_t *guiobject_getXmlParam(const wchar_t *param)=0;
  81. virtual int guiobject_setXmlParamById(int id, const wchar_t *value)=0;
  82. virtual svc_xuiObject *guiobject_getXuiService()=0;
  83. virtual void guiobject_setXuiService(svc_xuiObject *svc)=0;
  84. virtual waServiceFactory *guiobject_getXuiServiceFactory()=0;
  85. virtual void guiobject_setXuiServiceFactory(waServiceFactory *fac)=0;
  86. virtual GuiObject *guiobject_getTopParent()=0;
  87. #ifdef WASABI_COMPILE_WNDMGR
  88. virtual Layout *guiobject_getParentLayout()=0;
  89. virtual int guiobject_runModal()=0;
  90. virtual void guiobject_endModal(int retcode)=0;
  91. virtual void guiobject_popParentLayout()=0;
  92. virtual void guiobject_registerStatusCB(GuiStatusCallback *cb)=0;
  93. virtual void guiobject_setStatusText(const wchar_t *txt, int overlay = FALSE)=0;
  94. virtual void guiobject_addAppCmds(AppCmds *commands)=0;
  95. virtual void guiobject_removeAppCmds(AppCmds *commands)=0;
  96. virtual void guiobject_pushCompleted(int max = 100)=0;
  97. virtual void guiobject_incCompleted(int add = 1)=0;
  98. virtual void guiobject_setCompleted(int pos)=0;
  99. virtual void guiobject_popCompleted()=0;
  100. #endif
  101. virtual GuiObject *guiobject_findObject(const wchar_t *id)=0;
  102. virtual GuiObject *guiobject_findObjectXY(int x, int y)=0; // in client coordinates relative to this object
  103. virtual GuiObject *guiobject_findObjectByInterface(GUID interface_guid)=0;
  104. virtual GuiObject *guiobject_findObjectByCallback(FindObjectCallback *cb)=0;
  105. virtual void guiobject_setMover(int m)=0;
  106. virtual int guiobject_getMover()=0;
  107. virtual void guiobject_onCancelCapture()=0;
  108. virtual void guiobject_onChar(wchar_t c)=0;
  109. virtual void guiobject_onKeyDown(int vkcode)=0;
  110. virtual void guiobject_onKeyUp(int vkcode)=0;
  111. virtual FOURCC guiobject_getDropTarget()=0;
  112. virtual void guiobject_setDropTarget(const wchar_t *strval)=0;
  113. virtual void onTargetTimer()=0;
  114. #ifdef USEAPPBAR
  115. virtual int guiobject_getAppBar()=0;
  116. virtual void guiobject_setAppBar(int en)=0;
  117. virtual void setAppBar(const wchar_t *en)=0;
  118. #endif
  119. #ifdef WASABI_COMPILE_CONFIG
  120. virtual void guiobject_setCfgAttrib(CfgItem *item, const wchar_t *name)=0;
  121. virtual CfgItem *guiobject_getCfgItem()=0;
  122. virtual const wchar_t *guiobject_getCfgAttrib()=0;
  123. virtual int guiobject_getCfgInt()=0;
  124. virtual void guiobject_setCfgInt(int i)=0;
  125. virtual float guiobject_getCfgFloat()=0;
  126. virtual void guiobject_setCfgFloat(float f)=0;
  127. virtual const wchar_t *guiobject_getCfgString()=0;
  128. virtual void guiobject_setCfgString(const wchar_t *s)=0;
  129. virtual int guiobject_hasCfgAttrib()=0;
  130. #endif
  131. virtual const wchar_t *guiobject_getName()=0;
  132. virtual void guiobject_onAccelerator(const wchar_t *accel)=0;
  133. virtual int guiobject_onAction(const wchar_t *action, const wchar_t *param, int x, int y, intptr_t p1, intptr_t p2, void *data, size_t datalen, ifc_window *source)=0;
  134. virtual int guiobject_wantFocus()=0;
  135. virtual void guiobject_setNoDoubleClick(int no)=0;
  136. virtual void guiobject_setNoLeftClick(int no)=0;
  137. virtual void guiobject_setNoRightClick(int no)=0;
  138. virtual void guiobject_setNoMouseMove(int no)=0;
  139. virtual void guiobject_setNoContextMenu(int no)=0;
  140. virtual void guiobject_setCursor(const wchar_t *c)=0;
  141. virtual int guiobject_wantTranslation()=0;
  142. virtual int guiobject_dragEnter(ifc_window *sourceWnd)=0;
  143. virtual int guiobject_dragOver(int x, int y, ifc_window *sourceWnd)=0;
  144. virtual int guiobject_dragLeave(ifc_window *sourceWnd)=0;
  145. protected:
  146. RECVS_DISPATCH;
  147. };
  148. #endif