PopupButton

A button made to open popups.

Constructors

this
this(string text, Node[] popupChildren)

Create a new button.

Members

Functions

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
focus
void focus()
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
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

overlayIO
OverlayIO overlayIO;
Undocumented in source.
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