50 uint mButtonCommandId{0};
53 void setButtonState(
bool active);
54 void enterLeaveCallback();
80 mButtonDisplayCallback = std::move(buttonDisplayCallback);
88 mButtonStateChangeCallback = std::move(buttonStateChangeCallback);
97 mButtonCommandId = commandId;
98 mButtonCommandCallback = std::move(buttonCommandCallback);
When pressed and released signals an action.
std::function< void(ButtonStateChange buttonStateChange, uint commandId)> ButtonCommandCallback
Button command callback.
Definition: Callbacks.h:82
A toggle button.
Definition: Constants.h:93
std::function< void(ButtonStateChange buttonStateChange)> ButtonStateChangeCallback
Button state change callback.
Definition: Callbacks.h:75
Definitions to support callbacks.
std::function< void(ButtonDisplayState buttonDisplayState)> ButtonDisplayCallback
Button display state callback.
Definition: Callbacks.h:69
ButtonType
The button type.
Definition: PointerInteractions.h:21
ToDo: There is an issue that the initial scroll interaction is lost if the click/press lands on a Wid...
Definition: CelestialOverlay.cpp:13
A button without any button semantics but can be inverted and animated.
Button is inactive (not pushed, toggled off, etc).