[][src]Struct tm_rs::ffi::tm_component_i

#[repr(C)]pub struct tm_component_i {
    pub name: *const i8,
    pub bytes: u32,
    pub _padding_103: [i8; 4],
    pub default_data: *const c_void,
    pub manager: *mut tm_component_manager_o,
    pub components_created: Option<unsafe extern "C" fn(*mut tm_component_manager_o)>,
    pub load_asset: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void, *const tm_the_truth_o, tm_tt_id_t) -> bool>,
    pub asset_loaded: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>,
    pub asset_loaded_sort_order: f64,
    pub asset_reloaded: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>,
    pub add: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>,
    pub remove: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>,
    pub destroy: Option<unsafe extern "C" fn(*mut tm_component_manager_o)>,
    pub debug_draw: Option<unsafe extern "C" fn(*mut tm_component_manager_o, *mut tm_entity_t, *mut *const c_void, u32, *mut tm_primitive_drawer_buffer_t, *mut tm_primitive_drawer_buffer_t, *mut tm_allocator_i, *const tm_camera_t, tm_rect_t)>,
    pub debug_draw_settings: tm_tt_id_t,
}

Fields

name: *const i8bytes: u32_padding_103: [i8; 4]default_data: *const c_voidmanager: *mut tm_component_manager_ocomponents_created: Option<unsafe extern "C" fn(*mut tm_component_manager_o)>load_asset: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void, *const tm_the_truth_o, tm_tt_id_t) -> bool>asset_loaded: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>asset_loaded_sort_order: f64asset_reloaded: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>add: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>remove: Option<unsafe extern "C" fn(*mut tm_component_manager_o, tm_entity_t, *mut c_void)>destroy: Option<unsafe extern "C" fn(*mut tm_component_manager_o)>debug_draw: Option<unsafe extern "C" fn(*mut tm_component_manager_o, *mut tm_entity_t, *mut *const c_void, u32, *mut tm_primitive_drawer_buffer_t, *mut tm_primitive_drawer_buffer_t, *mut tm_allocator_i, *const tm_camera_t, tm_rect_t)>debug_draw_settings: tm_tt_id_t

Trait Implementations

impl Clone for tm_component_i[src]

impl Copy for tm_component_i[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.