Trait WidgetId

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; }
Available on crate feature dep_fltk only.
Expand description

Allows setting a an id to a widget. Will not work with the single-threaded feature.

Required Methods§

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

Set the widget’s Id

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

Construct a widget with an Id

Implementors§

§

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