[][src]Struct tm_sys::ffi::tm_graph_api

#[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>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)>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

impl Clone for tm_graph_api[src]

impl Copy for tm_graph_api[src]

impl Debug for tm_graph_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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.