[][src]Struct tm_rs::ffi::tm_the_truth_common_types_api

#[repr(C)]pub struct tm_the_truth_common_types_api {
    pub create_common_types: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>,
    pub read_floats: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, *mut f32, u32) -> *mut f32>,
    pub write_floats: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, *const f32, u32)>,
    pub get_vec2: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec2_t>,
    pub get_vec3: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>,
    pub get_vec4: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec4_t>,
    pub get_rect: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_rect_t>,
    pub get_position: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>,
    pub get_rotation: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec4_t>,
    pub get_scale: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>,
    pub get_color_rgb: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>,
    pub get_color_rgba: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec4_t>,
    pub get_color_srgb: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_color_srgb_t>,
    pub get_color_srgba: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_color_srgb_t>,
    pub set_vec2: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec2_t, tm_tt_undo_scope_t)>,
    pub set_vec3: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>,
    pub set_vec4: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec4_t, tm_tt_undo_scope_t)>,
    pub set_rect: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_rect_t, tm_tt_undo_scope_t)>,
    pub set_position: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>,
    pub set_rotation: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec4_t, tm_tt_undo_scope_t)>,
    pub set_scale: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>,
    pub set_color_rgb: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>,
    pub set_color_rgba: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec4_t, tm_tt_undo_scope_t)>,
    pub set_color_srgb: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_color_srgb_t, tm_tt_undo_scope_t)>,
    pub set_color_srgba: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_color_srgb_t, tm_tt_undo_scope_t)>,
}

Fields

create_common_types: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>read_floats: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, *mut f32, u32) -> *mut f32>write_floats: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, *const f32, u32)>get_vec2: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec2_t>get_vec3: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>get_vec4: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec4_t>get_rect: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_rect_t>get_position: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>get_rotation: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec4_t>get_scale: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>get_color_rgb: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec3_t>get_color_rgba: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_vec4_t>get_color_srgb: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_color_srgb_t>get_color_srgba: Option<unsafe extern "C" fn(*const tm_the_truth_o, *const tm_the_truth_object_o, u32) -> tm_color_srgb_t>set_vec2: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec2_t, tm_tt_undo_scope_t)>set_vec3: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>set_vec4: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec4_t, tm_tt_undo_scope_t)>set_rect: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_rect_t, tm_tt_undo_scope_t)>set_position: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>set_rotation: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec4_t, tm_tt_undo_scope_t)>set_scale: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>set_color_rgb: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec3_t, tm_tt_undo_scope_t)>set_color_rgba: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_vec4_t, tm_tt_undo_scope_t)>set_color_srgb: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_color_srgb_t, tm_tt_undo_scope_t)>set_color_srgba: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_the_truth_object_o, u32, tm_color_srgb_t, tm_tt_undo_scope_t)>

Trait Implementations

impl Clone for tm_the_truth_common_types_api[src]

impl Copy for tm_the_truth_common_types_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.