#[repr(C)]pub struct tm_state_graph_api {
pub create_graph: Option<unsafe extern "C" fn(parent_allocator: *mut tm_allocator_i, setup: *const tm_state_graph_setup_t) -> *mut tm_state_graph_o>,
pub destroy_graph: Option<unsafe extern "C" fn(graph: *mut tm_state_graph_o)>,
pub ui: Option<unsafe extern "C" fn(inst: *mut tm_state_graph_o, ui: *mut tm_ui_o, style: *const tm_ui_style_t, rect: tm_rect_t, tab_id: u64) -> tm_state_graph_ui_res_t>,
pub selected_objects: Option<unsafe extern "C" fn(inst: *mut tm_state_graph_o, ta: *mut tm_temp_allocator_i) -> *const tm_tt_id_t>,
}Fields§
§create_graph: Option<unsafe extern "C" fn(parent_allocator: *mut tm_allocator_i, setup: *const tm_state_graph_setup_t) -> *mut tm_state_graph_o>§destroy_graph: Option<unsafe extern "C" fn(graph: *mut tm_state_graph_o)>§ui: Option<unsafe extern "C" fn(inst: *mut tm_state_graph_o, ui: *mut tm_ui_o, style: *const tm_ui_style_t, rect: tm_rect_t, tab_id: u64) -> tm_state_graph_ui_res_t>§selected_objects: Option<unsafe extern "C" fn(inst: *mut tm_state_graph_o, ta: *mut tm_temp_allocator_i) -> *const tm_tt_id_t>Trait Implementations§
Source§impl Clone for tm_state_graph_api
impl Clone for tm_state_graph_api
Source§fn clone(&self) -> tm_state_graph_api
fn clone(&self) -> tm_state_graph_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_state_graph_api
Auto Trait Implementations§
impl Freeze for tm_state_graph_api
impl RefUnwindSafe for tm_state_graph_api
impl Send for tm_state_graph_api
impl Sync for tm_state_graph_api
impl Unpin for tm_state_graph_api
impl UnwindSafe for tm_state_graph_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