Skip to main content

tm_tree_view_aspect_i

Struct tm_tree_view_aspect_i 

Source
#[repr(C)]
pub struct tm_tree_view_aspect_i { pub setup: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *const tm_the_truth_o, root: tm_tt_id_t)>, pub context_menu: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, undo_stack: *mut tm_undo_stack_i, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, pos: tm_vec2_t, parent: *mut tm_tree_view_parent_t, object: tm_tt_id_t, object_property: u32)>, pub compute_node_properties: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, parent: *const tm_tree_view_parent_t, object: tm_tt_id_t, can_expand: *mut bool, can_select: *mut bool, can_drop: *mut bool, can_drag: *mut bool, expanded_key: *mut u64, ta: *mut tm_temp_allocator_i)>, pub ui: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *mut tm_ui_style_t, object: tm_tt_id_t, tree_has_focus: bool, res: *mut tm_ui_tree_item_res_t, can_drop: bool)>, pub icon: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, object: tm_tt_id_t, rect: tm_rect_t, res: *mut tm_ui_tree_item_res_t) -> tm_rect_t>, pub additional_elements: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, object: tm_tt_id_t, parent: *mut tm_tree_view_parent_t, rect: tm_rect_t, res: *mut tm_ui_tree_item_res_t, metrics: *mut tm_ui_tree_item_metrics_t)>, pub display_name: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, object: tm_tt_id_t, buffer: *mut c_char, buffer_size: u32)>, pub tooltip: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, object: tm_tt_id_t)>, pub get_node_children: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, parent: *mut tm_tree_view_parent_t, object: tm_tt_id_t, ta: *mut tm_temp_allocator_i) -> *mut tm_tree_view_children_t>, }

Fields§

§setup: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *const tm_the_truth_o, root: tm_tt_id_t)>§context_menu: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, undo_stack: *mut tm_undo_stack_i, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, pos: tm_vec2_t, parent: *mut tm_tree_view_parent_t, object: tm_tt_id_t, object_property: u32)>§compute_node_properties: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, parent: *const tm_tree_view_parent_t, object: tm_tt_id_t, can_expand: *mut bool, can_select: *mut bool, can_drop: *mut bool, can_drag: *mut bool, expanded_key: *mut u64, ta: *mut tm_temp_allocator_i)>§ui: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *mut tm_ui_style_t, object: tm_tt_id_t, tree_has_focus: bool, res: *mut tm_ui_tree_item_res_t, can_drop: bool)>§icon: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, object: tm_tt_id_t, rect: tm_rect_t, res: *mut tm_ui_tree_item_res_t) -> tm_rect_t>§additional_elements: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, object: tm_tt_id_t, parent: *mut tm_tree_view_parent_t, rect: tm_rect_t, res: *mut tm_ui_tree_item_res_t, metrics: *mut tm_ui_tree_item_metrics_t)>§display_name: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, object: tm_tt_id_t, buffer: *mut c_char, buffer_size: u32)>§tooltip: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, object: tm_tt_id_t)>§get_node_children: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut tm_tree_view_o, tt: *mut tm_the_truth_o, parent: *mut tm_tree_view_parent_t, object: tm_tt_id_t, ta: *mut tm_temp_allocator_i) -> *mut tm_tree_view_children_t>

Trait Implementations§

Source§

impl Clone for tm_tree_view_aspect_i

Source§

fn clone(&self) -> tm_tree_view_aspect_i

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 Copy for tm_tree_view_aspect_i

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.