Struct guiver::WidgetManager
source · [−]pub struct WidgetManager { /* private fields */ }
Expand description
Implementations
sourceimpl WidgetManager
impl WidgetManager
sourcepub fn add_widget(&mut self, widget_id: WidgetId, widget: Box<dyn Widget>)
pub fn add_widget(&mut self, widget_id: WidgetId, widget: Box<dyn Widget>)
sourcepub fn collect_garbage(&mut self)
pub fn collect_garbage(&mut self)
sourcepub fn handle_event(
&mut self,
system_event: &SystemEvent
) -> Result<Vec<WidgetEvent>, WidgetError>
pub fn handle_event(
&mut self,
system_event: &SystemEvent
) -> Result<Vec<WidgetEvent>, WidgetError>
sourcepub fn new_column(&mut self) -> WidgetId
pub fn new_column(&mut self) -> WidgetId
sourcepub fn new_padding(&mut self) -> WidgetId
pub fn new_padding(&mut self) -> WidgetId
sourcepub fn new_placeholder(&mut self) -> WidgetId
pub fn new_placeholder(&mut self) -> WidgetId
sourcepub fn send_command(&mut self, command: Command) -> Result<(), WidgetError>
pub fn send_command(&mut self, command: Command) -> Result<(), WidgetError>
sourcepub fn send_commands(
&mut self,
commands: Vec<Command>
) -> Result<(), WidgetError>
pub fn send_commands(
&mut self,
commands: Vec<Command>
) -> Result<(), WidgetError>
Auto Trait Implementations
impl !RefUnwindSafe for WidgetManager
impl !Send for WidgetManager
impl !Sync for WidgetManager
impl Unpin for WidgetManager
impl !UnwindSafe for WidgetManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more