Set a new rectangular anchor.
Get start (top-left) corner of the popup if drawAnchored is to be used.
Give focus to whatever node had focus before this one.
PopupFrame will automatically be marked for removal if not focused.
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.
Node that had focus before popupFrame took over. When the popup is closed using a keyboard shortcut, this node will take focus again.
Node that was focused before the popup was opened. Using restorePreviousFocus, it can be given focus again, closing the popup. This is the default behavior for the escape key while a popup is open.
If true, the frame will claim focus on the next *resize*. This is used to give the popup focus when it is spawned, respecting currently active FocusIO.
An anchor the node is bound to, used for positioning the overlay.
Memory safe and const object comparison.
Read an input event from an input device. Input devices will call this function every frame if an input event occurs.
Write text received from the system. Input devices should call this function every frame to transmit text that the user wrote on the keyboard, which other nodes can then read through readText.
Read text inserted by the user into a buffer.
focusNext focuses the next, and focusPrevious focuses the previous node, relative to the one that is currently focused.
Focus the first (focusFirst), or the last node (focusLast) that exists inside the focus space.
To provide a reference for positional focus, the bounding box of the focused node.
Positional focus: Switch focus from the currently focused node to another based on screen position.
This is an override of Frame to simplify creating popups: if clicked outside of it, it will disappear from the node tree.