pub struct SplineProps {
pub scene: String,
pub on_load: Option<EventHandler<SplineApplication>>,
pub on_mouse_down: Option<EventHandler<SplineEvent>>,
pub on_mouse_up: Option<EventHandler<SplineEvent>>,
pub on_mouse_hover: Option<EventHandler<SplineEvent>>,
pub on_key_down: Option<EventHandler<SplineEvent>>,
pub on_key_up: Option<EventHandler<SplineEvent>>,
pub on_start: Option<EventHandler<SplineEvent>>,
pub on_look_at: Option<EventHandler<SplineEvent>>,
pub on_follow: Option<EventHandler<SplineEvent>>,
pub on_wheel: Option<EventHandler<SplineEvent>>,
pub render_on_demand: Option<bool>,
}Fields§
§scene: String§on_load: Option<EventHandler<SplineApplication>>§on_mouse_down: Option<EventHandler<SplineEvent>>§on_mouse_up: Option<EventHandler<SplineEvent>>§on_mouse_hover: Option<EventHandler<SplineEvent>>§on_key_down: Option<EventHandler<SplineEvent>>§on_key_up: Option<EventHandler<SplineEvent>>§on_start: Option<EventHandler<SplineEvent>>§on_look_at: Option<EventHandler<SplineEvent>>§on_follow: Option<EventHandler<SplineEvent>>§on_wheel: Option<EventHandler<SplineEvent>>§render_on_demand: Option<bool>Implementations§
Source§impl SplineProps
impl SplineProps
Sourcepub fn builder() -> SplinePropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> SplinePropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SplineProps.
On the builder, call .scene(...), .on_load(...)(optional), .on_mouse_down(...)(optional), .on_mouse_up(...)(optional), .on_mouse_hover(...)(optional), .on_key_down(...)(optional), .on_key_up(...)(optional), .on_start(...)(optional), .on_look_at(...)(optional), .on_follow(...)(optional), .on_wheel(...)(optional), .render_on_demand(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SplineProps.
Trait Implementations§
Source§impl Clone for SplineProps
impl Clone for SplineProps
Source§fn clone(&self) -> SplineProps
fn clone(&self) -> SplineProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for SplineProps
impl PartialEq for SplineProps
Source§impl Properties for SplinePropswhere
Self: Clone,
impl Properties for SplinePropswhere
Self: Clone,
Source§type Builder = SplinePropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
type Builder = SplinePropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
Source§fn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Make the old props equal to the new props. Return if the props were equal and should be memoized.
Source§fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
component_name: &'static str,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
component_name: &'static str,
) -> VComponentwhere
M: 'static,
Create a component from the props.
impl StructuralPartialEq for SplineProps
Auto Trait Implementations§
impl !RefUnwindSafe for SplineProps
impl !Send for SplineProps
impl !Sync for SplineProps
impl !UnwindSafe for SplineProps
impl Freeze for SplineProps
impl Unpin for SplineProps
impl UnsafeUnpin for SplineProps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.