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(NodeParams params, Node[] nodes)
Undocumented in source.

Members

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.
isFocused
bool isFocused()
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 defineStyles
Undocumented in source.
__anonymous
mixin makeHoverable
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

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.

Mixed In Members

From mixin defineStyles

reloadStylesImpl
void reloadStylesImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
loadDefaultStyles
void loadDefaultStyles()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Frame

__anonymous
mixin DefineStyles
Undocumented in source.
__anonymous
mixin ImplHoveredRect
Undocumented in source.
drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
pickStyle
inout(Style) pickStyle()
Undocumented in source. Be warned that the author may not have intended to support it.

From FluidFocusable

focusImpl
bool focusImpl()

Handle input. Called each frame when focused.

focus
void focus()

Set focus to this node.

isFocused
bool isFocused()

Check if this node has focus. Recommended implementation: return tree.focus is this. Proxy nodes, such as FluidFilePicker might choose to return the value of the node they hold.

runFocusInputActions
bool runFocusInputActions()

Run input actions for the node.

enableInputActions
mixintemplate enableInputActions()

Mixin template to enable input actions in this class.

Meta