pub struct WidgetMeta {
pub role: WidgetRole,
pub label: Option<String>,
pub value: Option<WidgetValue>,
pub layout: Option<WidgetLayout>,
pub role_state: Option<RoleState>,
pub visible: bool,
pub rect: Option<Rect>,
pub interact_rect: Option<Rect>,
}Expand description
Metadata for a widget used during tracking and layout analysis.
Fields§
§role: WidgetRoleRole taxonomy entry.
label: Option<String>Optional label.
value: Option<WidgetValue>Optional widget value for stateful controls.
layout: Option<WidgetLayout>Optional layout metadata.
role_state: Option<RoleState>Role-specific metadata. Leave as None for custom widgets.
visible: boolWhether the widget is visible.
rect: Option<Rect>Optional explicit rect override.
interact_rect: Option<Rect>Optional explicit interaction rect override.
Trait Implementations§
Source§impl Clone for WidgetMeta
impl Clone for WidgetMeta
Source§fn clone(&self) -> WidgetMeta
fn clone(&self) -> WidgetMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WidgetMeta
impl Debug for WidgetMeta
Source§impl Default for WidgetMeta
impl Default for WidgetMeta
Source§fn default() -> WidgetMeta
fn default() -> WidgetMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WidgetMeta
impl RefUnwindSafe for WidgetMeta
impl Send for WidgetMeta
impl Sync for WidgetMeta
impl Unpin for WidgetMeta
impl UnsafeUnpin for WidgetMeta
impl UnwindSafe for WidgetMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more