Enum PerspectiveTransformationMode
#[repr(i32)]pub enum PerspectiveTransformationMode {
Screen = 0,
XFov = 1,
YFov = 2,
}Expand description
Node2D perspective transformation mode.
Variants§
Screen = 0
Screen coordinates.
XFov = 1
3D coordinates with a field of view in x direction.
YFov = 2
3D coordinates with a field of view in y direction.
Implementations§
§impl PerspectiveTransformationMode
impl PerspectiveTransformationMode
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> PerspectiveTransformationMode
Trait Implementations§
§impl Clone for PerspectiveTransformationMode
impl Clone for PerspectiveTransformationMode
§fn clone(&self) -> PerspectiveTransformationMode
fn clone(&self) -> PerspectiveTransformationMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PerspectiveTransformationMode
impl Debug for PerspectiveTransformationMode
§impl Display for PerspectiveTransformationMode
impl Display for PerspectiveTransformationMode
§impl PartialEq for PerspectiveTransformationMode
impl PartialEq for PerspectiveTransformationMode
§impl VariantConstraint for PerspectiveTransformationMode
impl VariantConstraint for PerspectiveTransformationMode
§type DataArg<'a> = PerspectiveTransformationMode
type DataArg<'a> = PerspectiveTransformationMode
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§fn as_arg(
&self,
) -> <PerspectiveTransformationMode as VariantConstraint>::DataArg<'_>
fn as_arg( &self, ) -> <PerspectiveTransformationMode as VariantConstraint>::DataArg<'_>
impl Copy for PerspectiveTransformationMode
impl Eq for PerspectiveTransformationMode
impl PropertyTypeConstraint for PerspectiveTransformationMode
impl StructuralPartialEq for PerspectiveTransformationMode
Auto Trait Implementations§
impl Freeze for PerspectiveTransformationMode
impl RefUnwindSafe for PerspectiveTransformationMode
impl Send for PerspectiveTransformationMode
impl Sync for PerspectiveTransformationMode
impl Unpin for PerspectiveTransformationMode
impl UnwindSafe for PerspectiveTransformationMode
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