SO3Engine
|
SCOLWidget.cpp
Go to the documentation of this file.
276 ScolMessageParameterKeyboard(const UINT paramMsg, const ScolWindowHandle paramHwnd, const UINT paramWParam, const LONG paramLParam)
332 virtual void OnMouseMove(SWidget* targetWidget, const int& mousePosX, const int& mousePosY, const MouseButtonId& mouseButton, const int& id)
343 virtual void OnMouseDown(SWidget* targetWidget, const int& mousePosX, const int& mousePosY, const MouseButtonId& mouseButton, const int& id)
354 virtual void OnMouseUp(SWidget* targetWidget, const int& mousePosX, const int& mousePosY, const MouseButtonId& mouseButton, const int& id)
365 virtual void OnMouseWheel(SWidget* targetWidget, const int& mousePosX, const int& mousePosY, const int& relativeScroll, const int& id)
376 virtual void OnTouchAdd(SWidget* targetWidget, const int& mousePosX, const int& mousePosY, const int& touchid)
384 virtual void OnTouchRemove(SWidget* targetWidget, const int& mousePosX, const int& mousePosY, const int& touchid)
392 virtual void OnTouchUpdate(SWidget* targetWidget, const int& mousePosX, const int& mousePosY, const int& vx, const int& vy, const int& touchid)
400 virtual void OnKey(SWidget* targetWidget, const UINT& msg, const ScolWindowHandle& hwnd, const UINT& wParam, const LONG& lParam)
402 ScolMessageParameterKeyboard* messageParameterFull = new ScolMessageParameterKeyboard(msg, hwnd, wParam, lParam);
405 ScolMessageParameterKeyboard* messageParameter = new ScolMessageParameterKeyboard(msg, hwnd, wParam, (lParam >> 16) & 0x1ff);
406 if ((msg == WM_KEYDOWN) || (msg == WM_IME_KEYDOWN) || (msg == WM_SYSKEYDOWN) || (msg == WM_CHAR))
456 virtual void OnLoadError(SWidget* targetWidget, const int& errorCode, const std::string& failedUrl)
1242 MMechostr(MSKDEBUG, "An error occurs while trying to load a file named \"%s\" on a widget: %s\n", file, e.what());
1303 MMechostr(MSKDEBUG, "An error occurs while trying to load an URL to \"%s\"on a widget: %s\n", url, e.what());
3321 { "SO3WidgetGetIgnoreTransparentPixels", 1, "fun [SO3_WIDGET] [I I]", SO3WidgetGetIgnoreTransparentPixels },
3322 { "SO3WidgetSetIgnoreTransparentPixels", 3, "fun [SO3_WIDGET I I] I", SO3WidgetSetIgnoreTransparentPixels },
3340 { "SO3WidgetEnterEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0] u1 u0] SO3_WIDGET", SO3WidgetEnterEventCb },
3341 { "SO3WidgetExitEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0] u1 u0] SO3_WIDGET", SO3WidgetExitEventCb },
3342 { "SO3WidgetMouseMoveEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I] u1 u0] SO3_WIDGET", SO3WidgetMouseMoveEventCb },
3343 { "SO3WidgetMouseDownEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I] u1 u0] SO3_WIDGET", SO3WidgetMouseDownEventCb },
3344 { "SO3WidgetMouseUpEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I] u1 u0] SO3_WIDGET", SO3WidgetMouseUpEventCb },
3345 { "SO3WidgetMouseWheelEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I] u1 u0] SO3_WIDGET", SO3WidgetMouseWheelEventCb },
3346 { "SO3WidgetTouchAddEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I] u1 u0] SO3_WIDGET", SO3WidgetTouchAddEventCb },
3347 { "SO3WidgetTouchRemoveEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I] u1 u0] SO3_WIDGET", SO3WidgetTouchRemoveEventCb },
3348 { "SO3WidgetTouchUpdateEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I I I] u1 u0] SO3_WIDGET", SO3WidgetTouchUpdateEventCb },
3349 { "SO3WidgetInputDownEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I I] u1 u0] SO3_WIDGET", SO3WidgetInputDownEventCb },
3350 { "SO3WidgetInputUpEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I I] u1 u0] SO3_WIDGET", SO3WidgetInputUpEventCb },
3351 { "SO3WidgetInputUpdateEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I I] u1 u0] SO3_WIDGET", SO3WidgetInputUpdateEventCb },
3352 { "SO3WidgetInputWheelEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I I] u1 u0] SO3_WIDGET", SO3WidgetInputWheelEventCb },
3353 { "SO3WidgetKeyDownEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I] u1 u0] SO3_WIDGET", SO3WidgetKeyDownEventCb },
3354 { "SO3WidgetKeyUpEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I] u1 u0] SO3_WIDGET", SO3WidgetKeyUpEventCb },
3355 { "SO3WidgetKeyEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I I I] u1 u0] SO3_WIDGET", SO3WidgetKeyEventCb },
3356 { "SO3WidgetFocusEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 I] u1 u0] SO3_WIDGET", SO3WidgetFocusEventCb },
3357 { "SO3WidgetOnScriptEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 S [S r1]] u1 u0] SO3_WIDGET", SO3WidgetOnScriptEventCb },
3358 { "SO3WidgetOnLoadStartEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0] u1 u0] SO3_WIDGET", SO3WidgetOnLoadStartEventCb },
3359 { "SO3WidgetOnLoadEndEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0] u1 u0] SO3_WIDGET", SO3WidgetOnLoadEndEventCb },
3360 { "SO3WidgetOnLoadErrorEventCb", 3, "fun [SO3_WIDGET fun [SO3_WIDGET u0 S] u1 u0] SO3_WIDGET", SO3WidgetOnLoadErrorEventCb }
3445 return PKhardpak2(m, "SO3Widget.pkg", sizeof(natSO3Widget) / sizeof(natSO3Widget[0]), natSO3Widget);
ScolWidgetEventsListener * scolWidgetEventsListener
Definition SCOLWidget.cpp:3367
int getWidgetCallbackInputUpdateEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when an input update event occurs o...
Definition SCOLWidget.cpp:902
int getWidgetCallbackInputDownEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when an inpur down event occurs on ...
Definition SCOLWidget.cpp:830
int getWidgetCallbackFocusEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a focus event occurs on a widg...
Definition SCOLWidget.cpp:1073
int getWidgetCallbackKeyEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a key event occurs on a widget...
Definition SCOLWidget.cpp:1039
int getWidgetCallbackMouseDownEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a mouse down event occurs on a...
Definition SCOLWidget.cpp:618
int getWidgetCallbackOnScriptCallback(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of script function callback.
Definition SCOLWidget.cpp:475
int getWidgetCallbackOnLoadEndEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a load end event occurs on a w...
Definition SCOLWidget.cpp:1129
int getWidgetCallbackMouseWheelEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a mouse wheel event occurs on ...
Definition SCOLWidget.cpp:688
int getWidgetCallbackTouchRemoveEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a touch point removed event oc...
Definition SCOLWidget.cpp:758
int getWidgetCallbackKeyDownEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a key down event occurs on a w...
Definition SCOLWidget.cpp:974
int getWidgetCallbackInputUpEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when an input up event occurs on a ...
Definition SCOLWidget.cpp:866
int getWidgetCallbackTouchAddEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a touch point added event occu...
Definition SCOLWidget.cpp:723
int getWidgetCallbackOnExitEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when mouse gets outside a widget (s...
Definition SCOLWidget.cpp:556
int getWidgetCallbackMouseMoveEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a mouse move event occurs on a...
Definition SCOLWidget.cpp:583
int getWidgetCallbackOnEnterEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when mouse enters inside a widget (...
Definition SCOLWidget.cpp:529
int getWidgetCallbackInputWheelEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when an input wheel event occurs on...
Definition SCOLWidget.cpp:938
int getWidgetCallbackOnLoadStartEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a load start event occurs on a...
Definition SCOLWidget.cpp:1102
int getWidgetCallbackTouchUpdateEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a touch update event occurs on...
Definition SCOLWidget.cpp:793
int getWidgetCallbackKeyUpEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a key up event occurs on a wid...
Definition SCOLWidget.cpp:1007
int SCOLloadWidget(mmachine m, cbmachine w)
Load the SO3Engine Widgets function.
Definition SCOLWidget.cpp:3375
int getWidgetCallbackOnLoadErrorEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a load error event occurs on a...
Definition SCOLWidget.cpp:1164
int getWidgetCallbackMouseUpEvent(mmachine m, SCOL_PTR_TYPE id, SCOL_PTR_TYPE param)
C function that prepares the VM for the execution of the callback when a mouse up event occurs on a w...
Definition SCOLWidget.cpp:653
MMechostr(MSKDEBUG, " > Start loading Plugin SO3Engine dll\n")
Definition SO3ScriptFunction.h:33
std::vector< std::string > arguments
Definition SO3ScriptFunction.h:36
int SO3WidgetSetUpdateOnFocusOnly(mmachine m)
SO3WidgetSetUpdateOnFocusOnly : Set if the widget will be updated only when he have focus.
Definition SCOLWidget.cpp:2785
int SO3WidgetGetUpdateOnFocusOnly(mmachine m)
SO3WidgetGetUpdateOnFocusOnly : Return if the widget is updated only when he have focus.
Definition SCOLWidget.cpp:2748
int SO3WidgetCallFunction(mmachine m)
SO3WidgetCallFunction : Call script function of a widgets. Script type may depend of widget type,...
Definition SCOLWidget.cpp:2684
int SO3WidgetOnScriptEventCb(mmachine m)
SO3WidgetOnScriptEventCb : Define the callback scol had to call when there is a script event on a wid...
Definition SCOLWidget.cpp:3229
int SO3WidgetInputDownEventCb(mmachine m)
SO3WidgetInputDownEventCb : Define the scol callback to call when an input down button occure on a wi...
Definition SCOLWidget.cpp:3040
int SO3WidgetSetTextureRatio(mmachine m)
SO3WidgetSetTextureRatio : defines the texture ratio of a widget, ie how the texture size will be sca...
Definition SCOLWidget.cpp:1835
int SO3WidgetHasFocus(mmachine m)
SO3WidgetHasFocus : Retrieves if a widget has the focus.
Definition SCOLWidget.cpp:2643
int SO3WidgetKeyUpEventCb(mmachine m)
SO3WidgetKeyUpEventCb : Define the scol callback to call when a key is "up" on a widget.
Definition SCOLWidget.cpp:3161
int SO3WidgetGetMouseEnable(mmachine m)
SO3WidgetGetMouseEnable : Retrieves if a widget take mouse events or not.
Definition SCOLWidget.cpp:2418
int SO3WidgetSetForeground(mmachine m)
SO3WidgetSetForeground : defines foreground state of a widget.
Definition SCOLWidget.cpp:1400
int SO3WidgetInputUpdateEventCb(mmachine m)
SO3WidgetInputUpdateEventCb : Define the scol callback to call when an input is updated over a widget...
Definition SCOLWidget.cpp:3090
int SO3WidgetTouchRemoveEventCb(mmachine m)
SO3WidgetTouchRemoveEventCb : Define the scol callback to call when a touch point is removed on a wid...
Definition SCOLWidget.cpp:2989
int SO3WidgetKeyEventCb(mmachine m)
SO3WidgetKeyEventCb : Define the scol callback to call when a key event is thow on a widget.
Definition SCOLWidget.cpp:3185
int SO3WidgetTouchUpdateEventCb(mmachine m)
SO3WidgetTouchUpdateEventCb : Define the scol callback to call when a touch point is updated over a w...
Definition SCOLWidget.cpp:3015
int SO3WidgetSetKeyboardEnable(mmachine m)
SO3WidgetSetKeyboardEnable : enable or disable keyboard input on a widget.
Definition SCOLWidget.cpp:2302
int SO3WidgetGetKeyboardEnable(mmachine m)
SO3WidgetGetKeyboardEnable : Retrieves if a widget take keyboard events or not.
Definition SCOLWidget.cpp:2341
int SO3WidgetSetTopOnFocus(mmachine m)
SO3WidgetSetTopOnFocus : defines top On focus state a widget.
Definition SCOLWidget.cpp:1479
int SO3WidgetTouchAddEventCb(mmachine m)
SO3WidgetTouchAddEventCb : Define the scol callback to call when a touch point is added on a widget.
Definition SCOLWidget.cpp:2965
int SO3WidgetOnLoadEndEventCb(mmachine m)
SO3WidgetOnLoadEndEventCb : Define the scol callback to call when a widget has finished to load conte...
Definition SCOLWidget.cpp:3269
int SO3WidgetMouseMoveEventCb(mmachine m)
SO3WidgetMouseMoveEventCb : Define the scol callback to call when a mouse button is "downed" on a wid...
Definition SCOLWidget.cpp:2869
int SO3WidgetInputUpEventCb(mmachine m)
SO3WidgetInputUpEventCb : Define the scol callback to call when an input up button occure on a widget...
Definition SCOLWidget.cpp:3065
int SO3WidgetLoadUrl(mmachine m)
SO3WidgetLoadUrl : Load an Url in a widget.
Definition SCOLWidget.cpp:1260
int SO3WidgetGetType(mmachine m)
SO3WidgetGetType : Return the type of a widget.
Definition SCOLWidget.cpp:2037
int SO3WidgetGetName(mmachine m)
SO3WidgetGetName : Return the name of a widget.
Definition SCOLWidget.cpp:2003
int SO3WidgetGetForeground(mmachine m)
SO3WidgetGetForeground : Get the foreground state of a widget.
Definition SCOLWidget.cpp:1440
int SO3WidgetExitEventCb(mmachine m)
SO3WidgetExitEventCb : Define the scol callback to call when the mouse exit a widget.
Definition SCOLWidget.cpp:2845
int SO3WidgetSetIgnoreTransparentPixels(mmachine m)
SO3WidgetSetIgnoreTransparentPixels : defines ignore transparent pixels state on a widget.
Definition SCOLWidget.cpp:1560
int SO3WidgetSetStereo(mmachine m)
SO3WidgetSetStereo : Set the widget stereo mode.
Definition SCOLWidget.cpp:2112
int SO3WidgetFocusEventCb(mmachine m)
SO3WidgetFocusEventCb : Define the scol callback to call when a widget take or loose focus.
Definition SCOLWidget.cpp:3206
int SO3WidgetGetTextureRatio(mmachine m)
SO3WidgetGetTextureRatio : Return the texture ratio of a widget, ie how the texture size will be scal...
Definition SCOLWidget.cpp:1878
int SO3WidgetSetZOrder(mmachine m)
SO3WidgetSetZOrder : defines Z order of a widget.
Definition SCOLWidget.cpp:1361
int SO3WidgetSetOpacity(mmachine m)
SO3WidgetSetOpacity : defines opacity coefficient of a widget.
Definition SCOLWidget.cpp:2573
int SO3WidgetGetTransparency(mmachine m)
SO3WidgetGetTransparency : Get transparency state of a widget.
Definition SCOLWidget.cpp:2534
int SO3WidgetSetPosition(mmachine m)
SO3WidgetSetPosition : defines position of a widget, in a viewport.
Definition SCOLWidget.cpp:1754
int SO3WidgetUnFocus(mmachine m)
SO3WidgetUnFocus : Force a widget to release focus.
Definition SCOLWidget.cpp:1684
int SO3WidgetMouseDownEventCb(mmachine m)
SO3WidgetMouseDownEventCb : Define the scol callback to call when a mouse button is "downed" on a wid...
Definition SCOLWidget.cpp:2893
int SO3WidgetSetFocus(mmachine m)
SO3WidgetSetFocus : Force a widget to take focus.
Definition SCOLWidget.cpp:1650
int SO3WidgetSetStereoEye(mmachine m)
SO3WidgetSetStereoEye : Set the current visible eye of a stereo widget.
Definition SCOLWidget.cpp:2186
int SO3WidgetGetSize(mmachine m)
SO3WidgetGetSize : Return the size of a widget.
Definition SCOLWidget.cpp:1911
int SO3WidgetSetVisibility(mmachine m)
SO3WidgetSetVisibility : show or hide a widget.
Definition SCOLWidget.cpp:2224
int SO3WidgetIsMouseOver(mmachine m)
SO3WidgetIsMouseOver : Retrieves if the mouse is over a widget.
Definition SCOLWidget.cpp:2455
int SO3WidgetGetVisibility(mmachine m)
SO3WidgetGetVisibility : Retrieves if a widget is visible or not.
Definition SCOLWidget.cpp:2264
int SO3WidgetMouseWheelEventCb(mmachine m)
SO3WidgetMouseWheelEventCb : Define the scol callback to call when the mouse wheel is moved (scrollin...
Definition SCOLWidget.cpp:2941
int SO3WidgetInputWheelEventCb(mmachine m)
SO3WidgetInputWheelEventCb : Define the scol callback to call when an input wheel is updated over a w...
Definition SCOLWidget.cpp:3115
int SO3WidgetOnLoadStartEventCb(mmachine m)
SO3WidgetOnLoadStartEventCb : Define the scol callback to call when a widget start to load content.
Definition SCOLWidget.cpp:3249
int SO3WidgetSetTransparency(mmachine m)
SO3WidgetSetTransparency : Set transparency state of a widget (enable or not)
Definition SCOLWidget.cpp:2494
int SO3WidgetSetMouseEnable(mmachine m)
SO3WidgetSetMouseEnable : enable or disable mouse input on a widget.
Definition SCOLWidget.cpp:2379
int SO3WidgetGetOpacity(mmachine m)
SO3WidgetGetOpacity : Get the opacity coefficient of a widget.
Definition SCOLWidget.cpp:2609
int SO3WidgetGetStereo(mmachine m)
SO3WidgetGetStereo : Return the stereo mode of a widget.
Definition SCOLWidget.cpp:2149
int SO3WidgetGetIgnoreTransparentPixels(mmachine m)
SO3WidgetGetIgnoreTransparentPixels : Get the ignore transparent pixels state on a widget.
Definition SCOLWidget.cpp:1601
int SO3WidgetGetTopOnFocus(mmachine m)
SO3WidgetGetTopOnFocus : Get the top On focus state of a widget.
Definition SCOLWidget.cpp:1520
int SO3WidgetGetMode(mmachine m)
SO3WidgetGetMode : Return the mode of a widget.
Definition SCOLWidget.cpp:2071
int SO3WidgetEnterEventCb(mmachine m)
SO3WidgetEnterEventCb : Define the scol callback to call when the mouse enter a widget.
Definition SCOLWidget.cpp:2825
int SO3WidgetLoadFile(mmachine m)
SO3WidgetLoadFile : Load a File/movie on a widget.
Definition SCOLWidget.cpp:1199
int SO3WidgetOnLoadErrorEventCb(mmachine m)
SO3WidgetOnLoadErrorEventCb : Define the scol callback to call when a widget throw an error while loa...
Definition SCOLWidget.cpp:3289
int SO3WidgetGetPosition(mmachine m)
SO3WidgetGetPosition : Return the position of a widget, in the current viewport.
Definition SCOLWidget.cpp:1791
int SO3WidgetGetZOrder(mmachine m)
SO3WidgetGetZOrder : Get the Z order of a widget.
Definition SCOLWidget.cpp:1718
int SO3WidgetSetSize(mmachine m)
SO3WidgetSetSize : defines size of a widget.
Definition SCOLWidget.cpp:1956
int SO3WidgetMouseUpEventCb(mmachine m)
SO3WidgetMouseUpEventCb : Define the scol callback to call when a mouse button is "released" over a w...
Definition SCOLWidget.cpp:2917
int SO3WidgetKeyDownEventCb(mmachine m)
SO3WidgetKeyDownEventCb : Define the scol callback to call when a key is "downed" on a widget.
Definition SCOLWidget.cpp:3138
Generated by 1.9.8