pub trait Widget: LiveApply {
Show 18 methods // Required methods fn draw_walk_widget(&mut self, cx: &mut Cx2d<'_>, walk: Walk) -> WidgetDraw; fn redraw(&mut self, _cx: &mut Cx); // Provided methods fn handle_widget_event_with( &mut self, _cx: &mut Cx, _event: &Event, _fn_action: &mut dyn FnMut(&mut Cx, WidgetActionItem) ) { ... } fn handle_widget_event( &mut self, cx: &mut Cx, event: &Event ) -> WidgetActions { ... } fn find_widgets( &mut self, _path: &[LiveId], _cached: WidgetCache, _results: &mut WidgetSet ) { ... } fn widget(&mut self, path: &[LiveId]) -> WidgetRef { ... } fn widgets(&mut self, paths: &[&[LiveId]]) -> WidgetSet { ... } fn widget_uid(&self) -> WidgetUid { ... } fn widget_to_data( &self, _cx: &mut Cx, _actions: &WidgetActions, _nodes: &mut LiveNodeVec, _path: &[LiveId] ) -> bool { ... } fn data_to_widget( &mut self, _cx: &mut Cx, _nodes: &[LiveNode], _path: &[LiveId] ) { ... } fn walk(&mut self, _cx: &mut Cx) -> Walk { ... } fn is_visible(&self) -> bool { ... } fn draw_widget(&mut self, cx: &mut Cx2d<'_>) -> WidgetDraw { ... } fn draw_widget_all(&mut self, cx: &mut Cx2d<'_>) { ... } fn text(&self) -> String { ... } fn set_text(&mut self, _v: &str) { ... } fn set_text_and_redraw(&mut self, cx: &mut Cx, v: &str) { ... } fn type_id(&self) -> LiveType where Self: 'static { ... }
}

Required Methods§

source

fn draw_walk_widget(&mut self, cx: &mut Cx2d<'_>, walk: Walk) -> WidgetDraw

source

fn redraw(&mut self, _cx: &mut Cx)

Provided Methods§

source

fn handle_widget_event_with( &mut self, _cx: &mut Cx, _event: &Event, _fn_action: &mut dyn FnMut(&mut Cx, WidgetActionItem) )

source

fn handle_widget_event(&mut self, cx: &mut Cx, event: &Event) -> WidgetActions

source

fn find_widgets( &mut self, _path: &[LiveId], _cached: WidgetCache, _results: &mut WidgetSet )

source

fn widget(&mut self, path: &[LiveId]) -> WidgetRef

source

fn widgets(&mut self, paths: &[&[LiveId]]) -> WidgetSet

source

fn widget_uid(&self) -> WidgetUid

source

fn widget_to_data( &self, _cx: &mut Cx, _actions: &WidgetActions, _nodes: &mut LiveNodeVec, _path: &[LiveId] ) -> bool

source

fn data_to_widget( &mut self, _cx: &mut Cx, _nodes: &[LiveNode], _path: &[LiveId] )

source

fn walk(&mut self, _cx: &mut Cx) -> Walk

source

fn is_visible(&self) -> bool

source

fn draw_widget(&mut self, cx: &mut Cx2d<'_>) -> WidgetDraw

source

fn draw_widget_all(&mut self, cx: &mut Cx2d<'_>)

source

fn text(&self) -> String

source

fn set_text(&mut self, _v: &str)

source

fn set_text_and_redraw(&mut self, cx: &mut Cx, v: &str)

source

fn type_id(&self) -> LiveTypewhere Self: 'static,

Implementations§

source§

impl dyn Widget

source

pub fn is<T: Widget + 'static>(&self) -> bool

source

pub fn cast<T: Widget + 'static>(&self) -> Option<&T>

source

pub fn cast_mut<T: Widget + 'static>(&mut self) -> Option<&mut T>

Implementors§