Magnum::Ui::VisibilityLostEvent class new in Git master

Visibility lost event.

Unlike all other events, this event is fired from AbstractUserInterface::update() and is without any relation to events coming from the application. As such it also doesn't carry a timestamp, thus visual changes done in response to this event don't animate.

Constructors, destructors, conversion operators

VisibilityLostEvent() defaulted explicit
Constructor.

Public functions

auto isPressed() const -> bool
Whether the event is called on a node that's currently pressed.
auto isHovering() const -> bool
Whether the event is called on a node that's currently hovered.

Function documentation

Magnum::Ui::VisibilityLostEvent::VisibilityLostEvent() explicit defaulted

Constructor.

The pressed and hover properties are set from AbstractUserInterface event handler internals.

bool Magnum::Ui::VisibilityLostEvent::isPressed() const

Whether the event is called on a node that's currently pressed.

Returns true only if the event was called in response to AbstractUserInterface::currentFocusedNode() no longer being NodeFlag::Focusable and AbstractUserInterface::currentPressedNode() is the same as the node the event is called on. In all other cases (node becoming invisible, NodeFlag::Disabled or NodeFlag::NoEvents) returns false.

bool Magnum::Ui::VisibilityLostEvent::isHovering() const

Whether the event is called on a node that's currently hovered.

Returns true only if the event was called in response to AbstractUserInterface::currentFocusedNode() no longer being NodeFlag::Focusable and AbstractUserInterface::currentHoveredNode() is the same as the node the event is called on. In all other cases (node becoming invisible, NodeFlag::Disabled or NodeFlag::NoEvents) returns false.