Object

Struct Object 

Source
#[repr(C, packed(4))]
pub struct Object {
Show 107 fields pub id: ID, pub adt: Pointer<AnimData>, pub drawdata: DrawDataList, pub sculpt: Pointer<Nothing>, pub type_: i16, pub partype: i16, pub par1: i32, pub par2: i32, pub par3: i32, pub parsubstr: [i8; 64], pub parent: Pointer<Object>, pub track: Pointer<Object>, pub proxy: Pointer<Object>, pub proxy_group: Pointer<Object>, pub proxy_from: Pointer<Object>, pub ipo: Pointer<Ipo>, pub action: Pointer<bAction>, pub poselib: Pointer<bAction>, pub pose: Pointer<bPose>, pub data: Pointer<Void>, pub gpd: Pointer<bGPdata>, pub avs: bAnimVizSettings, pub mpath: Pointer<bMotionPath>, pub _pad0: Pointer<Void>, pub constraintChannels: ListBase, pub effect: ListBase, pub defbase: ListBase, pub modifiers: ListBase, pub greasepencil_modifiers: ListBase, pub fmaps: ListBase, pub shader_fx: ListBase, pub mode: i32, pub restore_mode: i32, pub mat: Pointer<Pointer<Material>>, pub matbits: Pointer<i8>, pub totcol: i32, pub actcol: i32, pub loc: [f32; 3], pub dloc: [f32; 3], pub size: [f32; 3], pub dsize: [f32; 3], pub dscale: [f32; 3], pub rot: [f32; 3], pub drot: [f32; 3], pub quat: [f32; 4], pub dquat: [f32; 4], pub rotAxis: [f32; 3], pub drotAxis: [f32; 3], pub rotAngle: f32, pub drotAngle: f32, pub obmat: [[f32; 4]; 4], pub parentinv: [[f32; 4]; 4], pub constinv: [[f32; 4]; 4], pub imat: [[f32; 4]; 4], pub lay: i32, pub flag: i16, pub colbits: i16, pub transflag: i16, pub protectflag: i16, pub trackflag: i16, pub upflag: i16, pub nlaflag: i16, pub _pad1: i8, pub duplicator_visibility_flag: i8, pub base_flag: i16, pub base_local_view_bits: i16, pub col_group: i16, pub col_mask: i16, pub rotmode: i16, pub boundtype: i8, pub collision_boundtype: i8, pub dtx: i16, pub dt: i8, pub empty_drawtype: i8, pub empty_drawsize: f32, pub dupfacesca: f32, pub index: i16, pub actdef: i16, pub actfmap: i16, pub _pad2: [i8; 2], pub col: [f32; 4], pub softflag: i16, pub restrictflag: i16, pub shapenr: i16, pub shapeflag: i8, pub _pad3: [i8; 1], pub constraints: ListBase, pub nlastrips: ListBase, pub hooks: ListBase, pub particlesystem: ListBase, pub pd: Pointer<PartDeflect>, pub soft: Pointer<SoftBody>, pub dup_group: Pointer<Collection>, pub fluidsimSettings: Pointer<FluidsimSettings>, pub pc_ids: ListBase, pub rigidbody_object: Pointer<RigidBodyOb>, pub rigidbody_constraint: Pointer<RigidBodyCon>, pub ima_ofs: [f32; 2], pub iuser: Pointer<ImageUser>, pub empty_image_visibility_flag: i8, pub empty_image_depth: i8, pub empty_image_flag: i8, pub _pad8: [i8; 5], pub preview: Pointer<PreviewImage>, pub lineart: ObjectLineArt, pub lightgroup: Pointer<LightgroupMembership>, pub runtime: Object_Runtime,
}

Fields§

§id: ID§adt: Pointer<AnimData>§drawdata: DrawDataList§sculpt: Pointer<Nothing>§type_: i16§partype: i16§par1: i32§par2: i32§par3: i32§parsubstr: [i8; 64]§parent: Pointer<Object>§track: Pointer<Object>§proxy: Pointer<Object>§proxy_group: Pointer<Object>§proxy_from: Pointer<Object>§ipo: Pointer<Ipo>§action: Pointer<bAction>§poselib: Pointer<bAction>§pose: Pointer<bPose>§data: Pointer<Void>§gpd: Pointer<bGPdata>§avs: bAnimVizSettings§mpath: Pointer<bMotionPath>§_pad0: Pointer<Void>§constraintChannels: ListBase§effect: ListBase§defbase: ListBase§modifiers: ListBase§greasepencil_modifiers: ListBase§fmaps: ListBase§shader_fx: ListBase§mode: i32§restore_mode: i32§mat: Pointer<Pointer<Material>>§matbits: Pointer<i8>§totcol: i32§actcol: i32§loc: [f32; 3]§dloc: [f32; 3]§size: [f32; 3]§dsize: [f32; 3]§dscale: [f32; 3]§rot: [f32; 3]§drot: [f32; 3]§quat: [f32; 4]§dquat: [f32; 4]§rotAxis: [f32; 3]§drotAxis: [f32; 3]§rotAngle: f32§drotAngle: f32§obmat: [[f32; 4]; 4]§parentinv: [[f32; 4]; 4]§constinv: [[f32; 4]; 4]§imat: [[f32; 4]; 4]§lay: i32§flag: i16§colbits: i16§transflag: i16§protectflag: i16§trackflag: i16§upflag: i16§nlaflag: i16§_pad1: i8§duplicator_visibility_flag: i8§base_flag: i16§base_local_view_bits: i16§col_group: i16§col_mask: i16§rotmode: i16§boundtype: i8§collision_boundtype: i8§dtx: i16§dt: i8§empty_drawtype: i8§empty_drawsize: f32§dupfacesca: f32§index: i16§actdef: i16§actfmap: i16§_pad2: [i8; 2]§col: [f32; 4]§softflag: i16§restrictflag: i16§shapenr: i16§shapeflag: i8§_pad3: [i8; 1]§constraints: ListBase§nlastrips: ListBase§hooks: ListBase§particlesystem: ListBase§pd: Pointer<PartDeflect>§soft: Pointer<SoftBody>§dup_group: Pointer<Collection>§fluidsimSettings: Pointer<FluidsimSettings>§pc_ids: ListBase§rigidbody_object: Pointer<RigidBodyOb>§rigidbody_constraint: Pointer<RigidBodyCon>§ima_ofs: [f32; 2]§iuser: Pointer<ImageUser>§empty_image_visibility_flag: i8§empty_image_depth: i8§empty_image_flag: i8§_pad8: [i8; 5]§preview: Pointer<PreviewImage>§lineart: ObjectLineArt§lightgroup: Pointer<LightgroupMembership>§runtime: Object_Runtime

Trait Implementations§

Auto Trait Implementations§

§

impl Freeze for Object

§

impl RefUnwindSafe for Object

§

impl Send for Object

§

impl Sync for Object

§

impl Unpin for Object

§

impl UnwindSafe for Object

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.