Trait WidgetId

Source
pub trait WidgetId<W>
where W: WidgetExt,
{ // Required methods fn set_id(&mut self, id: &str); fn with_id(self, id: &str) -> Self where Self: Sized; }
Expand description

Allows setting a an id to a widget.

Required Methods§

Source

fn set_id(&mut self, id: &str)

Set the widget’s Id

Source

fn with_id(self, id: &str) -> Self
where Self: Sized,

Construct a widget with an Id

Implementors§

Source§

impl<W> WidgetId<W> for W
where W: WidgetExt + Clone + Send + Sync + 'static,

Available on non-crate feature single-threaded only.