|
| CelestialOverlay (std::shared_ptr< TimerTick > timerTick, std::filesystem::path &xdgDataPath) |
|
| CelestialOverlay (const CelestialOverlay &)=delete |
|
| CelestialOverlay (CelestialOverlay &&)=delete |
|
CelestialOverlay & | operator= (const CelestialOverlay &)=delete |
|
CelestialOverlay & | operator= (CelestialOverlay &&)=delete |
|
std::string_view | nodeId () const noexcept override |
|
void | draw (gm::Context &context, const Position< int > &containerPosition) override |
| Draw the CelestialOverlay.
|
|
Rectangle | layout (gm::Context &context, const Rectangle &screenRect) override |
| Layout the CelestialOverlay.
|
|
void | addedToContainer () override |
| Called when added to a container. More...
|
|
void | loadMapCelestialObjectImages (const std::filesystem::path &xdgResourcePath, gm::Context &context) |
| Load overlay images into the ImageStore.
|
|
void | setCelestialObservations () |
|
| Widget (const Widget &)=delete |
|
| Widget (Widget &&)=delete |
|
Widget & | operator= (const Widget &)=delete |
|
Widget & | operator= (Widget &&)=delete |
|
std::string_view | nodeId () const noexcept override |
|
std::shared_ptr< Widget > | pointerWidget (const Position< int > &position, const Position< int > &containerPosition) |
| Search for the Widget within which the position lies. More...
|
|
Position< int > | computeScreenPosition () |
| Recursively compute the Widget Position on the Screen. More...
|
|
bool | contains (const Position< int > &position) |
| Determine if a given Screen Position is within the Widget Rectangle. More...
|
|
Application & | getApplication () |
| Get a reference to the Application object. More...
|
|
Application & | getApplication () const |
| const version of getApplication()
|
|
std::shared_ptr< Window > | getWindow () |
| Get the Window ancestor of a Widget. More...
|
|
std::shared_ptr< Window > | getWindow () const |
| const version of getWindow().
|
|
bool | enterEvent () |
| Notify Widget of mouse pointer enter event. More...
|
|
void | setEnterLeaveEventCallback (EventCallback eventCallback) |
| Set the enter callback.
|
|
bool | leaveEvent () |
| Notify Widget of mouse pointer leave event. More...
|
|
void | setLeaveEventCallback (EventCallback eventCallback) |
| Set the leave callback.
|
|
bool | buttonEvent (bool pressed, uint button, uint clicks, bool passed) |
| Notify Widget of mouse button events. More...
|
|
void | setButtonEventCallback (ButtonCallback buttonCallback) |
| Set the button callback.
|
|
bool | mouseMotionEvent (bool pressed, uint button, const Position< int > &mousePos, const Position< int > &relativePos, bool passed) |
| Notify Widget of mouse motion events. More...
|
|
void | setMouseMotionEventCallback (MouseMotionCallback mouseMotionCallback) |
| Set the mouse motion callback.
|
|
bool | mouseScrollEvent (const Position< int > &deltaPos, bool passed) |
| Notify Widget of mouse scroll wheel events. More...
|
|
void | setMouseScrollEventCallback (ScrollCallback scrollCallback) |
| Set the mouse scroll callback.
|
|
bool | keyboardShortcutEvent (uint32_t shortcutCode, bool state, uint repeat) |
| Notify the Widget of a keyboard shortcut invocation. More...
|
|
void | setKeyboardShortcutCallback (KeyboardShortcutCallback keyboardShortcutCallback) |
| Set the keyboard shortcut callback.
|
|
bool | keyTextInputEvent (const std::string &text) |
| Notify the Widget of text input. More...
|
|
void | setTextInputCallback (TextInputCallback textInputCallback) |
| Set the text input callback.
|
|
bool | supportsKeyboardFocus () const |
|
bool | keyboardFocusEvent (bool hasFocus) |
| Notify the Widget when it gains or looses keyboard focus. More...
|
|
void | setKeyboardFocusCallback (KeyboardFocusCallback keyboardFocusCallback) |
| Set the keyboard focus callback.
|
|
bool | keyboardEvent (const SDL_KeyboardEvent &keyboardEvent) |
|
void | setKeyboardEvent (KeyboardEventCallback keyboardEventCallback) |
|
void | setScreenRectangle (const Position< int > &containerPosition) |
| Compute the screen rectangle from the Container screen Position. More...
|
|
Rectangle | getScreenRectangle (const Position< int > &containerPosition) const |
| Get the rectangle occupied by the Visual. More...
|
|
Position< int > | drawPadding (const Position< int > &containerPosition) |
| Pad the drawing location.
|
|
Rectangle | layoutPadding (const Rectangle &screenRect) |
| Pad the layout.
|
|
void | setSize (const Size &size) |
| Set preferred Size.
|
|
Size | getSize () const |
| Get the preferred size.
|
|
void | setPosition (const Position< int > &position) |
| Set preferred Position.
|
|
Position< int > | getPosition () const |
| Get the preferred Position.
|
|
void | setPadding (const Padding &padding) |
| Set Padding.
|
|
void | setScreenRectangle (const Rectangle &screenRect) |
| Set Screen Rectangle.
|
|
constexpr bool | isVisible () const noexcept |
| Check visibility.
|
|
void | setVisible (bool visible) noexcept |
| Set visibility.
|
|
void | setLayoutHint (const LayoutHint &hint) |
| Add a LayoutHint.
|
|
std::optional< int > | getAttachmentHint (LayoutHint::Attachment attachment) |
| Get an AttachmentHint value given a LayoutHint::Attachment. More...
|
|
std::optional< int > | getGridHint (LayoutHint::GridLayoutHint gridLayoutHint) |
| Get a GridLayoutHint value given a LayoutHint::GridLayoutHint. More...
|
|
template<size_t HintClass> |
std::optional< const ValueMap > | getHintMap () const |
|
SemanticGesture | supportedSemanticGestures () const |
| Get supported SemanticGestures.
|
|
virtual void | add (const std::shared_ptr< Node > &node) |
|
void | remove (const std::shared_ptr< Node > &node) |
|
| Node (const std::shared_ptr< Container > &container) |
| Create a node and add it to a Container. More...
|
|
void | setId (const Id &nodeId) noexcept |
| Set Id.
|
|
std::string_view | getId () const |
| Get Id.
|
|
IdPath | getIdPath () const |
| Get the Id Path.
|
|
std::shared_ptr< Container > | container () |
|
std::shared_ptr< Container > | container () const |
|
template<typename C > |
std::shared_ptr< C > | containerAs () |
|
template<typename C > |
std::shared_ptr< C > | containerAs () const |
|
std::shared_ptr< const Node > | getNode () const |
| Get a const std::shared_ptr to this node. More...
|
|
std::shared_ptr< Node > | getNode () |
| Get a std::shared_ptr to this node. More...
|
|
template<typename NodeType > |
std::shared_ptr< const Node > | getNode () const |
| Get a std::shared_ptr<const NodeType> to this node. More...
|
|
template<typename NodeType > |
std::shared_ptr< NodeType > | getNode () |
| Get a std::shared_ptr<NodeType> to this node. More...
|
|
std::shared_ptr< Node > | remove () |
|