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

#[repr(C)]
pub struct TreeViewApi {
Show 21 fields pub create_tree_view: Option<unsafe extern "C" fn(setup: *const TreeViewSetupT) -> *mut TreeViewO>, pub destroy_tree_view: Option<unsafe extern "C" fn(tree: *mut TreeViewO)>, pub ui: Option<unsafe extern "C" fn(tree: *mut TreeViewO, ui: *mut UiO, style: *const UiStyleT, rect: RectT) -> TreeViewUiResT>, pub property_group_object: Option<unsafe extern "C" fn(object: TtIdT, property: u32) -> TtIdT>, pub set_expanded: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT, expanded: bool)>, pub is_expanded: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT) -> bool>, pub select: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>, pub add_to_selection: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>, pub remove_from_selection: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>, pub scroll_to_object: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>, pub deselect_all: Option<unsafe extern "C" fn(tree: *mut TreeViewO)>, pub rename: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>, pub get_sorted_subobjects: Option<unsafe extern "C" fn(tree: *const TreeViewO, object: TtIdT, property: u32, ta: *mut TempAllocatorI) -> *const TtIdT>, pub selected_objects: Option<unsafe extern "C" fn(inst: *mut TreeViewO, ta: *mut TempAllocatorI) -> *const TtIdT>, pub get_root_object: Option<unsafe extern "C" fn(inst: *mut TreeViewO) -> TtIdT>, pub set_root_object: Option<unsafe extern "C" fn(inst: *mut TreeViewO, object: TtIdT)>, pub add_default_menu_items: Option<unsafe extern "C" fn(tree: *mut TreeViewO, parent: *mut TreeViewParentT, object: TtIdT, object_property: u32, id_base: u64, items: *mut *mut UiMenuItemT, ta: *mut TempAllocatorI)>, pub execute_menu_item: Option<unsafe extern "C" fn(tree: *mut TreeViewO, parent: *mut TreeViewParentT, object: TtIdT, object_property: u32, id_base: u64, res: *const UiMenuResultT)>, pub set_empty_text: Option<unsafe extern "C" fn(tree: *mut TreeViewO, text: *const c_char)>, pub filter_nodes: Option<unsafe extern "C" fn(tree: *mut TreeViewO, node_type: u64, text: *const c_char, case_unsensitive: bool)>, pub renaming_object: Option<unsafe extern "C" fn(tree: *mut TreeViewO) -> TtIdT>,
}

Fields

create_tree_view: Option<unsafe extern "C" fn(setup: *const TreeViewSetupT) -> *mut TreeViewO>destroy_tree_view: Option<unsafe extern "C" fn(tree: *mut TreeViewO)>ui: Option<unsafe extern "C" fn(tree: *mut TreeViewO, ui: *mut UiO, style: *const UiStyleT, rect: RectT) -> TreeViewUiResT>property_group_object: Option<unsafe extern "C" fn(object: TtIdT, property: u32) -> TtIdT>set_expanded: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT, expanded: bool)>is_expanded: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT) -> bool>select: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>add_to_selection: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>remove_from_selection: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>scroll_to_object: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>deselect_all: Option<unsafe extern "C" fn(tree: *mut TreeViewO)>rename: Option<unsafe extern "C" fn(tree: *mut TreeViewO, object: TtIdT)>get_sorted_subobjects: Option<unsafe extern "C" fn(tree: *const TreeViewO, object: TtIdT, property: u32, ta: *mut TempAllocatorI) -> *const TtIdT>selected_objects: Option<unsafe extern "C" fn(inst: *mut TreeViewO, ta: *mut TempAllocatorI) -> *const TtIdT>get_root_object: Option<unsafe extern "C" fn(inst: *mut TreeViewO) -> TtIdT>set_root_object: Option<unsafe extern "C" fn(inst: *mut TreeViewO, object: TtIdT)>add_default_menu_items: Option<unsafe extern "C" fn(tree: *mut TreeViewO, parent: *mut TreeViewParentT, object: TtIdT, object_property: u32, id_base: u64, items: *mut *mut UiMenuItemT, ta: *mut TempAllocatorI)>execute_menu_item: Option<unsafe extern "C" fn(tree: *mut TreeViewO, parent: *mut TreeViewParentT, object: TtIdT, object_property: u32, id_base: u64, res: *const UiMenuResultT)>set_empty_text: Option<unsafe extern "C" fn(tree: *mut TreeViewO, text: *const c_char)>filter_nodes: Option<unsafe extern "C" fn(tree: *mut TreeViewO, node_type: u64, text: *const c_char, case_unsensitive: bool)>renaming_object: Option<unsafe extern "C" fn(tree: *mut TreeViewO) -> TtIdT>

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.