Trait fltk::app::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. Will not work with the single-threaded feature.

Required Methods§

source

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

Set the widget’s Id

source

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

Construct a widget with an Id

Implementors§

source§

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