Magnum::Ui::Modal class

Modal widget.

Should be snapped to whole area of a plane. Gives the plane a background and fills the rest with semi-transparent dim color to suggest modality.

Styling

Ignores StateFlag::Hovered, StateFlag::Pressed and StateFlag::Active, Style::Flat.

Base classes

class Widget
Base for widgets.

Constructors, destructors, conversion operators

Modal(Plane& plane, const Anchor& anchor, Style style = Style::Default) explicit
Label.

Public functions

auto setStyle(Style style) -> Modal&
Set widget style.

Private functions

void update() override virtual
Update the widget after its state changed.

Function documentation

Magnum::Ui::Modal::Modal(Plane& plane, const Anchor& anchor, Style style = Style::Default) explicit

Label.

Parameters
plane Plane this widget is a part of
anchor Positioning anchor
style Widget style

Modal& Magnum::Ui::Modal::setStyle(Style style)

Set widget style.

Returns Reference to self (for method chaining)

void Magnum::Ui::Modal::update() override virtual private

Update the widget after its state changed.

Expects to do only visual update, should not do any expensive operations like text relayouting.