PopupButton

A button made to open popups.

Constructors

this
this(string text, Node[] popupChildren)

Create a new button.

Members

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin enableInputActions
Undocumented in source.

Variables

parentPopup
PopupFrame parentPopup;

Popup this button belongs to, if any. Set automatically if the popup is spawned with spawnPopup.

popup
PopupFrame popup;

Popup enabled by this button.

Examples

auto myButton = popupButton("Options",
    button("Edit", delegate { }),
    button("Copy", delegate { }),
    popupButton("Share",
        button("SMS", delegate { }),
        button("Via e-mail", delegate { }),
        button("Send to device", delegate { }),
    ),
);

Meta