#[repr(C)]pub struct tm_graph_api {
pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o)>,
pub create_graph: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i, tt: *mut tm_the_truth_o, graph_id: tm_tt_id_t, node_interface_name: *const c_char, undo_stack: *mut tm_undo_stack_i, asset_root: tm_tt_id_t, settings_tt: *mut tm_the_truth_o, settings_object: tm_tt_id_t) -> *mut tm_graph_o>,
pub destroy_graph: Option<unsafe extern "C" fn(graph: *mut tm_graph_o, truth_destroyed: bool)>,
pub set_settings_object: Option<unsafe extern "C" fn(graph: *mut tm_graph_o, settings_tt: *mut tm_the_truth_o, settings_object: tm_tt_id_t)>,
pub id: Option<unsafe extern "C" fn(graph: *mut tm_graph_o) -> tm_tt_id_t>,
pub ui: Option<unsafe extern "C" fn(inst: *mut tm_graph_o, ui: *mut tm_ui_o, style: *const tm_ui_style_t, rect: tm_rect_t, tab: *mut tm_tab_i) -> tm_graph_ui_res_t>,
pub menu: Option<unsafe extern "C" fn(inst: *mut tm_graph_o, ui: *mut tm_ui_o, style: *const tm_ui_style_t, pos: tm_vec2_t)>,
pub selected_objects: Option<unsafe extern "C" fn(inst: *mut tm_graph_o, ta: *mut tm_temp_allocator_i) -> *const tm_tt_id_t>,
pub migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, graphs: *mut tm_tt_id_t, num_graphs: u32, node_types: *const *const tm_graph_node_type_i, num_node_types: u32) -> bool>,
pub needs_migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o) -> bool>,
pub migrate_to_instantiated_connections: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, graphs: *mut tm_tt_id_t, num_graphs: u32) -> bool>,
pub refresh_node_types: Option<unsafe extern "C" fn(inst: *mut tm_graph_o, node_interface_name: *const c_char)>,
}Fields§
§create_truth_types: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o)>§create_graph: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i, tt: *mut tm_the_truth_o, graph_id: tm_tt_id_t, node_interface_name: *const c_char, undo_stack: *mut tm_undo_stack_i, asset_root: tm_tt_id_t, settings_tt: *mut tm_the_truth_o, settings_object: tm_tt_id_t) -> *mut tm_graph_o>§destroy_graph: Option<unsafe extern "C" fn(graph: *mut tm_graph_o, truth_destroyed: bool)>§set_settings_object: Option<unsafe extern "C" fn(graph: *mut tm_graph_o, settings_tt: *mut tm_the_truth_o, settings_object: tm_tt_id_t)>§id: Option<unsafe extern "C" fn(graph: *mut tm_graph_o) -> tm_tt_id_t>§ui: Option<unsafe extern "C" fn(inst: *mut tm_graph_o, ui: *mut tm_ui_o, style: *const tm_ui_style_t, rect: tm_rect_t, tab: *mut tm_tab_i) -> tm_graph_ui_res_t>§selected_objects: Option<unsafe extern "C" fn(inst: *mut tm_graph_o, ta: *mut tm_temp_allocator_i) -> *const tm_tt_id_t>§migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, graphs: *mut tm_tt_id_t, num_graphs: u32, node_types: *const *const tm_graph_node_type_i, num_node_types: u32) -> bool>§needs_migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o) -> bool>§migrate_to_instantiated_connections: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, graphs: *mut tm_tt_id_t, num_graphs: u32) -> bool>§refresh_node_types: Option<unsafe extern "C" fn(inst: *mut tm_graph_o, node_interface_name: *const c_char)>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