#[repr(C)]pub struct TreeViewAspectI {
pub setup: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *const TheTruthO, root: TtIdT)>,
pub context_menu: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, undo_stack: *mut UndoStackI, ui: *mut UiO, uistyle: *const UiStyleT, pos: Vec2T, parent: *mut TreeViewParentT, object: TtIdT, object_property: u32)>,
pub compute_node_properties: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, parent: *const TreeViewParentT, object: TtIdT, can_expand: *mut bool, can_select: *mut bool, can_drop: *mut bool, can_drag: *mut bool, expanded_key: *mut u64, ta: *mut TempAllocatorI)>,
pub ui: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *mut UiStyleT, object: TtIdT, parent: *mut TreeViewParentT, tree_has_focus: bool, res: *mut UiTreeItemResT, item_rect: RectT, can_drop: bool)>,
pub icon: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *const UiStyleT, object: TtIdT, rect: RectT, res: *mut UiTreeItemResT) -> RectT>,
pub additional_elements: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *const UiStyleT, object: TtIdT, parent: *mut TreeViewParentT, rect: RectT, res: *mut UiTreeItemResT, metrics: *mut UiTreeItemMetricsT) -> RectT>,
pub display_name: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, object: TtIdT, buffer: *mut c_char, buffer_size: u32)>,
pub tooltip: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *const UiStyleT, object: TtIdT)>,
pub get_node_children: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, parent: *mut TreeViewParentT, object: TtIdT, ta: *mut TempAllocatorI) -> *mut TreeViewChildrenT>,
pub can_drop_above: Option<unsafe extern "C" fn(state: *mut c_void, ui: *mut UiO, parent: *mut TreeViewParentT, above_object: TtIdT, dragged_objects: *mut TtIdT) -> bool>,
pub drop_above: Option<unsafe extern "C" fn(state: *mut c_void, ui: *mut UiO, above_object: TtIdT, dragged_objects: *mut TtIdT, undo_scope: TtUndoScopeT)>,
}Fields§
§setup: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *const TheTruthO, root: TtIdT)>§compute_node_properties: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, parent: *const TreeViewParentT, object: TtIdT, can_expand: *mut bool, can_select: *mut bool, can_drop: *mut bool, can_drag: *mut bool, expanded_key: *mut u64, ta: *mut TempAllocatorI)>§ui: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *mut UiStyleT, object: TtIdT, parent: *mut TreeViewParentT, tree_has_focus: bool, res: *mut UiTreeItemResT, item_rect: RectT, can_drop: bool)>§icon: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *const UiStyleT, object: TtIdT, rect: RectT, res: *mut UiTreeItemResT) -> RectT>§additional_elements: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *const UiStyleT, object: TtIdT, parent: *mut TreeViewParentT, rect: RectT, res: *mut UiTreeItemResT, metrics: *mut UiTreeItemMetricsT) -> RectT>§display_name: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, object: TtIdT, buffer: *mut c_char, buffer_size: u32)>§tooltip: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, ui: *mut UiO, uistyle: *const UiStyleT, object: TtIdT)>§get_node_children: Option<unsafe extern "C" fn(state: *mut c_void, tree: *mut TreeViewO, tt: *mut TheTruthO, parent: *mut TreeViewParentT, object: TtIdT, ta: *mut TempAllocatorI) -> *mut TreeViewChildrenT>§can_drop_above: Option<unsafe extern "C" fn(state: *mut c_void, ui: *mut UiO, parent: *mut TreeViewParentT, above_object: TtIdT, dragged_objects: *mut TtIdT) -> bool>§drop_above: Option<unsafe extern "C" fn(state: *mut c_void, ui: *mut UiO, above_object: TtIdT, dragged_objects: *mut TtIdT, undo_scope: TtUndoScopeT)>Trait Implementations§
Source§impl Clone for TreeViewAspectI
impl Clone for TreeViewAspectI
Source§fn clone(&self) -> TreeViewAspectI
fn clone(&self) -> TreeViewAspectI
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 TreeViewAspectI
impl Default for TreeViewAspectI
Source§fn default() -> TreeViewAspectI
fn default() -> TreeViewAspectI
Returns the “default value” for a type. Read more
impl Copy for TreeViewAspectI
Auto Trait Implementations§
impl Freeze for TreeViewAspectI
impl RefUnwindSafe for TreeViewAspectI
impl Send for TreeViewAspectI
impl Sync for TreeViewAspectI
impl Unpin for TreeViewAspectI
impl UnwindSafe for TreeViewAspectI
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