#[repr(C)]pub struct tm_graph_api {
pub create_truth_types: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>,
pub create_graph: Option<unsafe extern "C" fn(*mut tm_allocator_i, *mut tm_the_truth_o, tm_tt_id_t, *const i8, *mut tm_undo_stack_i, tm_tt_id_t, *mut tm_the_truth_o, tm_tt_id_t) -> *mut tm_graph_o>,
pub destroy_graph: Option<unsafe extern "C" fn(*mut tm_graph_o, bool)>,
pub set_settings_object: Option<unsafe extern "C" fn(*mut tm_graph_o, *mut tm_the_truth_o, tm_tt_id_t)>,
pub id: Option<unsafe extern "C" fn(*mut tm_graph_o) -> tm_tt_id_t>,
pub ui: Option<unsafe extern "C" fn(*mut tm_graph_o, *mut tm_ui_o, *const tm_ui_style_t, tm_rect_t, *mut tm_tab_i) -> tm_graph_ui_res_t>,
pub menu: Option<unsafe extern "C" fn(*mut tm_graph_o, *mut tm_ui_o, *const tm_ui_style_t, tm_vec2_t)>,
pub selected_objects: Option<unsafe extern "C" fn(*mut tm_graph_o, *mut tm_temp_allocator_i) -> *const tm_tt_id_t>,
pub migrate_to_connector_hash: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_tt_id_t, u32, *const *const tm_graph_node_type_i, u32) -> bool>,
pub needs_migrate_to_connector_hash: Option<unsafe extern "C" fn(*mut tm_the_truth_o) -> bool>,
pub migrate_to_instantiated_connections: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_tt_id_t, u32) -> bool>,
pub refresh_node_types: Option<unsafe extern "C" fn(*mut tm_graph_o, *const i8)>,
}Fields§
§create_truth_types: Option<unsafe extern "C" fn(*mut tm_the_truth_o)>§create_graph: Option<unsafe extern "C" fn(*mut tm_allocator_i, *mut tm_the_truth_o, tm_tt_id_t, *const i8, *mut tm_undo_stack_i, tm_tt_id_t, *mut tm_the_truth_o, tm_tt_id_t) -> *mut tm_graph_o>§destroy_graph: Option<unsafe extern "C" fn(*mut tm_graph_o, bool)>§set_settings_object: Option<unsafe extern "C" fn(*mut tm_graph_o, *mut tm_the_truth_o, tm_tt_id_t)>§id: Option<unsafe extern "C" fn(*mut tm_graph_o) -> tm_tt_id_t>§ui: Option<unsafe extern "C" fn(*mut tm_graph_o, *mut tm_ui_o, *const tm_ui_style_t, tm_rect_t, *mut tm_tab_i) -> tm_graph_ui_res_t>§selected_objects: Option<unsafe extern "C" fn(*mut tm_graph_o, *mut tm_temp_allocator_i) -> *const tm_tt_id_t>§migrate_to_connector_hash: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_tt_id_t, u32, *const *const tm_graph_node_type_i, u32) -> bool>§needs_migrate_to_connector_hash: Option<unsafe extern "C" fn(*mut tm_the_truth_o) -> bool>§migrate_to_instantiated_connections: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_tt_id_t, u32) -> bool>§refresh_node_types: Option<unsafe extern "C" fn(*mut tm_graph_o, *const i8)>Trait Implementations§
Source§impl Clone for tm_graph_api
impl Clone for tm_graph_api
Source§fn clone(&self) -> tm_graph_api
fn clone(&self) -> tm_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_graph_api
Auto Trait Implementations§
impl Freeze for tm_graph_api
impl RefUnwindSafe for tm_graph_api
impl Send for tm_graph_api
impl Sync for tm_graph_api
impl Unpin for tm_graph_api
impl UnwindSafe for tm_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