#[repr(C)]pub struct tm_asset_preview_api {
pub create: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_asset_preview_o>,
pub destroy: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_allocator_i)>,
pub create_entity: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, *mut tm_entity_t)>,
pub intercept_focus: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, *const tm_entity_t, tm_tt_id_t) -> bool>,
pub reload: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, *mut tm_entity_t) -> bool>,
pub render: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *const tm_render_args_t)>,
pub ui: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *const tm_asset_preview_api__ui_args_t)>,
pub toolbars: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut u32, *const tm_asset_preview_api__ui_args_t) -> *mut tm_tab_toolbar_i>,
}Fields§
§create: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_asset_preview_o>§destroy: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_allocator_i)>§create_entity: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, *mut tm_entity_t)>§intercept_focus: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, *const tm_entity_t, tm_tt_id_t) -> bool>§reload: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, *mut tm_entity_t) -> bool>§render: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut tm_the_truth_o, tm_tt_id_t, *const tm_render_args_t)>§ui: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *const tm_asset_preview_api__ui_args_t)>§toolbars: Option<unsafe extern "C" fn(*mut tm_asset_preview_o, *mut u32, *const tm_asset_preview_api__ui_args_t) -> *mut tm_tab_toolbar_i>Trait Implementations§
Source§impl Clone for tm_asset_preview_api
impl Clone for tm_asset_preview_api
Source§fn clone(&self) -> tm_asset_preview_api
fn clone(&self) -> tm_asset_preview_api
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 moreimpl Copy for tm_asset_preview_api
Auto Trait Implementations§
impl Freeze for tm_asset_preview_api
impl RefUnwindSafe for tm_asset_preview_api
impl Send for tm_asset_preview_api
impl Sync for tm_asset_preview_api
impl Unpin for tm_asset_preview_api
impl UnwindSafe for tm_asset_preview_api
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