Struct machinery_api::plugins::editor_views::GraphApi[][src]

#[repr(C)]
pub struct GraphApi {
Show 13 fields pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>, pub create_graph: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, tt: *mut TheTruthO, graph_id: TtIdT, node_interface_name: *const c_char, undo_stack: *mut UndoStackI, asset_root: TtIdT, settings_tt: *mut TheTruthO, settings_object: TtIdT) -> *mut GraphO>, pub destroy_graph: Option<unsafe extern "C" fn(graph: *mut GraphO, truth_already_destroyed: bool)>, pub set_settings_object: Option<unsafe extern "C" fn(graph: *mut GraphO, settings_tt: *mut TheTruthO, settings_object: TtIdT)>, pub id: Option<unsafe extern "C" fn(graph: *mut GraphO) -> TtIdT>, pub ui: Option<unsafe extern "C" fn(inst: *mut GraphO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, tab: *mut TabI) -> GraphUiResT>, pub menu: Option<unsafe extern "C" fn(inst: *mut GraphO, ui: *mut UiO, style: *const UiStyleT, pos: Vec2T)>, pub selected_objects: Option<unsafe extern "C" fn(inst: *mut GraphO, ta: *mut TempAllocatorI) -> *const TtIdT>, pub refresh_node_types: Option<unsafe extern "C" fn(inst: *mut GraphO, node_interface_name: *const c_char)>, pub toolbars: Option<unsafe extern "C" fn(inst: *mut GraphO, ta: *mut TempAllocatorI) -> *mut ToolbarI>, pub migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graphs: *mut TtIdT, num_graphs: u32, node_types: *const *const GraphNodeTypeI, num_node_types: u32) -> bool>, pub needs_migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut TheTruthO) -> bool>, pub migrate_to_instantiated_connections: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graphs: *mut TtIdT, num_graphs: u32) -> bool>,
}

Fields

create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>create_graph: Option<unsafe extern "C" fn(allocator: *mut AllocatorI, tt: *mut TheTruthO, graph_id: TtIdT, node_interface_name: *const c_char, undo_stack: *mut UndoStackI, asset_root: TtIdT, settings_tt: *mut TheTruthO, settings_object: TtIdT) -> *mut GraphO>destroy_graph: Option<unsafe extern "C" fn(graph: *mut GraphO, truth_already_destroyed: bool)>set_settings_object: Option<unsafe extern "C" fn(graph: *mut GraphO, settings_tt: *mut TheTruthO, settings_object: TtIdT)>id: Option<unsafe extern "C" fn(graph: *mut GraphO) -> TtIdT>ui: Option<unsafe extern "C" fn(inst: *mut GraphO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, tab: *mut TabI) -> GraphUiResT>menu: Option<unsafe extern "C" fn(inst: *mut GraphO, ui: *mut UiO, style: *const UiStyleT, pos: Vec2T)>selected_objects: Option<unsafe extern "C" fn(inst: *mut GraphO, ta: *mut TempAllocatorI) -> *const TtIdT>refresh_node_types: Option<unsafe extern "C" fn(inst: *mut GraphO, node_interface_name: *const c_char)>toolbars: Option<unsafe extern "C" fn(inst: *mut GraphO, ta: *mut TempAllocatorI) -> *mut ToolbarI>migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graphs: *mut TtIdT, num_graphs: u32, node_types: *const *const GraphNodeTypeI, num_node_types: u32) -> bool>needs_migrate_to_connector_hash: Option<unsafe extern "C" fn(tt: *mut TheTruthO) -> bool>migrate_to_instantiated_connections: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graphs: *mut TtIdT, num_graphs: u32) -> bool>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.