Trait LiveNew

Source
pub trait LiveNew: LiveApply {
Show 16 methods // Required methods fn new(cx: &mut Cx) -> Self; fn live_type_info(cx: &mut Cx) -> LiveTypeInfo; // Provided methods fn live_design_with(_cx: &mut Cx) { ... } fn new_apply( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> Self where Self: Sized { ... } fn new_apply_over(cx: &mut Cx, nodes: &[LiveNode]) -> Self where Self: Sized { ... } fn new_apply_mut_index( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: &mut usize, nodes: &[LiveNode], ) -> Self where Self: Sized { ... } fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Self where Self: Sized { ... } fn update_from_ptr(&mut self, cx: &mut Cx, live_ptr: Option<LivePtr>) { ... } fn update_from_ptr_with_scope( &mut self, cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, ) { ... } fn new_from_ptr_with_scope( cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, ) -> Self where Self: Sized { ... } fn new_main(cx: &mut Cx) -> Option<Self> where Self: Sized { ... } fn register_main_module(cx: &mut Cx) { ... } fn update_main(&mut self, cx: &mut Cx) { ... } fn new_local(cx: &mut Cx) -> Self where Self: Sized { ... } fn new_from_module( cx: &mut Cx, module_id: LiveModuleId, id: LiveId, ) -> Option<Self> where Self: Sized { ... } fn update_from_module( &mut self, cx: &mut Cx, module_id: LiveModuleId, id: LiveId, ) { ... }
}

Required Methods§

Source

fn new(cx: &mut Cx) -> Self

Source

fn live_type_info(cx: &mut Cx) -> LiveTypeInfo

Provided Methods§

Source

fn live_design_with(_cx: &mut Cx)

Source

fn new_apply( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source

fn new_apply_over(cx: &mut Cx, nodes: &[LiveNode]) -> Self
where Self: Sized,

Source

fn new_apply_mut_index( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: &mut usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source

fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Self
where Self: Sized,

Source

fn update_from_ptr(&mut self, cx: &mut Cx, live_ptr: Option<LivePtr>)

Source

fn update_from_ptr_with_scope( &mut self, cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, )

Source

fn new_from_ptr_with_scope( cx: &mut Cx, live_ptr: Option<LivePtr>, scope: &mut Scope<'_, '_>, ) -> Self
where Self: Sized,

Source

fn new_main(cx: &mut Cx) -> Option<Self>
where Self: Sized,

Source

fn register_main_module(cx: &mut Cx)

Source

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

Source

fn new_local(cx: &mut Cx) -> Self
where Self: Sized,

Source

fn new_from_module( cx: &mut Cx, module_id: LiveModuleId, id: LiveId, ) -> Option<Self>
where Self: Sized,

Source

fn update_from_module( &mut self, cx: &mut Cx, module_id: LiveModuleId, id: LiveId, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl LiveNew for bool

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new(_cx: &mut Cx) -> bool

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl LiveNew for f32

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new(_cx: &mut Cx) -> f32

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl LiveNew for f64

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new(_cx: &mut Cx) -> f64

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl LiveNew for i32

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new(_cx: &mut Cx) -> i32

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl LiveNew for i64

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new(_cx: &mut Cx) -> i64

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl LiveNew for u32

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new(_cx: &mut Cx) -> u32

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl LiveNew for u64

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new(_cx: &mut Cx) -> u64

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl LiveNew for usize

Source§

impl<T> LiveNew for Option<T>
where T: LiveApply + LiveNew + 'static,

Source§

fn new(_cx: &mut Cx) -> Option<T>

Source§

fn new_apply( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> Option<T>

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

impl<T, const N: usize> LiveNew for [T; N]
where T: LiveApply + LiveNew + 'static,

Source§

fn new(cx: &mut Cx) -> [T; N]

Source§

fn new_apply( cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], ) -> [T; N]

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Implementors§

Source§

impl LiveNew for CheckType

Source§

impl LiveNew for DesktopButtonType

Source§

impl LiveNew for DockItem

Source§

impl LiveNew for PopupMenuPosition

Source§

impl LiveNew for ArcStringMut

Source§

impl LiveNew for Ease

Source§

impl LiveNew for Flow

Source§

impl LiveNew for KeyCode

Source§

impl LiveNew for LiveValue

Source§

impl LiveNew for MouseCursor

Source§

impl LiveNew for Play

Source§

impl LiveNew for Size

Source§

impl LiveNew for OrderedListType

Source§

impl LiveNew for ImageAnimation

Source§

impl LiveNew for ImageFit

Source§

impl LiveNew for MediaType

Source§

impl LiveNew for RadioType

Source§

impl LiveNew for ScrollAxis

Source§

impl LiveNew for SlideSide

Source§

impl LiveNew for DragAxis

Source§

impl LiveNew for SplitterAlign

Source§

impl LiveNew for SplitterAxis

Source§

impl LiveNew for FlowBlockType

Source§

impl LiveNew for Axis2

Source§

impl LiveNew for LineAlign

Source§

impl LiveNew for VideoDataSource

Source§

impl LiveNew for EventOrder

Source§

impl LiveNew for ViewDebug

Source§

impl LiveNew for ViewOptimize

Source§

impl LiveNew for WindowMenuItem

Source§

impl LiveNew for AdaptiveView

Source§

impl LiveNew for BareStep

Source§

impl LiveNew for Button

Source§

impl LiveNew for CachedWidget

Source§

impl LiveNew for CheckBox

Source§

impl LiveNew for DrawCheckBox

Source§

impl LiveNew for ColorPicker

Source§

impl LiveNew for DrawColorWheel

Source§

impl LiveNew for CommandTextInput

Source§

impl LiveNew for DebugView

Source§

impl LiveNew for DrawRect

Source§

impl LiveNew for Designer

Source§

impl LiveNew for DesignerOutline

Source§

impl LiveNew for DesignerOutlineTree

Source§

impl LiveNew for DesignerOutlineTreeNode

Source§

impl LiveNew for DesignerToolbox

Source§

impl LiveNew for DesignerContainer

Source§

impl LiveNew for DesignerView

Source§

impl LiveNew for DesktopButton

Source§

impl LiveNew for DrawDesktopButton

Source§

impl LiveNew for Dock

Source§

impl LiveNew for DrawRoundCorner

Source§

impl LiveNew for DropDown

Source§

impl LiveNew for ExpandablePanel

Source§

impl LiveNew for FileTree

Source§

impl LiveNew for FileTreeNode

Source§

impl LiveNew for FlatList

Source§

impl LiveNew for FoldButton

Source§

impl LiveNew for FoldHeader

Source§

impl LiveNew for GeometryCube3D

Source§

impl LiveNew for Html

Source§

impl LiveNew for Icon

Source§

impl LiveNew for DrawTrapezoidVector

Source§

impl LiveNew for DrawImage

Source§

impl LiveNew for Image

Source§

impl LiveNew for ImageBlend

Source§

impl LiveNew for KeyboardView

Source§

impl LiveNew for Label

Source§

impl LiveNew for LinkLabel

Source§

impl LiveNew for Markdown

Source§

impl LiveNew for Modal

Source§

impl LiveNew for MultiImage

Source§

impl LiveNew for MultiWindow

Source§

impl LiveNew for NavControl

Source§

impl LiveNew for PageFlip

Source§

impl LiveNew for PerformanceLiveGraph

Source§

impl LiveNew for PerformanceView

Source§

impl LiveNew for PopupMenu

Source§

impl LiveNew for PopupMenuItem

Source§

impl LiveNew for PopupNotification

Source§

impl LiveNew for PortalList2

Source§

impl LiveNew for PortalList

Source§

impl LiveNew for DrawRadioButton

Source§

impl LiveNew for RadioButton

Source§

impl LiveNew for RadioButtonGroup

Source§

impl LiveNew for Root

Source§

impl LiveNew for RotatedImage

Source§

impl LiveNew for DrawScrollBar

Source§

impl LiveNew for ScrollBar

Source§

impl LiveNew for ScrollBars

Source§

impl LiveNew for DrawScrollShadow

Source§

impl LiveNew for DrawCube

Source§

impl LiveNew for FontFamily

Source§

impl LiveNew for TextStyle

Source§

impl LiveNew for boola

Source§

impl LiveNew for f32a

Source§

impl LiveNew for f64a

Source§

impl LiveNew for i32a

Source§

impl LiveNew for i64a

Source§

impl LiveNew for u32a

Source§

impl LiveNew for String

Source§

impl LiveNew for SlidePanel

Source§

impl LiveNew for DrawSlider

Source§

impl LiveNew for Slider

Source§

impl LiveNew for SlidesView

Source§

impl LiveNew for DrawSplitter

Source§

impl LiveNew for Splitter

Source§

impl LiveNew for StackNavigation

Source§

impl LiveNew for StackNavigationView

Source§

impl LiveNew for Align

Source§

impl LiveNew for Animator

Source§

impl LiveNew for DVec2

Source§

impl LiveNew for DrawColor

Source§

impl LiveNew for DrawIcon

Source§

impl LiveNew for DrawLine

Source§

impl LiveNew for DrawList2d

Source§

impl LiveNew for DrawQuad

Source§

impl LiveNew for DrawText

Source§

impl LiveNew for DrawVars

Source§

impl LiveNew for GeometryQuad2D

Source§

impl LiveNew for Layout

Source§

impl LiveNew for LiveDependency

Source§

impl LiveNew for LiveId

Source§

impl LiveNew for LivePtr

Source§

impl LiveNew for Margin

Source§

impl LiveNew for Mat4

Source§

impl LiveNew for Overlay

Source§

impl LiveNew for Padding

Source§

impl LiveNew for Pass

Source§

impl LiveNew for Vec2

Source§

impl LiveNew for Vec3

Source§

impl LiveNew for Vec4

Source§

impl LiveNew for Walk

Source§

impl LiveNew for WindowHandle

Source§

impl LiveNew for Tab

Source§

impl LiveNew for TabBar

Source§

impl LiveNew for TabCloseButton

Source§

impl LiveNew for DrawFlowBlock

Source§

impl LiveNew for TextFlow

Source§

impl LiveNew for TextInput

Source§

impl LiveNew for TogglePanel

Source§

impl LiveNew for Tooltip

Source§

impl LiveNew for TurtleStep

Source§

impl LiveNew for VectorLine

Source§

impl LiveNew for Video

Source§

impl LiveNew for View

Source§

impl LiveNew for DrawWebView

Source§

impl LiveNew for WebView

Source§

impl LiveNew for WidgetRef

Source§

impl LiveNew for Window

Source§

impl LiveNew for WindowMenu

Source§

impl LiveNew for XrHands

Source§

impl<T> LiveNew for Arc<T>
where T: LiveApply + LiveNew + 'static + LiveAtomic,

Source§

impl<T> LiveNew for U32A<T>
where T: LiveApply + LiveNew + 'static + LiveAtomicU32Enum,

Source§

impl<T> LiveNew for Vec<T>
where T: LiveApply + LiveNew + 'static,