TreeViewAspectI

Struct TreeViewAspectI 

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

Source§

fn clone(&self) -> TreeViewAspectI

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 TreeViewAspectI

Source§

fn default() -> TreeViewAspectI

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

impl Copy for TreeViewAspectI

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.