pub struct ViewIsometricBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ViewIsometricBuilder<S>
impl<S: State> ViewIsometricBuilder<S>
Sourcepub fn build(self) -> ViewIsometricwhere
S: IsComplete,
pub fn build(self) -> ViewIsometricwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn padding(self, value: f32) -> ViewIsometricBuilder<SetPadding<S>>where
S::Padding: IsUnset,
pub fn padding(self, value: f32) -> ViewIsometricBuilder<SetPadding<S>>where
S::Padding: IsUnset,
Optional (Some / Option setters).
Default: 0.0.
How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.
Sourcepub fn maybe_padding(
self,
value: Option<f32>,
) -> ViewIsometricBuilder<SetPadding<S>>where
S::Padding: IsUnset,
pub fn maybe_padding(
self,
value: Option<f32>,
) -> ViewIsometricBuilder<SetPadding<S>>where
S::Padding: IsUnset,
Optional (Some / Option setters).
Default: 0.0.
How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.
Auto Trait Implementations§
impl<S> Freeze for ViewIsometricBuilder<S>
impl<S> RefUnwindSafe for ViewIsometricBuilder<S>
impl<S> Send for ViewIsometricBuilder<S>
impl<S> Sync for ViewIsometricBuilder<S>
impl<S> Unpin for ViewIsometricBuilder<S>
impl<S> UnsafeUnpin for ViewIsometricBuilder<S>
impl<S> UnwindSafe for ViewIsometricBuilder<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more