TheTruthCommonTypesApi

Struct TheTruthCommonTypesApi 

Source
#[repr(C)]
pub struct TheTruthCommonTypesApi {
Show 27 fields pub create_common_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>, pub get_vec2: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec2T>, pub get_vec3: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>, pub get_vec4: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec4T>, pub get_rect: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> RectT>, pub get_position: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>, pub get_rotation: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec4T>, pub get_scale: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>, pub get_color_rgb: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>, pub get_color_rgba: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec4T>, pub get_color_srgb: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> ColorSrgbT>, pub get_color_srgba: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> ColorSrgbT>, pub get_uuid: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> UuidT>, pub set_vec2: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec2: Vec2T, undo_scope: TtUndoScopeT)>, pub set_vec3: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>, pub set_vec4: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT)>, pub set_rect: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, rect: RectT, undo_scope: TtUndoScopeT)>, pub set_position: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>, pub set_rotation: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT)>, pub set_scale: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>, pub set_color_rgb: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>, pub set_color_rgba: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT)>, pub set_color_srgb: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT)>, pub set_color_srgba: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT)>, pub set_uuid: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, uuid: UuidT, undo_scope: TtUndoScopeT)>, pub read_floats: Option<unsafe extern "C" fn(tt: *const TheTruthO, obj: *const TheTruthObjectO, res: *mut f32, n: u32) -> *mut f32>, pub write_floats: Option<unsafe extern "C" fn(tt: *mut TheTruthO, obj: *mut TheTruthObjectO, values: *const f32, n: u32)>,
}

Fields§

§create_common_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>§get_vec2: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec2T>§get_vec3: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>§get_vec4: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec4T>§get_rect: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> RectT>§get_position: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>§get_rotation: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec4T>§get_scale: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>§get_color_rgb: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec3T>§get_color_rgba: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> Vec4T>§get_color_srgb: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> ColorSrgbT>§get_color_srgba: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> ColorSrgbT>§get_uuid: Option<unsafe extern "C" fn(tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32) -> UuidT>§set_vec2: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec2: Vec2T, undo_scope: TtUndoScopeT)>§set_vec3: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>§set_vec4: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT)>§set_rect: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, rect: RectT, undo_scope: TtUndoScopeT)>§set_position: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>§set_rotation: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT)>§set_scale: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>§set_color_rgb: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT)>§set_color_rgba: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT)>§set_color_srgb: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT)>§set_color_srgba: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT)>§set_uuid: Option<unsafe extern "C" fn(tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, uuid: UuidT, undo_scope: TtUndoScopeT)>§read_floats: Option<unsafe extern "C" fn(tt: *const TheTruthO, obj: *const TheTruthObjectO, res: *mut f32, n: u32) -> *mut f32>§write_floats: Option<unsafe extern "C" fn(tt: *mut TheTruthO, obj: *mut TheTruthObjectO, values: *const f32, n: u32)>

Implementations§

Source§

impl TheTruthCommonTypesApi

Source

pub unsafe fn create_common_types(&self, tt: *mut TheTruthO)

Source

pub unsafe fn get_vec2( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec2T

Source

pub unsafe fn get_vec3( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T

Source

pub unsafe fn get_vec4( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec4T

Source

pub unsafe fn get_rect( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> RectT

Source

pub unsafe fn get_position( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T

Source

pub unsafe fn get_rotation( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec4T

Source

pub unsafe fn get_scale( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T

Source

pub unsafe fn get_color_rgb( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T

Source

pub unsafe fn get_color_rgba( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec4T

Source

pub unsafe fn get_color_srgb( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> ColorSrgbT

Source

pub unsafe fn get_color_srgba( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> ColorSrgbT

Source

pub unsafe fn get_uuid( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> UuidT

Source

pub unsafe fn set_vec2( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec2: Vec2T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_vec3( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_vec4( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_rect( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, rect: RectT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_position( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_rotation( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_scale( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_color_rgb( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_color_rgba( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_color_srgb( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_color_srgba( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn set_uuid( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, uuid: UuidT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn read_floats( &self, tt: *const TheTruthO, obj: *const TheTruthObjectO, res: *mut f32, n: u32, ) -> *mut f32

Source

pub unsafe fn write_floats( &self, tt: *mut TheTruthO, obj: *mut TheTruthObjectO, values: *const f32, n: u32, )

Trait Implementations§

Source§

impl Api for TheTruthCommonTypesApi

Source§

impl Clone for TheTruthCommonTypesApi

Source§

fn clone(&self) -> TheTruthCommonTypesApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for TheTruthCommonTypesApi

Source§

fn default() -> TheTruthCommonTypesApi

Returns the “default value” for a type. Read more
Source§

impl Copy for TheTruthCommonTypesApi

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.