#[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)>§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
impl Clone for tm_tree_view_aspect_i
Source§fn clone(&self) -> tm_tree_view_aspect_i
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for tm_tree_view_aspect_i
Auto Trait Implementations§
impl Freeze for tm_tree_view_aspect_i
impl RefUnwindSafe for tm_tree_view_aspect_i
impl Send for tm_tree_view_aspect_i
impl Sync for tm_tree_view_aspect_i
impl Unpin for tm_tree_view_aspect_i
impl UnsafeUnpin for tm_tree_view_aspect_i
impl UnwindSafe for tm_tree_view_aspect_i
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