TreeViewApi

Struct TreeViewApi 

Source
#[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§

Source§

impl TreeViewApi

Source

pub unsafe fn create_tree_view( &self, setup: *const TreeViewSetupT, ) -> *mut TreeViewO

Source

pub unsafe fn destroy_tree_view(&self, tree: *mut TreeViewO)

Source

pub unsafe fn ui( &self, tree: *mut TreeViewO, ui: *mut UiO, style: *const UiStyleT, rect: RectT, ) -> TreeViewUiResT

Source

pub unsafe fn property_group_object( &self, object: TtIdT, property: u32, ) -> TtIdT

Source

pub unsafe fn set_expanded( &self, tree: *mut TreeViewO, object: TtIdT, expanded: bool, )

Source

pub unsafe fn is_expanded(&self, tree: *mut TreeViewO, object: TtIdT) -> bool

Source

pub unsafe fn select(&self, tree: *mut TreeViewO, object: TtIdT)

Source

pub unsafe fn add_to_selection(&self, tree: *mut TreeViewO, object: TtIdT)

Source

pub unsafe fn remove_from_selection(&self, tree: *mut TreeViewO, object: TtIdT)

Source

pub unsafe fn scroll_to_object(&self, tree: *mut TreeViewO, object: TtIdT)

Source

pub unsafe fn deselect_all(&self, tree: *mut TreeViewO)

Source

pub unsafe fn rename(&self, tree: *mut TreeViewO, object: TtIdT)

Source

pub unsafe fn get_sorted_subobjects( &self, tree: *const TreeViewO, object: TtIdT, property: u32, ta: *mut TempAllocatorI, ) -> *const TtIdT

Source

pub unsafe fn selected_objects( &self, inst: *mut TreeViewO, ta: *mut TempAllocatorI, ) -> *const TtIdT

Source

pub unsafe fn get_root_object(&self, inst: *mut TreeViewO) -> TtIdT

Source

pub unsafe fn set_root_object(&self, inst: *mut TreeViewO, object: TtIdT)

Source

pub unsafe fn add_default_menu_items( &self, tree: *mut TreeViewO, parent: *mut TreeViewParentT, object: TtIdT, object_property: u32, id_base: u64, items: *mut *mut UiMenuItemT, ta: *mut TempAllocatorI, )

Source

pub unsafe fn execute_menu_item( &self, tree: *mut TreeViewO, parent: *mut TreeViewParentT, object: TtIdT, object_property: u32, id_base: u64, res: *const UiMenuResultT, )

Source

pub unsafe fn set_empty_text(&self, tree: *mut TreeViewO, text: *const c_char)

Source

pub unsafe fn filter_nodes( &self, tree: *mut TreeViewO, node_type: u64, text: *const c_char, case_unsensitive: bool, )

Source

pub unsafe fn renaming_object(&self, tree: *mut TreeViewO) -> TtIdT

Trait Implementations§

Source§

impl Api for TreeViewApi

Source§

impl Clone for TreeViewApi

Source§

fn clone(&self) -> TreeViewApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for TreeViewApi

Source§

fn default() -> TreeViewApi

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

impl Copy for TreeViewApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.