Enum PropertyField
#[repr(i32)]pub enum PropertyField {
Show 19 variants
Whole = 0,
TranslationX = 1,
TranslationY = 2,
TranslationZ = 3,
ScaleX = 4,
ScaleY = 5,
ScaleZ = 6,
RotationX = 7,
RotationY = 8,
RotationZ = 9,
ColorR = 10,
ColorG = 11,
ColorB = 12,
ColorA = 13,
VectorX = 14,
VectorY = 15,
VectorZ = 16,
VectorW = 17,
Rotation = 18,
}Expand description
Property field.
Variants§
Whole = 0
Whole property value.
TranslationX = 1
Translation X component, presented as float.
TranslationY = 2
Translation Y component, presented as float.
TranslationZ = 3
Translation Z component, presented as float.
ScaleX = 4
Scale X component, presented as float.
ScaleY = 5
Scale Y component, presented as float.
ScaleZ = 6
Scale Z component, presented as float.
RotationX = 7
Rotation X component, presented as float.
RotationY = 8
Rotation Y component, presented as float.
RotationZ = 9
Rotation Z component, presented as float.
ColorR = 10
Color R field, presented as float.
ColorG = 11
Color G field, presented as float.
ColorB = 12
Color B field, presented as float.
ColorA = 13
Color A field, presented as float.
VectorX = 14
Vector X field, presented as float.
VectorY = 15
Vector Y field, presented as float.
VectorZ = 16
Vector Z field, presented as float.
VectorW = 17
Vector W field, presented as float.
Rotation = 18
Rotation component of property of SRTValue3D type, presented as Quaternion.
Implementations§
§impl PropertyField
impl PropertyField
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> PropertyField
Trait Implementations§
§impl Clone for PropertyField
impl Clone for PropertyField
§fn clone(&self) -> PropertyField
fn clone(&self) -> PropertyField
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PropertyField
impl Debug for PropertyField
§impl Display for PropertyField
impl Display for PropertyField
§impl PartialEq for PropertyField
impl PartialEq for PropertyField
§impl VariantConstraint for PropertyField
impl VariantConstraint for PropertyField
§type DataArg<'a> = PropertyField
type DataArg<'a> = PropertyField
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more