#[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, node_interface_version: VersionT, 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, ui_root_id: u64) -> 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, node_interface_version: VersionT)>,
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, node_interface_version: VersionT, 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, ui_root_id: u64) -> GraphUiResT>
§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, node_interface_version: VersionT)>
§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§
Source§impl GraphApi
impl GraphApi
pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)
pub unsafe fn create_graph( &self, allocator: *mut AllocatorI, tt: *mut TheTruthO, graph_id: TtIdT, node_interface_name: *const c_char, node_interface_version: VersionT, undo_stack: *mut UndoStackI, asset_root: TtIdT, settings_tt: *mut TheTruthO, settings_object: TtIdT, ) -> *mut GraphO
pub unsafe fn destroy_graph( &self, graph: *mut GraphO, truth_already_destroyed: bool, )
pub unsafe fn set_settings_object( &self, graph: *mut GraphO, settings_tt: *mut TheTruthO, settings_object: TtIdT, )
pub unsafe fn id(&self, graph: *mut GraphO) -> TtIdT
pub unsafe fn ui( &self, inst: *mut GraphO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, ui_root_id: u64, ) -> GraphUiResT
pub unsafe fn selected_objects( &self, inst: *mut GraphO, ta: *mut TempAllocatorI, ) -> *const TtIdT
pub unsafe fn refresh_node_types( &self, inst: *mut GraphO, node_interface_name: *const c_char, node_interface_version: VersionT, )
pub unsafe fn toolbars( &self, inst: *mut GraphO, ta: *mut TempAllocatorI, ) -> *mut ToolbarI
pub unsafe fn migrate_to_connector_hash( &self, tt: *mut TheTruthO, graphs: *mut TtIdT, num_graphs: u32, node_types: *const *const GraphNodeTypeI, num_node_types: u32, ) -> bool
pub unsafe fn needs_migrate_to_connector_hash(&self, tt: *mut TheTruthO) -> bool
pub unsafe fn migrate_to_instantiated_connections( &self, tt: *mut TheTruthO, graphs: *mut TtIdT, num_graphs: u32, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphApi
impl RefUnwindSafe for GraphApi
impl Send for GraphApi
impl Sync for GraphApi
impl Unpin for GraphApi
impl UnwindSafe for GraphApi
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