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 WidgetFlag::Hovered, WidgetFlag::Pressed and WidgetFlag::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.

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)