touchgfx::ToggleButton::forceState() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::ToggleButton::forceState()

touchgfx::ToggleButton::forceState() method

@fn void ToggleButton::forceState(bool activeState); Force the button into a specific state. Use this function to force the button in one of the two possible states. If button is forced to the active state, then the pressed bitmap from the last call to setBitmaps becomes the one displayed when button is not pressed.

Syntax

void forceState(bool activeState);

Arguments

activeState

If true, display the bmpPressed bitmap when not pressed. If false display the bmpReleased bitmap.

References

LocationText
ToggleButton.hpp:80
void forceState(bool activeState);