pub struct Canvas3DBuilder {
pub scene: Option<Arc<Scene3D>>,
pub retained: Option<RetainedScene3D>,
pub uncapped: bool,
pub class: Option<ClassList>,
pub style: Option<String>,
pub id: 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§class: Option<ClassList>§style: Option<String>§id: 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 Into<ClassList>) -> Self
pub fn style(self, style: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
pub fn width(self, width: impl Into<Option<f32>>) -> Self
pub fn height(self, height: impl Into<Option<f32>>) -> Self
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(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmousedown_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmousemove(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmousemove_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmouseup(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onmouseup_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onwheel(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onwheel_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointerdown(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointerdown_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointermove(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointermove_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointerup(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onpointerup_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onclick(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onclick_fn(self, handler: impl Fn(Event) + 'static) -> Self
pub fn onresize(self, handler: impl Fn(Event) + '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: 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