Skip to main content

WidgetId

Type Alias WidgetId 

Source
pub type WidgetId = u32;
Expand description

The ID of a Widget.

IDs are assigned by the WidgetCache in the order in which Widgets are added, starting with the window’s root Widget at ID 0 (ROOT_WIDGET_ID). An ID is stable for the lifetime of the WidgetCache, which is what allows forms to be designed, stored, and wired to callbacks by ID.