pub struct Canvas3DBuilder {Show 14 fields
pub scene: Option<Arc<Scene3D>>,
pub retained: Option<RetainedScene3D>,
pub uncapped: bool,
pub responsive: bool,
pub class: Option<ClassList>,
pub style: Option<String>,
pub id: Option<String>,
pub title: Option<String>,
pub __strata_key: Option<String>,
pub width: Option<f32>,
pub height: Option<f32>,
pub on_camera_change: Option<Rc<dyn Fn(&OrbitControls)>>,
pub events: Vec<Attribute>,
pub children: Option<Vec<NodeBlueprint>>,
}Fields§
§scene: Option<Arc<Scene3D>>§retained: Option<RetainedScene3D>§uncapped: bool§responsive: bool§class: Option<ClassList>§style: Option<String>§id: Option<String>§title: Option<String>§__strata_key: Option<String>§width: Option<f32>§height: Option<f32>§on_camera_change: Option<Rc<dyn Fn(&OrbitControls)>>§events: Vec<Attribute>§children: Option<Vec<NodeBlueprint>>Implementations§
Source§impl Canvas3DBuilder
impl Canvas3DBuilder
pub fn scene(self, scene: impl IntoScene3DProp) -> Self
pub fn class(self, class: impl IntoClassList) -> Self
pub fn style(self, style: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
pub fn title(self, title: impl IntoOptionalString) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn width(self, width: impl Into<Option<f32>>) -> Self
pub fn height(self, height: impl Into<Option<f32>>) -> Self
Sourcepub fn responsive(self, responsive: bool) -> Self
pub fn responsive(self, responsive: bool) -> Self
When true, omits inline width/height attributes so CSS/flex classes
(w-full h-full, flex-1, split panes) control the resolved viewport size.
pub fn on_camera_change(self, cb: impl IntoCameraChangeProp) -> Self
pub fn on_camera_change_fn(self, cb: impl Fn(&OrbitControls) + 'static) -> Self
pub fn onmousedown<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onmousedown_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmousemove<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onmousemove_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmouseup<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onmouseup_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmouseenter<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onmouseenter_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmouseleave<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onmouseleave_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onwheel<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onwheel_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointerdown<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onpointerdown_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointermove<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onpointermove_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointerup<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onpointerup_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onclick<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onclick_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn ondblclick<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn ondblclick_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onresize<Args>( self, handler: impl EventHandlerMarker<Args> + 'static, ) -> Self
pub fn onresize_fn(self, handler: impl Fn(Event) + 'static) -> Self
Sourcepub fn retained(self, handle: impl Into<Option<RetainedScene3D>>) -> Self
pub fn retained(self, handle: impl Into<Option<RetainedScene3D>>) -> Self
Binds a persistent RetainedScene3D handle for out-of-band zero-rebuild GPU updates.
Sourcepub fn uncapped(self, uncapped: bool) -> Self
pub fn uncapped(self, uncapped: bool) -> Self
Opts this 3D canvas into uncapped vsync-off presentation when supported by the surface.
pub fn children(self, children: impl IntoChildren<Vec<NodeBlueprint>>) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Canvas3DBuilder
impl !Send for Canvas3DBuilder
impl !Sync for Canvas3DBuilder
impl !UnwindSafe for Canvas3DBuilder
impl Forget for Canvas3DBuilder
impl Freeze for Canvas3DBuilder
impl Move for Canvas3DBuilder
impl Unpin for Canvas3DBuilder
impl UnsafeUnpin for Canvas3DBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more