25 TestWidget() : mButtonSemantics(static_cast<Widget&>(*
this)) {
27 switch (buttonDisplayState) {
29 std::cout << __PRETTY_FUNCTION__ <<
" Active\n";
32 std::cout << __PRETTY_FUNCTION__ <<
" Inactive\n";
35 std::cout << __PRETTY_FUNCTION__ <<
" Pressed Inactive\n";
38 std::cout << __PRETTY_FUNCTION__ <<
" Pressed Active\n";
55 mSemanticGesture = SemanticGesture::Key | SemanticGesture::Click | SemanticGesture::Scroll | SemanticGesture::Drag;
60 mSemanticGesture = SemanticGesture::Key | SemanticGesture::Click | SemanticGesture::Scroll | SemanticGesture::Drag;
65 static constexpr std::string_view
id =
"TestWidget";
66 std::string_view nodeId()
const noexcept
override {
int fillRect(Rectangle rect, color::RGBA color)
Render a filled Rectangle.
Definition: GraphicsModel.cpp:113
Red Green Blue Alpha representation of a color.
Definition: Color.h:64
Position< int > mPos
Position relative to the container, arrived at by layout.
Definition: Visual.h:134
ButtonDisplayState
The visible state a button is in.
Definition: Callbacks.h:21
Context
Definition: GraphicsModel.h:76
User pressed the button in the Active state.
User pressed the button in the Inactive state.
A composite of a Position and a Size.
Definition: Types.h:307
A size in integer dimensions.
Definition: Types.h:230
Button is active (pushed, toggled on, etc).
Size mSize
The size on screen, arrived at by layout.
Definition: Visual.h:135
Size mPreferredSize
The preferred size.
Definition: Visual.h:137
ToDo: There is an issue that the initial scroll interaction is lost if the click/press lands on a Wid...
Definition: CelestialOverlay.cpp:13
User Interface Visual types.
Button is inactive (not pushed, toggled off, etc).
Position< int > mPreferredPos
The preferred position.
Definition: Visual.h:136