#[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
impl TheTruthCommonTypesApi
pub unsafe fn create_common_types(&self, tt: *mut TheTruthO)
pub unsafe fn get_vec2( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec2T
pub unsafe fn get_vec3( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T
pub unsafe fn get_vec4( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec4T
pub unsafe fn get_rect( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> RectT
pub unsafe fn get_position( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T
pub unsafe fn get_rotation( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec4T
pub unsafe fn get_scale( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T
pub unsafe fn get_color_rgb( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec3T
pub unsafe fn get_color_rgba( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> Vec4T
pub unsafe fn get_color_srgb( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> ColorSrgbT
pub unsafe fn get_color_srgba( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> ColorSrgbT
pub unsafe fn get_uuid( &self, tt: *const TheTruthO, object: *const TheTruthObjectO, property: u32, ) -> UuidT
pub unsafe fn set_vec2( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec2: Vec2T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_vec3( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_vec4( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_rect( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, rect: RectT, undo_scope: TtUndoScopeT, )
pub unsafe fn set_position( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_rotation( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_scale( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_color_rgb( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec3: Vec3T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_color_rgba( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, vec4: Vec4T, undo_scope: TtUndoScopeT, )
pub unsafe fn set_color_srgb( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT, )
pub unsafe fn set_color_srgba( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, col: ColorSrgbT, undo_scope: TtUndoScopeT, )
pub unsafe fn set_uuid( &self, tt: *mut TheTruthO, object: *mut TheTruthObjectO, property: u32, uuid: UuidT, undo_scope: TtUndoScopeT, )
pub unsafe fn read_floats( &self, tt: *const TheTruthO, obj: *const TheTruthObjectO, res: *mut f32, n: u32, ) -> *mut f32
pub unsafe fn write_floats( &self, tt: *mut TheTruthO, obj: *mut TheTruthObjectO, values: *const f32, n: u32, )
Trait Implementations§
Source§impl Api for TheTruthCommonTypesApi
impl Api for TheTruthCommonTypesApi
Source§impl Clone for TheTruthCommonTypesApi
impl Clone for TheTruthCommonTypesApi
Source§fn clone(&self) -> TheTruthCommonTypesApi
fn clone(&self) -> TheTruthCommonTypesApi
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 moreSource§impl Default for TheTruthCommonTypesApi
impl Default for TheTruthCommonTypesApi
Source§fn default() -> TheTruthCommonTypesApi
fn default() -> TheTruthCommonTypesApi
Returns the “default value” for a type. Read more
impl Copy for TheTruthCommonTypesApi
Auto Trait Implementations§
impl Freeze for TheTruthCommonTypesApi
impl RefUnwindSafe for TheTruthCommonTypesApi
impl Send for TheTruthCommonTypesApi
impl Sync for TheTruthCommonTypesApi
impl Unpin for TheTruthCommonTypesApi
impl UnwindSafe for TheTruthCommonTypesApi
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