ui_controls

module pkg::alloy::ui::viewssource

Views kept hidden while another shows (decisions/F11.md, F11c, switch, and pkg::alloy::ui_app's screens): a hidden view's element is skipped by layout, painting, hit tests, the focus and the accessibility tree, its canvas node hidden with what it draws, and its owner's bindings wait for it to show. A view shown may take the focus once it is laid out.

type Viewsource

exp type View = struct

A view made: its owner and its element.

Fields

exp owner: u32
exp root: u32

fn set_view_hiddensource

exp fn set_view_hidden(self ui: &var Ui, view: View, hidden: bool)

Hides the view, keeping all it made, or shows it again.

type ScreenFocussource

exp type ScreenFocus = struct

Where the focus goes once a screen shown is laid out: to the element, else to the screen's first taking it.

Fields

exp root: Element
exp element: Option<Element>
exp ring: bool