Implementation class for ToggleButtonGroupConcept.
More...
#include <kanzi/ui/node/concept/toggle_button_group.hpp>
|
unordered_map< size_t, Node & > | m_buttons |
| List of Toggle Buttons registered to the Toggle Button Group. More...
|
|
size_t | m_nextFreeIndex |
| Counter for the next available index number that the Toggle Button Group assigns to a Toggle Button that you register without a predefined index. More...
|
|
optional< size_t > | m_oldButtonIndex |
| The index of the Toggle Button last time Kanzi toggled on a Toggle Button in the Toggle Button Group. More...
|
|
template<class TBaseClass, class TDerivedClass>
class kanzi::ToggleButtonGroupConceptImpl< TBaseClass, TDerivedClass >
Implementation class for ToggleButtonGroupConcept.
◆ ToggleButtonGroupConceptImpl()
template<typename TBaseClass , typename TDerivedClass >
◆ makeEditorInfo()
template<typename TBaseClass , typename TDerivedClass >
◆ registerButton() [1/2]
template<typename TBaseClass , typename TDerivedClass >
Registers a Toggle Button to the Toggle Button Group with a preset index.
Fails if the index is already in use in that Toggle Button Group.
- Parameters
-
button | The Toggle Button to register to the Toggle Button Group. |
index | The index to use to register the button. The index cannot already be in use in the Toggle Button Group. |
- Returns
- If the registration was successful, the index, otherwise nullopt.
- Since
- Kanzi 3.9.0
◆ registerButton() [2/2]
template<typename TBaseClass , typename TDerivedClass >
Registers a Toggle Button to the Toggle Button Group and automatically assigns an index for that Toggle Button.
- Parameters
-
button | The Toggle Button to register to the Toggle Button Group. |
- Returns
- The index that Kanzi assigned to the Toggle Button during the registration, or nullopt if the registration failed.
- Since
- Kanzi 3.9.0
◆ unregisterButton()
template<typename TBaseClass , typename TDerivedClass >
Unregisters from the Toggle Button Group a Toggle Button with the given index.
- Parameters
-
index | The index of the Toggle Button to unregister from the Toggle Button Group. |
- Since
- Kanzi 3.9.0
◆ getCurrentButtonIndex()
template<typename TBaseClass , typename TDerivedClass >
◆ setCurrentButtonIndex()
template<typename TBaseClass , typename TDerivedClass >
Sets the value of the CurrentButtonIndexProperty.
- Parameters
-
index | The index of the Toggle Button in the Toggle Button Group that you want to toggle on. To toggle off all Toggle Buttons in the Toggle Button Group, pass nullopt. |
- See also
- getCurrentButtonIndex()
- Since
- Kanzi 3.9.0
◆ measureOverride()
template<typename TBaseClass, typename TDerivedClass >
◆ onDetached()
template<typename TBaseClass , typename TDerivedClass >
◆ onNodePropertyChanged()
template<typename TBaseClass , typename TDerivedClass >
◆ getThisObject() [1/2]
template<class TBaseClass, class TDerivedClass>
Internal accessor for the Curiously Recurring Template Pattern.
◆ getThisObject() [2/2]
template<class TBaseClass, class TDerivedClass>
Internal accessor for the Curiously Recurring Template Pattern.
◆ toggleOnRegisteredButton()
template<typename TBaseClass , typename TDerivedClass >
Toggles on passed button if it has more than 1 toggle states.
- Parameters
-
button | Button that Toggle Button Group toggles on. |
- Returns
- Returns true if button is toggle on succesfully, otherwise false.
◆ m_buttons
template<class TBaseClass, class TDerivedClass>
List of Toggle Buttons registered to the Toggle Button Group.
◆ m_oldButtonIndex
template<class TBaseClass, class TDerivedClass>
The index of the Toggle Button last time Kanzi toggled on a Toggle Button in the Toggle Button Group.
◆ m_nextFreeIndex
template<class TBaseClass, class TDerivedClass>
Counter for the next available index number that the Toggle Button Group assigns to a Toggle Button that you register without a predefined index.
The documentation for this class was generated from the following files: