PopupFrame

This is an override of Frame to simplify creating popups: if clicked outside of it, it will disappear from the node tree.

Constructors

this
this(Node[] nodes)
Undocumented in source.

Members

Aliases

isFocused
alias isFocused = typeof(super).isFocused
Undocumented in source.

Functions

anchoredStartCorner
Vector2 anchoredStartCorner()

Get start (top-left) corner of the popup if drawAnchored is to be used.

drawAnchored
void drawAnchored()

Draw the popup using the assigned anchor position.

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.
focusImpl
bool focusImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
mouseImpl
void mouseImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
restorePreviousFocus
void restorePreviousFocus()

Give focus to whatever node had focus before this one.

Mixins

__anonymous
mixin makeHoverable
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

Properties

isFocused
bool isFocused [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

anchor
Vector2 anchor;

Position the frame is "anchored" to. A corner of the frame will be chosen to match this position.

childPopup
PopupFrame childPopup;

A child popup will keep this focus alive while focused. Typically, child popups are spawned as a result of actions within the popup itself, for example in context menus, an action can spawn a submenu. Use spawnChildPopup to spawn child popups.

previousFocus
FluidFocusable previousFocus;

Node that had focus before popupFrame took over. When the popup is closed using a keyboard shortcut, this node will take focus again.

Meta