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)>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
pub unsafe fn ui(
&self,
tree: *mut TreeViewO,
ui: *mut UiO,
style: *const UiStyleT,
rect: RectT
) -> TreeViewUiResT
pub unsafe fn get_sorted_subobjects(
&self,
tree: *const TreeViewO,
object: TtIdT,
property: u32,
ta: *mut TempAllocatorI
) -> *const TtIdT
pub unsafe fn selected_objects(
&self,
inst: *mut TreeViewO,
ta: *mut TempAllocatorI
) -> *const TtIdT
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TreeViewApi
impl Send for TreeViewApi
impl Sync for TreeViewApi
impl Unpin for TreeViewApi
impl UnwindSafe for TreeViewApi
Blanket Implementations
Mutably borrows from an owned value. Read more