Trait Widget
Source pub trait Widget: WidgetNode {
Show 23 methods
// Provided methods
fn handle_event_with(
&mut self,
cx: &mut Cx,
event: &Event,
scope: &mut Scope<'_, '_>,
_sweep_area: Area,
) { ... }
fn handle_event(
&mut self,
_cx: &mut Cx,
_event: &Event,
_scope: &mut Scope<'_, '_>,
) { ... }
fn widget(&self, path: &[LiveId]) -> WidgetRef { ... }
fn widgets(&self, paths: &[&[LiveId]]) -> WidgetSet { ... }
fn widget_uid(&self) -> WidgetUid { ... }
fn widget_to_data(
&self,
_cx: &mut Cx,
_actions: &Actions,
_nodes: &mut LiveNodeVec,
_path: &[LiveId],
) -> bool { ... }
fn data_to_widget(
&mut self,
_cx: &mut Cx,
_nodes: &[LiveNode],
_path: &[LiveId],
) { ... }
fn draw_3d(
&mut self,
_cx: &mut Cx3d<'_, '_>,
_scope: &mut Scope<'_, '_>,
) -> DrawStep { ... }
fn draw_3d_all(&mut self, cx: &mut Cx3d<'_, '_>, scope: &mut Scope<'_, '_>) { ... }
fn draw_walk(
&mut self,
_cx: &mut Cx2d<'_, '_>,
_scope: &mut Scope<'_, '_>,
_walk: Walk,
) -> DrawStep { ... }
fn draw(
&mut self,
cx: &mut Cx2d<'_, '_>,
scope: &mut Scope<'_, '_>,
) -> DrawStep { ... }
fn draw_walk_all(
&mut self,
cx: &mut Cx2d<'_, '_>,
scope: &mut Scope<'_, '_>,
walk: Walk,
) { ... }
fn draw_all(&mut self, cx: &mut Cx2d<'_, '_>, scope: &mut Scope<'_, '_>) { ... }
fn draw_unscoped(&mut self, cx: &mut Cx2d<'_, '_>) -> DrawStep { ... }
fn draw_all_unscoped(&mut self, cx: &mut Cx2d<'_, '_>) { ... }
fn text(&self) -> String { ... }
fn set_text(&mut self, _cx: &mut Cx, _v: &str) { ... }
fn set_key_focus(&self, cx: &mut Cx) { ... }
fn key_focus(&self, cx: &Cx) -> bool { ... }
fn set_disabled(&mut self, _cx: &mut Cx, _disabled: bool) { ... }
fn disabled(&self, _cx: &Cx) -> bool { ... }
fn ref_cast_type_id(&self) -> LiveType
where Self: 'static { ... }
fn ui_runner(&self) -> UiRunner<Self>
where Self: Sized + 'static { ... }
}