CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
|
Inherits CRM64Pro::CMemAllocator.
Inherited by CRM64Pro::WidgetButton, CRM64Pro::WidgetCheckBox, CRM64Pro::WidgetHSlider, CRM64Pro::WidgetImage, CRM64Pro::WidgetLabel, CRM64Pro::WidgetListBox, CRM64Pro::WidgetProgressBar, CRM64Pro::WidgetTextBox, and CRM64Pro::WidgetVSlider.
Public Member Functions | |
virtual Sint32 | info (Sint32 iMode=0) |
Request Widget object information. | |
Sint32 | disable () |
Disable a widget. | |
Sint32 | show () |
Show a widget. | |
Sint32 | hide () |
Hide a widget. | |
Sint32 | status () |
Get the widget status. | |
Sint32 | features (Sint32 iFeatures) |
Set or get advanced features. | |
virtual Sint32 | setSize (Sint32 iWidth, Sint32 iHeight) |
Set the size. | |
Sint32 | getSize (Sint32 *iWidth, Sint32 *iHeight) |
Get the size. | |
Sint32 | setPosition (Sint32 iX=PH_CENTER, Sint32 iY=PH_CENTER) |
Set the position. | |
Sint32 | getPosition (Sint32 *iX, Sint32 *iY) |
Get the position. | |
virtual Sint32 | setMargin (Sint32 iTop, Sint32 iRight, Sint32 iBottom, Sint32 iLeft) |
Set the margins. | |
Sint32 | getMargin (Sint32 *iTop, Sint32 *iRight, Sint32 *iBottom, Sint32 *iLeft) |
Get the margins. | |
Sint32 | setAlphaMod (Uint8 iAlpha) |
Set alpha modulation used for rendering this widget. | |
Uint8 | getAlphaMod () |
Get alpha modulation used for rendering this widget. | |
virtual Sint32 | setText (const string &sText, Sint32 iParam1=PH_CENTER, Sint32 iParam2=PH_CENTER) |
Set the text. | |
virtual Sint32 | getText (string &sText, Sint32 iParam1=-1) |
Get the text. | |
virtual Sint32 | setKey (SDL_Keycode keycode) |
Set the assigned key. | |
SDL_Keycode | getKey () |
Get the assigned key. | |
virtual Sint32 | setValue (Sint32 iValue) |
Set a value. | |
virtual Sint32 | getValue () |
Get current value. | |
virtual Sint32 | getValueGroup (Sint32 iGroup) |
Get enabled checkbox in a group. | |
virtual Sint32 | setRange (Sint32 iRange) |
Set the range. | |
virtual Sint32 | getRange () |
Get current range. | |
Sint32 | setState (eWidgetState eWS=WS_NORMAL) |
virtual Sint32 | setScroll (Sint32 iUnitsX, Sint32 iUnitsY) |
Modify the widget scroll. | |
virtual Sint32 | getScroll (Sint32 *iUnitsX, Sint32 *iUnitsY) |
Get the widget current scroll. | |
virtual Sint32 | getVisibleItems (Sint32 *iUnitsX, Sint32 *iUnitsY) |
Get visible items. | |
virtual Sint32 | setFont (Sint32 idFont, eWidgetState eWS=WS_DEFAULT) |
Set the font. | |
Sint32 | getFont (eWidgetState eWS=WS_NORMAL) |
Get the font. | |
virtual Sint32 | setGroup (Sint32 iGroup) |
Set the checkbox group. | |
virtual Sint32 | getGroup () |
Get the checkbox group. | |
Sint32 | setBorderWidth (Sint32 iWidth, eWidgetState eWS=WS_DEFAULT) |
Set the border width. | |
Sint32 | getBorderWidth (eWidgetState eWS=WS_NORMAL) |
Get the border width. | |
Sint32 | setBorderCorner (Sint32 iRad, eWidgetState eWS=WS_DEFAULT) |
Set the border corner radius. | |
Sint32 | getBorderCorner (eWidgetState eWS=WS_NORMAL) |
Get the border corner radius. | |
Sint32 | setBorderColor (Uint8 iR, Uint8 iG, Uint8 iB, Uint8 iA, eWidgetState eWS=WS_DEFAULT) |
Set the border color. | |
Sint32 | getBorderColor (Uint8 *iR, Uint8 *iG, Uint8 *iB, Uint8 *iA, eWidgetState eWS=WS_NORMAL) |
Get the border color. | |
Sint32 | setBgColor (Uint8 iR, Uint8 iG, Uint8 iB, eWidgetState eWS=WS_DEFAULT) |
Set the background color. | |
Sint32 | getBgColor (Uint8 *iR, Uint8 *iG, Uint8 *iB, eWidgetState eWS=WS_NORMAL) |
Get the background color. | |
Sint32 | setBgImage (const string &sFileCDC, const string &sName, eWidgetState eWS=WS_NORMAL) |
Set the background image. | |
Sint32 | setBgImage (Sint32 idCDC, const string &sName, eWidgetState eWS=WS_NORMAL) |
Set the background image. | |
Sint32 | setBgImage (Sint32 idImage, eWidgetState eWS=WS_NORMAL) |
Set the background image. | |
Sint32 | getBgImage (eWidgetState eWS=WS_NORMAL) |
Get the background image. | |
Sint32 | setBgSprite (const string &sFileCDC, const string &sName, eWidgetState eWS=WS_DEFAULT, Sint32 iAnim=0) |
Set the background sprite. | |
Sint32 | setBgSprite (Sint32 idCDC, const string &sName, eWidgetState eWS=WS_DEFAULT, Sint32 iAnim=0) |
Set the background sprite. | |
Sint32 | setBgSprite (Sint32 idSprite, eWidgetState eWS=WS_DEFAULT, Sint32 iAnim=0) |
Set the background sprite. | |
Sint32 | getBgSprite (eWidgetState eWS=WS_NORMAL, Sint32 *iAnim=nullptr) |
Get the background sprite. | |
Sint32 | setFunction (Sint32(*stateFunc)(void *, void *), void *iParam1=nullptr, void *iParam2=nullptr, eWidgetState eWS=WS_ACTION) |
Set a function to be called on given state. | |
Widget Object.