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 { ... }
}

Provided Methods§

Source

fn handle_event_with( &mut self, cx: &mut Cx, event: &Event, scope: &mut Scope<'_, '_>, _sweep_area: Area, )

Source

fn handle_event( &mut self, _cx: &mut Cx, _event: &Event, _scope: &mut Scope<'_, '_>, )

Source

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

Source

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

Source

fn widget_uid(&self) -> WidgetUid

Source

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

Source

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

Source

fn draw_3d( &mut self, _cx: &mut Cx3d<'_, '_>, _scope: &mut Scope<'_, '_>, ) -> DrawStep

Source

fn draw_3d_all(&mut self, cx: &mut Cx3d<'_, '_>, scope: &mut Scope<'_, '_>)

Source

fn draw_walk( &mut self, _cx: &mut Cx2d<'_, '_>, _scope: &mut Scope<'_, '_>, _walk: Walk, ) -> DrawStep

Source

fn draw(&mut self, cx: &mut Cx2d<'_, '_>, scope: &mut Scope<'_, '_>) -> DrawStep

Source

fn draw_walk_all( &mut self, cx: &mut Cx2d<'_, '_>, scope: &mut Scope<'_, '_>, walk: Walk, )

Source

fn draw_all(&mut self, cx: &mut Cx2d<'_, '_>, scope: &mut Scope<'_, '_>)

Source

fn draw_unscoped(&mut self, cx: &mut Cx2d<'_, '_>) -> DrawStep

Source

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

Source

fn text(&self) -> String

Source

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

Source

fn set_key_focus(&self, cx: &mut Cx)

Source

fn key_focus(&self, cx: &Cx) -> bool

Source

fn set_disabled(&mut self, _cx: &mut Cx, _disabled: bool)

Source

fn disabled(&self, _cx: &Cx) -> bool

Source

fn ref_cast_type_id(&self) -> LiveType
where Self: 'static,

Source

fn ui_runner(&self) -> UiRunner<Self>
where Self: Sized + 'static,

Implementations§

Source§

impl dyn Widget

Source

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

Source

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

Source

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

Implementors§

Source§

impl Widget for AdaptiveView

Source§

impl Widget for BareStep

Source§

impl Widget for Button

Source§

impl Widget for CachedWidget

Source§

impl Widget for CheckBox

Source§

impl Widget for ColorPicker

Source§

impl Widget for CommandTextInput

Source§

impl Widget for Designer

Source§

impl Widget for DesignerOutline

Source§

impl Widget for DesignerOutlineTree

Source§

impl Widget for DesignerToolbox

Source§

impl Widget for DesignerContainer

Source§

impl Widget for DesignerView

Source§

impl Widget for DesktopButton

Source§

impl Widget for Dock

Source§

impl Widget for DropDown

Source§

impl Widget for ExpandablePanel

Source§

impl Widget for FileTree

Source§

impl Widget for FlatList

Source§

impl Widget for FoldButton

Source§

impl Widget for FoldHeader

Source§

impl Widget for Html

Source§

impl Widget for Icon

Source§

impl Widget for Image

Source§

impl Widget for ImageBlend

Source§

impl Widget for KeyboardView

Source§

impl Widget for Label

Source§

impl Widget for LinkLabel

Source§

impl Widget for Markdown

Source§

impl Widget for Modal

Source§

impl Widget for MultiImage

Source§

impl Widget for MultiWindow

Source§

impl Widget for PageFlip

Source§

impl Widget for PerformanceLiveGraph

Source§

impl Widget for PerformanceView

Source§

impl Widget for PopupNotification

Source§

impl Widget for PortalList2

Source§

impl Widget for PortalList

Source§

impl Widget for RadioButton

Source§

impl Widget for RadioButtonGroup

Source§

impl Widget for Root

Source§

impl Widget for RotatedImage

Source§

impl Widget for SlidePanel

Source§

impl Widget for Slider

Source§

impl Widget for SlidesView

Source§

impl Widget for Splitter

Source§

impl Widget for StackNavigation

Source§

impl Widget for StackNavigationView

Source§

impl Widget for TabBar

Source§

impl Widget for TextFlow

Source§

impl Widget for TextInput

Source§

impl Widget for TogglePanel

Source§

impl Widget for Tooltip

Source§

impl Widget for TurtleStep

Source§

impl Widget for VectorLine

Source§

impl Widget for Video

Source§

impl Widget for View

Source§

impl Widget for WebView

Source§

impl Widget for Window

Source§

impl Widget for WindowMenu

Source§

impl Widget for XrHands