Trait iced_native::widget::operation::Operation
source · pub trait Operation<T> {
// Required method
fn container(
&mut self,
id: Option<&Id>,
operate_on_children: &mut dyn FnMut(&mut dyn Operation<T>)
);
// Provided methods
fn focusable(&mut self, _state: &mut dyn Focusable, _id: Option<&Id>) { ... }
fn scrollable(&mut self, _state: &mut dyn Scrollable, _id: Option<&Id>) { ... }
fn text_input(&mut self, _state: &mut dyn TextInput, _id: Option<&Id>) { ... }
fn custom(&mut self, _state: &mut dyn Any, _id: Option<&Id>) { ... }
fn finish(&self) -> Outcome<T> { ... }
}
Expand description
A piece of logic that can traverse the widget tree of an application in order to query or update some widget state.
Required Methods§
Provided Methods§
sourcefn focusable(&mut self, _state: &mut dyn Focusable, _id: Option<&Id>)
fn focusable(&mut self, _state: &mut dyn Focusable, _id: Option<&Id>)
Operates on a widget that can be focused.
sourcefn scrollable(&mut self, _state: &mut dyn Scrollable, _id: Option<&Id>)
fn scrollable(&mut self, _state: &mut dyn Scrollable, _id: Option<&Id>)
Operates on a widget that can be scrolled.
sourcefn text_input(&mut self, _state: &mut dyn TextInput, _id: Option<&Id>)
fn text_input(&mut self, _state: &mut dyn TextInput, _id: Option<&Id>)
Operates on a widget that has text input.