#[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§
Source§impl TreeViewApi
impl TreeViewApi
pub unsafe fn create_tree_view( &self, setup: *const TreeViewSetupT, ) -> *mut TreeViewO
pub unsafe fn destroy_tree_view(&self, tree: *mut TreeViewO)
pub unsafe fn ui( &self, tree: *mut TreeViewO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, ) -> TreeViewUiResT
pub unsafe fn property_group_object( &self, object: TtIdT, property: u32, ) -> TtIdT
pub unsafe fn set_expanded( &self, tree: *mut TreeViewO, object: TtIdT, expanded: bool, )
pub unsafe fn is_expanded(&self, tree: *mut TreeViewO, object: TtIdT) -> bool
pub unsafe fn select(&self, tree: *mut TreeViewO, object: TtIdT)
pub unsafe fn add_to_selection(&self, tree: *mut TreeViewO, object: TtIdT)
pub unsafe fn remove_from_selection(&self, tree: *mut TreeViewO, object: TtIdT)
pub unsafe fn scroll_to_object(&self, tree: *mut TreeViewO, object: TtIdT)
pub unsafe fn deselect_all(&self, tree: *mut TreeViewO)
pub unsafe fn rename(&self, tree: *mut TreeViewO, object: TtIdT)
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
pub unsafe fn get_root_object(&self, inst: *mut TreeViewO) -> TtIdT
pub unsafe fn set_root_object(&self, inst: *mut TreeViewO, object: TtIdT)
pub unsafe fn set_empty_text(&self, tree: *mut TreeViewO, text: *const c_char)
pub unsafe fn filter_nodes( &self, tree: *mut TreeViewO, node_type: u64, text: *const c_char, case_unsensitive: bool, )
pub unsafe fn renaming_object(&self, tree: *mut TreeViewO) -> TtIdT
Trait Implementations§
Source§impl Clone for TreeViewApi
impl Clone for TreeViewApi
Source§fn clone(&self) -> TreeViewApi
fn clone(&self) -> TreeViewApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for TreeViewApi
impl Default for TreeViewApi
Source§fn default() -> TreeViewApi
fn default() -> TreeViewApi
Returns the “default value” for a type. Read more
impl Copy for TreeViewApi
Auto Trait Implementations§
impl Freeze for TreeViewApi
impl RefUnwindSafe for TreeViewApi
impl Send for TreeViewApi
impl Sync for TreeViewApi
impl Unpin for TreeViewApi
impl UnwindSafe for TreeViewApi
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