CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
|
v2.00 (23 June 2023)
The Widget module includes all Widgets that can be used inside Panels.
Classes | |
class | CRM64Pro::Widget |
Widget Object. More... | |
Macros | |
#define | WIDGET_FEATURE_FADE 0x00010000 |
#define | WIDGET_FEATURE_DRAGDROP 0x00020000 |
#define | WIDGET_FEATURE_ENCLOSE 0x00040000 |
#define | WIDGET_FEATURE_DETACH 0x00080000 |
#define | WIDGET_FEATURE_BGFIT 0x00100000 |
#define | WIDGET_FEATURE_BGDISABLE 0x00200000 |
#define | WIDGET_FEATURE_EVENTS 0x00400000 |
#define | WIDGET_FEATURE_MOUSEOVER 0x00800000 |
#define | WIDGET_FEATURE_LOSTFOCUS 0x01000000 |
#define | WIDGET_FEATURE_MULTILINE 0x02000000 |
#define | WIDGET_FEATURE_READONLY 0x04000000 |
#define | WIDGET_FEATURE_AUTOSORT 0x08000000 |
Enumerations | |
enum | CRM64Pro::eWidgetState { CRM64Pro::WS_DEFAULT = -1 , CRM64Pro::WS_NORMAL = 0 , CRM64Pro::WS_HOVERED = 1 , CRM64Pro::WS_PRESSED = 2 , CRM64Pro::WS_ACTION = 3 , CRM64Pro::WS_DEACTIVATED = 4 } |
Widget state. More... | |
enum | CRM64Pro::eWidgetType { CRM64Pro::WT_BASE = 0 , CRM64Pro::WT_LABEL = 1 , CRM64Pro::WT_IMAGE = 2 , CRM64Pro::WT_BUTTON = 4 , CRM64Pro::WT_CHECKBOX = 8 , CRM64Pro::WT_PROGRESSBAR = 16 , CRM64Pro::WT_HSLIDER = 32 , CRM64Pro::WT_VSLIDER = 64 , CRM64Pro::WT_TEXTBOX = 128 , CRM64Pro::WT_LISTBOX = 256 } |
Widget type. More... | |
Functions | |
virtual Sint32 | CRM64Pro::Widget::info (Sint32 iMode=0) |
Request Widget object information. | |
Sint32 | CRM64Pro::Widget::disable () |
Disable a widget. | |
Sint32 | CRM64Pro::Widget::show () |
Show a widget. | |
Sint32 | CRM64Pro::Widget::hide () |
Hide a widget. | |
Sint32 | CRM64Pro::Widget::status () |
Get the widget status. | |
Sint32 | CRM64Pro::Widget::features (Sint32 iFeatures) |
Set or get advanced features. | |
virtual Sint32 | CRM64Pro::Widget::setSize (Sint32 iWidth, Sint32 iHeight) |
Set the size. | |
Sint32 | CRM64Pro::Widget::getSize (Sint32 *iWidth, Sint32 *iHeight) |
Get the size. | |
Sint32 | CRM64Pro::Widget::setPosition (Sint32 iX=PH_CENTER, Sint32 iY=PH_CENTER) |
Set the position. | |
Sint32 | CRM64Pro::Widget::getPosition (Sint32 *iX, Sint32 *iY) |
Get the position. | |
virtual Sint32 | CRM64Pro::Widget::setMargin (Sint32 iTop, Sint32 iRight, Sint32 iBottom, Sint32 iLeft) |
Set the margins. | |
Sint32 | CRM64Pro::Widget::getMargin (Sint32 *iTop, Sint32 *iRight, Sint32 *iBottom, Sint32 *iLeft) |
Get the margins. | |
Sint32 | CRM64Pro::Widget::setAlphaMod (Uint8 iAlpha) |
Set alpha modulation used for rendering this widget. | |
Uint8 | CRM64Pro::Widget::getAlphaMod () |
Get alpha modulation used for rendering this widget. | |
virtual Sint32 | CRM64Pro::Widget::setText (const string &sText, Sint32 iParam1=PH_CENTER, Sint32 iParam2=PH_CENTER) |
Set the text. | |
virtual Sint32 | CRM64Pro::Widget::getText (string &sText, Sint32 iParam1=-1) |
Get the text. | |
virtual Sint32 | CRM64Pro::Widget::setKey (SDL_Keycode keycode) |
Set the assigned key. | |
SDL_Keycode | CRM64Pro::Widget::getKey () |
Get the assigned key. | |
virtual Sint32 | CRM64Pro::Widget::setValue (Sint32 iValue) |
Set a value. | |
virtual Sint32 | CRM64Pro::Widget::getValue () |
Get current value. | |
virtual Sint32 | CRM64Pro::Widget::getValueGroup (Sint32 iGroup) |
Get enabled checkbox in a group. | |
virtual Sint32 | CRM64Pro::Widget::setRange (Sint32 iRange) |
Set the range. | |
virtual Sint32 | CRM64Pro::Widget::getRange () |
Get current range. | |
Sint32 | CRM64Pro::Widget::setState (eWidgetState eWS=WS_NORMAL) |
virtual Sint32 | CRM64Pro::Widget::setScroll (Sint32 iUnitsX, Sint32 iUnitsY) |
Modify the widget scroll. | |
virtual Sint32 | CRM64Pro::Widget::getScroll (Sint32 *iUnitsX, Sint32 *iUnitsY) |
Get the widget current scroll. | |
virtual Sint32 | CRM64Pro::Widget::getVisibleItems (Sint32 *iUnitsX, Sint32 *iUnitsY) |
Get visible items. | |
virtual Sint32 | CRM64Pro::Widget::setFont (Sint32 idFont, eWidgetState eWS=WS_DEFAULT) |
Set the font. | |
Sint32 | CRM64Pro::Widget::getFont (eWidgetState eWS=WS_NORMAL) |
Get the font. | |
virtual Sint32 | CRM64Pro::Widget::setGroup (Sint32 iGroup) |
Set the checkbox group. | |
virtual Sint32 | CRM64Pro::Widget::getGroup () |
Get the checkbox group. | |
Sint32 | CRM64Pro::Widget::setBorderWidth (Sint32 iWidth, eWidgetState eWS=WS_DEFAULT) |
Set the border width. | |
Sint32 | CRM64Pro::Widget::getBorderWidth (eWidgetState eWS=WS_NORMAL) |
Get the border width. | |
Sint32 | CRM64Pro::Widget::setBorderCorner (Sint32 iRad, eWidgetState eWS=WS_DEFAULT) |
Set the border corner radius. | |
Sint32 | CRM64Pro::Widget::getBorderCorner (eWidgetState eWS=WS_NORMAL) |
Get the border corner radius. | |
Sint32 | CRM64Pro::Widget::setBorderColor (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, eWidgetState eWS=WS_DEFAULT) |
Set the border color. | |
Sint32 | CRM64Pro::Widget::getBorderColor (Uint8 *iR, Uint8 *iG, Uint8 *iB, Uint8 *iA, eWidgetState eWS=WS_NORMAL) |
Get the border color. | |
Sint32 | CRM64Pro::Widget::setBgColor (Uint8 iR, Uint8 iG, Uint8 iB, eWidgetState eWS=WS_DEFAULT) |
Set the background color. | |
Sint32 | CRM64Pro::Widget::getBgColor (Uint8 *iR, Uint8 *iG, Uint8 *iB, eWidgetState eWS=WS_NORMAL) |
Get the background color. | |
Sint32 | CRM64Pro::Widget::setBgImage (const string &sFileCDC, const string &sName, eWidgetState eWS=WS_NORMAL) |
Set the background image. | |
Sint32 | CRM64Pro::Widget::setBgImage (Sint32 idCDC, const string &sName, eWidgetState eWS=WS_NORMAL) |
Set the background image. | |
Sint32 | CRM64Pro::Widget::setBgImage (Sint32 idImage, eWidgetState eWS=WS_NORMAL) |
Set the background image. | |
Sint32 | CRM64Pro::Widget::getBgImage (eWidgetState eWS=WS_NORMAL) |
Get the background image. | |
Sint32 | CRM64Pro::Widget::setBgSprite (const string &sFileCDC, const string &sName, eWidgetState eWS=WS_DEFAULT, Sint32 iAnim=0) |
Set the background sprite. | |
Sint32 | CRM64Pro::Widget::setBgSprite (Sint32 idCDC, const string &sName, eWidgetState eWS=WS_DEFAULT, Sint32 iAnim=0) |
Set the background sprite. | |
Sint32 | CRM64Pro::Widget::setBgSprite (Sint32 idSprite, eWidgetState eWS=WS_DEFAULT, Sint32 iAnim=0) |
Set the background sprite. | |
Sint32 | CRM64Pro::Widget::getBgSprite (eWidgetState eWS=WS_NORMAL, Sint32 *iAnim=nullptr) |
Get the background sprite. | |
Sint32 | CRM64Pro::Widget::setFunction (Sint32(*stateFunc)(void *, void *), void *iParam1=nullptr, void *iParam2=nullptr, eWidgetState eWS=WS_ACTION) |
Set a function to be called on given state. | |
#define WIDGET_FEATURE_FADE 0x00010000 |
Widget feature: fading effect at showing and hiding time.
#define WIDGET_FEATURE_DRAGDROP 0x00020000 |
Widget feature: allow to move the widget (drag&drop).
#define WIDGET_FEATURE_ENCLOSE 0x00040000 |
Widget feature: enclose the widget inside its parent (default).
#define WIDGET_FEATURE_DETACH 0x00080000 |
Widget feature: the widget is detached from its parent.
#define WIDGET_FEATURE_BGFIT 0x00100000 |
Widget feature: background image/sprite auto-fit to widget size.
#define WIDGET_FEATURE_BGDISABLE 0x00200000 |
Widget feature: background rendering is disabled.
#define WIDGET_FEATURE_EVENTS 0x00400000 |
Widget feature: allow the widget to process events and generate C64_EVENT_WIDGET event.
#define WIDGET_FEATURE_MOUSEOVER 0x00800000 |
Widget feature: allow the widget to generate C64_EVENT_WIDGET_MOUSEOVER events.
#define WIDGET_FEATURE_LOSTFOCUS 0x01000000 |
Widget feature: allow the widget to generate C64_EVENT_WIDGET_LOSTFOCUS events.
#define WIDGET_FEATURE_MULTILINE 0x02000000 |
Widget feature: TextBox supports multiline text.
#define WIDGET_FEATURE_READONLY 0x04000000 |
Widget feature: TextBox on read-only mode.
#define WIDGET_FEATURE_AUTOSORT 0x08000000 |
Widget feature: ListBox auto-sorting of items.
Widget state.
Widget type.
|
virtual |
Request Widget object information.
For displaying the information, it uses the default log.
iMode | 0 for a stand-alone info calling or 1 when it is called from a nested info method. 0 is set by default. |
Sint32 CRM64Pro::Widget::disable | ( | ) |
Disable a widget.
Sint32 CRM64Pro::Widget::show | ( | ) |
Show a widget.
Sint32 CRM64Pro::Widget::hide | ( | ) |
Hide a widget.
Sint32 CRM64Pro::Widget::status | ( | ) |
Get the widget status.
C64_STATUS_DISABLED | widget is disabled. |
C64_STATUS_HIDDEN | widget is enabled but hidden. |
C64_STATUS_SHOWN | widget is enabled and shown. |
Sint32 CRM64Pro::Widget::features | ( | Sint32 | iFeatures | ) |
Set or get advanced features.
Check WIDGET_FEATURE_x defines for a list of supported features.
iFeatures | 32bits signed integer with desired flags enabled. Enabling a current enabled flag will disable it. For getting current enabled flags, use -1. |
|
virtual |
Set the size.
iWidth | widget width. Minimum width is 8. |
iHeight | widget height. Minimum height is 8. |
Sint32 CRM64Pro::Widget::getSize | ( | Sint32 * | iWidth, |
Sint32 * | iHeight | ||
) |
Get the size.
iWidth | an integer pointer filled in with widget width. If nullptr is passed, the method ignores the retrieving of this value. |
iHeight | an integer pointer filled in with widget height. If nullptr is passed, the method ignores the retrieving of this value. |
Set the position.
Setting the position of a "base" widget is relative to the screen where it is rendered to, for the rest of widgets, the position is always relative to the "base" widget.
iX | widget X position. Check ePositionHelpers enum for a list of supported position helpers. By default, it is set to PH_CENTER. |
iY | widget Y position. Check ePositionHelpers enum for a list of supported position helpers. By default, it is set to PH_CENTER. |
Sint32 CRM64Pro::Widget::getPosition | ( | Sint32 * | iX, |
Sint32 * | iY | ||
) |
Get the position.
Getting the position of a "base" widget is relative to the screen where it is rendered to, for the rest of widgets, the position is always relative to the "base" widget.
iX | a pointer filled in with widget X position. If nullptr is passed, the method ignores the retrieving of this value. |
iY | a pointer filled in with widget Y position. If nullptr is passed, the method ignores the retrieving of this value. |
|
virtual |
Set the margins.
By default, the margins are set to 3.
iTop | top margin in pixels. |
iRight | right margin in pixels. |
iBottom | bottom margin in pixels. |
iLeft | left margin in pixels. |
Sint32 CRM64Pro::Widget::getMargin | ( | Sint32 * | iTop, |
Sint32 * | iRight, | ||
Sint32 * | iBottom, | ||
Sint32 * | iLeft | ||
) |
Get the margins.
iTop | a pointer filled in with top margin in pixels. If nullptr is passed, the method ignores the retrieving of this value. |
iRight | a pointer filled in with right margin in pixels. If nullptr is passed, the method ignores the retrieving of this value. |
iBottom | a pointer filled in with bottom margin in pixels. If nullptr is passed, the method ignores the retrieving of this value. |
iLeft | a pointer filled in with left margin in pixels. If nullptr is passed, the method ignores the retrieving of this value. |
Sint32 CRM64Pro::Widget::setAlphaMod | ( | Uint8 | iAlpha | ) |
Set alpha modulation used for rendering this widget.
iAlpha | It ranges from 255 (opaque) to 0 (fully transparent). |
Uint8 CRM64Pro::Widget::getAlphaMod | ( | ) |
Get alpha modulation used for rendering this widget.
|
virtual |
Set the text.
The working way of this method differs depending on the widget type.
sText | A text string (caption, item or text). |
iParam1 | By default, it is set to PH_CENTER.
|
iParam2 | By default, it is set to PH_CENTER.
|
|
virtual |
Get the text.
The working way of this method differs depending on the widget type.
sText | A text string pointer to be filled in (caption, item or text). |
iParam1 | By default, it is set to -1.
|
|
virtual |
Set the assigned key.
keycode | SDL_Keycode to be assigned for enabling the WS_ACTION state. |
SDL_Keycode CRM64Pro::Widget::getKey | ( | ) |
Get the assigned key.
|
virtual |
Set a value.
The working way of this method differs depending on the widget type.
iValue | value to be set.
|
|
virtual |
Get current value.
The working way of this method differs depending on the widget type.
|
virtual |
Get enabled checkbox in a group.
The working way of this method differs depending on the widget type.
iGroup | id of the group to retrieve the enabled widget id. |
|
virtual |
Set the range.
The working way of this method differs depending on the widget type.
iRange | range of possible values. Minimum value is 1. Only used with: WT_PROGRESSBAR: when the widget has associated an image or sprite for the relevant status, this method also calculate the proper size of the widget. WT_HSLIDER WT_VSLIDER widget types. |
|
virtual |
Get current range.
The working way of this method differs depending on the widget type.
Sint32 CRM64Pro::Widget::setState | ( | eWidgetState | eWS = WS_NORMAL | ) |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
|
virtual |
Modify the widget scroll.
The working way of this method differs depending on the widget type.
iUnitsX | number of units to move the scroll. Negative value move it to the left, 0 will not modify it and a positive one, will move it to the right. |
iUnitsY | number of units to move the scroll. Negative value move it to the top, 0 will not modify it and a positive one, will move it to the bottom. |
|
virtual |
Get the widget current scroll.
The working way of this method differs depending on the widget type.
iUnitsX | an integer pointer filled in with current scroll position on X axis. Units are text characters. If nullptr is passed, the method ignores the retrieving of this value. |
iUnitsY | an integer pointer filled in with current scroll position on Y axis. Units are items. If nullptr is passed, the method ignores the retrieving of this value. |
|
virtual |
Get visible items.
The working way of this method differs depending on the widget type.
iUnitsX | an integer pointer filled in with maximum number of visible text characters on the X axis. If nullptr is passed, the method ignores the retrieving of this value. |
iUnitsY | an integer pointer filled in with maximum number of visible lines on the Y axis. If nullptr is passed, the method ignores the retrieving of this value. |
|
virtual |
Set the font.
idFont | Font id. |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_DEFAULT which affect to all states. |
Sint32 CRM64Pro::Widget::getFont | ( | eWidgetState | eWS = WS_NORMAL | ) |
Get the font.
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
|
virtual |
Set the checkbox group.
The working way of this method differs depending on the widget type.
iGroup | id of the group that this widget belongs to. |
|
virtual |
Get the checkbox group.
Sint32 CRM64Pro::Widget::setBorderWidth | ( | Sint32 | iWidth, |
eWidgetState | eWS = WS_DEFAULT |
||
) |
Set the border width.
iWidth | border width in pixels. |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_DEFAULT which affect to all states. |
Sint32 CRM64Pro::Widget::getBorderWidth | ( | eWidgetState | eWS = WS_NORMAL | ) |
Get the border width.
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
Sint32 CRM64Pro::Widget::setBorderCorner | ( | Sint32 | iRad, |
eWidgetState | eWS = WS_DEFAULT |
||
) |
Set the border corner radius.
iRad | border corner radius width in pixels. |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_DEFAULT which affect to all states. |
Sint32 CRM64Pro::Widget::getBorderCorner | ( | eWidgetState | eWS = WS_NORMAL | ) |
Get the border corner radius.
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
Sint32 CRM64Pro::Widget::setBorderColor | ( | Uint8 | iR, |
Uint8 | iG, | ||
Uint8 | iB, | ||
Uint8 | iA, | ||
eWidgetState | eWS = WS_DEFAULT |
||
) |
Set the border color.
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
iA | The alpha value ranging from 0(fully transparent) to 255(opaque). |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_DEFAULT which affect to all states. |
Sint32 CRM64Pro::Widget::getBorderColor | ( | Uint8 * | iR, |
Uint8 * | iG, | ||
Uint8 * | iB, | ||
Uint8 * | iA, | ||
eWidgetState | eWS = WS_NORMAL |
||
) |
Get the border color.
iR | a pointer filled with the Red component. If nullptr is passed, the method ignores the retrieving of this value. |
iG | a pointer filled with the Green component. If nullptr is passed, the method ignores the retrieving of this value. |
iB | a pointer filled with the Blue component. If nullptr is passed, the method ignores the retrieving of this value. |
iA | a pointer filled with the alpha component. If nullptr is passed, the method ignores the retrieving of this value. |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
Sint32 CRM64Pro::Widget::setBgColor | ( | Uint8 | iR, |
Uint8 | iG, | ||
Uint8 | iB, | ||
eWidgetState | eWS = WS_DEFAULT |
||
) |
Set the background color.
iR | The red color value. |
iG | The green color value. |
iB | The blue color value. |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_DEFAULT which affect to all states. |
Sint32 CRM64Pro::Widget::getBgColor | ( | Uint8 * | iR, |
Uint8 * | iG, | ||
Uint8 * | iB, | ||
eWidgetState | eWS = WS_NORMAL |
||
) |
Get the background color.
iR | a pointer filled with the Red component. If nullptr is passed, the method ignores the retrieving of this value. |
iG | a pointer filled with the Green component. If nullptr is passed, the method ignores the retrieving of this value. |
iB | a pointer filled with the Blue component. If nullptr is passed, the method ignores the retrieving of this value. |
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
Sint32 CRM64Pro::Widget::setBgImage | ( | const string & | sFileCDC, |
const string & | sName, | ||
eWidgetState | eWS = WS_NORMAL |
||
) |
Set the background image.
sFileCDC | string containing the [directory]+filename. |
sName | string with the image name (maximum size of 64 characters). If the image is already loaded, a new child will be created. |
eWS | Widget state. Check eWidgetState for further information (WS_DEFAULT is not supported).
|
Sint32 CRM64Pro::Widget::setBgImage | ( | Sint32 | idCDC, |
const string & | sName, | ||
eWidgetState | eWS = WS_NORMAL |
||
) |
Set the background image.
idCDC | CDC id. |
sName | string with the image name (maximum size of 64 characters). If the image is already loaded, a new child will be created. |
eWS | Widget state. Check eWidgetState for further information (WS_DEFAULT is not supported).
|
Sint32 CRM64Pro::Widget::setBgImage | ( | Sint32 | idImage, |
eWidgetState | eWS = WS_NORMAL |
||
) |
Set the background image.
idImage | Image id. The image ownership will be taken by this widget. |
eWS | Widget state. Check eWidgetState for further information (WS_DEFAULT is not supported).
|
Sint32 CRM64Pro::Widget::getBgImage | ( | eWidgetState | eWS = WS_NORMAL | ) |
Get the background image.
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
Sint32 CRM64Pro::Widget::setBgSprite | ( | const string & | sFileCDC, |
const string & | sName, | ||
eWidgetState | eWS = WS_DEFAULT , |
||
Sint32 | iAnim = 0 |
||
) |
Set the background sprite.
sFileCDC | string containing the [directory]+filename. |
sName | string with the image name (maximum size of 64 characters). If the sprite is already loaded, a new child will be created. |
eWS | Widget state. Check eWidgetState for further information. When it is set to WS_DEFAULT (default value), it will try to assign an animation for each state:
|
iAnim | starting animation state (high-state + low-state) or the animation number to be used on this widget. At least, one animation must exist. By default, it is set to 0. |
Sint32 CRM64Pro::Widget::setBgSprite | ( | Sint32 | idCDC, |
const string & | sName, | ||
eWidgetState | eWS = WS_DEFAULT , |
||
Sint32 | iAnim = 0 |
||
) |
Set the background sprite.
idCDC | CDC id. |
sName | string with the image name (maximum size of 64 characters). If the sprite is already loaded, a new child will be created. |
eWS | Widget state. Check eWidgetState for further information. When it is set to WS_DEFAULT (default value), it will try to assign an animation for each state:
|
iAnim | starting animation state (high-state + low-state) or the animation number to be used on this widget. At least, one animation must exist. By default, it is set to 0. |
Sint32 CRM64Pro::Widget::setBgSprite | ( | Sint32 | idSprite, |
eWidgetState | eWS = WS_DEFAULT , |
||
Sint32 | iAnim = 0 |
||
) |
Set the background sprite.
idSprite | Sprite id. |
eWS | Widget state. Check eWidgetState for further information. When it is set to WS_DEFAULT (default value), it will try to assign an animation for each state:
|
iAnim | starting animation state (high-state + low-state) or the animation number to be used on this widget. At least, one animation must exist. By default, it is set to 0. |
Sint32 CRM64Pro::Widget::getBgSprite | ( | eWidgetState | eWS = WS_NORMAL , |
Sint32 * | iAnim = nullptr |
||
) |
Get the background sprite.
eWS | Widget state. Check eWidgetState for further information. By default it is set to WS_NORMAL. |
iAnim | pointer to an integer for getting the animation number of selected state or nullptr when dont want to return it. By default is set to nullptr. |
Sint32 CRM64Pro::Widget::setFunction | ( | Sint32(*)(void *, void *) | stateFunc, |
void * | iParam1 = nullptr , |
||
void * | iParam2 = nullptr , |
||
eWidgetState | eWS = WS_ACTION |
||
) |
Set a function to be called on given state.
stateFunc | pointer to a function "Sint32 myFunc(void*,void*)" to be called when the widget is on the given state. Set it to nullptr for removing a previous exiting function. |
iParam1 | Optional void pointer passed to myFunc. |
iParam2 | Optional void pointer passed to myFunc. |
eWS | Widget state. Check eWidgetState for further information (WS_DEFAULT and WS_DEACTIVATED are not supported). By default it is set to WS_ACTION. |