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

Panel widget.

Base classes

template<class UserInterface>
class BasicWidget<UserInterface> new in Git master
Templated abstract base for stateful widgets.

Constructors, destructors, conversion operators

Panel(Anchor anchor, PanelStyle style = PanelStyle::Default) explicit
Constructor.
Panel(NoCreateT) explicit
Construct with no underlying node.

Public functions

auto style() const -> PanelStyle
Style.
auto setStyle(PanelStyle style) -> Panel&
Set style.
auto backgroundData() const -> DataHandle
Background data or DataHandle::Null.

Function documentation

Magnum::Ui::Panel::Panel(Anchor anchor, PanelStyle style = PanelStyle::Default) explicit

Constructor.

Parameters
anchor Positioning anchor
style Panel style

Magnum::Ui::Panel::Panel(NoCreateT) explicit

Construct with no underlying node.

The instance is equivalent to a moved-out state, i.e. not usable for anything. Move another instance over it to make it useful.

Panel& Magnum::Ui::Panel::setStyle(PanelStyle style)

Set style.

Returns Reference to self (for method chaining)

DataHandle Magnum::Ui::Panel::backgroundData() const

Background data or DataHandle::Null.

Exposed mainly for testing purposes, not meant to be modified directly.