Implementation class for ButtonConcept. More...
#include <kanzi/ui/node/concept/button.hpp>
Public Types | |
| using | ToggleButtonGroup = typename conditional< is_base_of< Node2D, TBaseClass >::value, ToggleButtonGroup2D, ToggleButtonGroup3D >::type |
Public Member Functions | |
| float | getAutoClickInterval () const |
| optional< size_t > | getEffectiveButtonGroupIndex () const |
| Returns the index that Kanzi assigned to the Button when it was registered to a Toggle Button Group. More... | |
| int | getIndexInGroup () const |
| Returns the value of IndexInGroupProperty. More... | |
| float | getLongPressInterval () const |
| unsigned int | getToggleState () const |
| Returns the value of ToggleStateProperty. More... | |
| unsigned int | getToggleStateCount () const |
| Returns the value of ToggleStateCountProperty. More... | |
| bool | isCurrentlyRegistered () const |
| Returns whether the Button is registered to a Toggle Button Group. More... | |
| bool | isPressed () const |
| bool | isPressOnHover () const |
| void | setAutoClickInterval (float value) |
| void | setIndexInGroup (int value) |
| Sets the value of IndexInGroupProperty. More... | |
| void | setLongPressInterval (float value) |
| void | setPressed (bool value) |
| void | setPressOnHover (bool value) |
| void | setToggleState (unsigned int state) |
| Sets the value of ToggleStateProperty. More... | |
| void | setToggleStateCount (unsigned int value) |
| Sets the value of ToggleStateCountProperty. More... | |
| void | toggle () |
| Toggles the button. More... | |
Public Member Functions inherited from kanzi::ClickConceptImpl< TBaseClass, TDerivedClass > | |
| bool | isDoubleClickEnabled () const |
| Gets the value of DoubleClickEnabledProperty. More... | |
| void | setDoubleClickEnabled (bool value) |
| Sets the value of DoubleClickEnabledProperty. More... | |
Static Public Member Functions | |
| static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Member Functions inherited from kanzi::ClickConceptImpl< TBaseClass, TDerivedClass > | |
| static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Member Functions inherited from kanzi::ClickConcept | |
| static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Member Functions inherited from kanzi::ButtonConcept | |
| static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Friends | |
| class | ::KzTestButtons |
Additional Inherited Members | |
Static Public Attributes inherited from kanzi::ClickConcept | |
| static PropertyType< bool > | DoubleClickEnabledProperty |
| Enables the double-click gesture for a node. More... | |
Static Public Attributes inherited from kanzi::ButtonConcept | |
| static PropertyType< bool > | IsPressedProperty |
| Indicates whether the button is in the down state. More... | |
| static PropertyType< float > | LongPressIntervalProperty |
| Sets the amount of time in milliseconds that the user must hold the button pressed down for Kanzi to recognize it as a long-press gesture. More... | |
| static PropertyType< bool > | PressOnHoverProperty |
| Indicates whether hovering the pointer over the button sets the button in the down state. More... | |
| static PropertyType< float > | AutoClickIntervalProperty |
| Sets the time in milliseconds after which a button that the user keeps pressed down sends the ButtonConcept::ClickedMessage. More... | |
| static PropertyType< int > | ToggleStateProperty |
| Sets the toggle state of a Button. More... | |
| static PropertyType< int > | ToggleStateCountProperty |
| Sets the number of toggle states of a Button. More... | |
| static PropertyType< int > | IndexInGroupProperty |
| Sets the predefined index of a Button in the Toggle Button Group to which that Button is registered. More... | |
| static MessageType< ClickedMessageArguments > | ClickedMessage |
| static MessageType< PressedMessageArguments > | PressedMessage |
| static MessageType< CanceledMessageArguments > | CanceledMessage |
| static MessageType< PointerEnteredMessageArguments > | PointerEnteredMessage |
| static MessageType< PointerLeftMessageArguments > | PointerLeftMessage |
| static MessageType< LongPressMessageArguments > | LongPressMessage |
| static MessageType< ToggledOnMessageArguments > | ToggledOnMessage |
| static MessageType< ToggledOffMessageArguments > | ToggledOffMessage |
| static MessageType< ToggleStateChangedMessageArguments > | ToggleStateChangedMessage |
Static Protected Member Functions inherited from kanzi::ButtonConcept | |
| static Vector2 | measure2D (Node2D *button, Vector2 availableSize) |
| Measure function for a Node2D button. More... | |
Protected Attributes inherited from kanzi::ClickConcept | |
| ClickManipulatorSharedPtr | m_clickManipulator |
| The ClickManipulator. More... | |
| MultiClickManipulatorSharedPtr | m_multiClickManipulator |
| Multi-Click manipulator. More... | |
Implementation class for ButtonConcept.
| using kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::ToggleButtonGroup = typename conditional<is_base_of<Node2D, TBaseClass>::value, ToggleButtonGroup2D, ToggleButtonGroup3D>::type |
|
explicitprotected |
|
static |
| bool kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::isPressed | ( | ) | const |
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::setPressed | ( | bool | value | ) |
| float kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::getLongPressInterval | ( | ) | const |
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::setLongPressInterval | ( | float | value | ) |
| bool kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::isPressOnHover | ( | ) | const |
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::setPressOnHover | ( | bool | value | ) |
| float kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::getAutoClickInterval | ( | ) | const |
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::setAutoClickInterval | ( | float | value | ) |
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::toggle | ( | ) |
Toggles the button.
| unsigned int kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::getToggleState | ( | ) | const |
Returns the value of ToggleStateProperty.
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::setToggleState | ( | unsigned int | state | ) |
Sets the value of ToggleStateProperty.
| unsigned int kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::getToggleStateCount | ( | ) | const |
Returns the value of ToggleStateCountProperty.
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::setToggleStateCount | ( | unsigned int | value | ) |
Sets the value of ToggleStateCountProperty.
| int kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::getIndexInGroup | ( | ) | const |
Returns the value of IndexInGroupProperty.
| void kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::setIndexInGroup | ( | int | value | ) |
Sets the value of IndexInGroupProperty.
| bool kanzi::ButtonConceptImpl< TBaseClass, TDerivedClass >::isCurrentlyRegistered | ( | ) | const |
Returns whether the Button is registered to a Toggle Button Group.
|
inline |
Returns the index that Kanzi assigned to the Button when it was registered to a Toggle Button Group.
|
protected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
friend |