Enum KzuViewportCoordinateType
#[repr(i32)]pub enum KzuViewportCoordinateType {
KzuViewportCoordinateAbsolute = 0,
KzuViewportCoordinateRelative = 1,
}Expand description
Enumeration for viewport coordinate unit type (exact pixel coordinates / percentages from window)
Variants§
KzuViewportCoordinateAbsolute = 0
< Absolute viewport coordinates, i.e. pixel values.
KzuViewportCoordinateRelative = 1
< Relative viewport coordinates, i.e. percentages of render target width & height.
Implementations§
§impl KzuViewportCoordinateType
impl KzuViewportCoordinateType
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> KzuViewportCoordinateType
Trait Implementations§
§impl Clone for KzuViewportCoordinateType
impl Clone for KzuViewportCoordinateType
§fn clone(&self) -> KzuViewportCoordinateType
fn clone(&self) -> KzuViewportCoordinateType
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 KzuViewportCoordinateType
impl Debug for KzuViewportCoordinateType
§impl Display for KzuViewportCoordinateType
impl Display for KzuViewportCoordinateType
§impl PartialEq for KzuViewportCoordinateType
impl PartialEq for KzuViewportCoordinateType
§impl VariantConstraint for KzuViewportCoordinateType
impl VariantConstraint for KzuViewportCoordinateType
§type DataArg<'a> = KzuViewportCoordinateType
type DataArg<'a> = KzuViewportCoordinateType
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§type RetArg = KzuViewportCoordinateType
type RetArg = KzuViewportCoordinateType
§fn as_arg(
&self,
) -> <KzuViewportCoordinateType as VariantConstraint>::DataArg<'_>
fn as_arg( &self, ) -> <KzuViewportCoordinateType as VariantConstraint>::DataArg<'_>
impl Copy for KzuViewportCoordinateType
impl Eq for KzuViewportCoordinateType
impl PropertyTypeConstraint for KzuViewportCoordinateType
impl StructuralPartialEq for KzuViewportCoordinateType
Auto Trait Implementations§
impl Freeze for KzuViewportCoordinateType
impl RefUnwindSafe for KzuViewportCoordinateType
impl Send for KzuViewportCoordinateType
impl Sync for KzuViewportCoordinateType
impl Unpin for KzuViewportCoordinateType
impl UnwindSafe for KzuViewportCoordinateType
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