DockingApi

Struct DockingApi 

Source
#[repr(C)]
pub struct DockingApi {
Show 47 fields pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>, pub add_ui: Option<unsafe extern "C" fn(ui: *mut UiO, r: RectT)>, pub remove_ui: Option<unsafe extern "C" fn(ui: *mut UiO)>, pub add_workspace: Option<unsafe extern "C" fn(ui: *mut UiO, name: *const c_char)>, pub close_focused_workspace: Option<unsafe extern "C" fn(ui: *mut UiO) -> bool>, pub num_workspaces: Option<unsafe extern "C" fn(ui: *mut UiO) -> u32>, pub current_workspace: Option<unsafe extern "C" fn(ui: *mut UiO) -> u32>, pub workspace_name: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32) -> *const c_char>, pub set_workspace_name: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32, name: *const c_char)>, pub workspace_icon: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32) -> u32>, pub set_workspace_icon: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32, icon: u32)>, pub workspace_root: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32) -> *mut DockingTabwellO>, pub hot_reload: Option<unsafe extern "C" fn()>, pub root: Option<unsafe extern "C" fn(ui: *mut UiO) -> *mut DockingTabwellO>, pub split_tabwell: Option<unsafe extern "C" fn(parent: *mut DockingTabwellO, split: DockingTabwellSplit, bias: f32, sibling: *mut *mut DockingTabwellO) -> *mut DockingTabwellO>, pub add_tab: Option<unsafe extern "C" fn(ui: *mut UiO, tabwell: *mut DockingTabwellO, tab: *mut TabI)>, pub remove_tab: Option<unsafe extern "C" fn(tab: *mut TabI)>, pub move_tab: Option<unsafe extern "C" fn(tab: *mut TabI, ui: *mut UiO, tabwell: *mut DockingTabwellO)>, pub clear: Option<unsafe extern "C" fn()>, pub feed_events: Option<unsafe extern "C" fn(events: *const InputEventT, count: u32, args: *mut DockingFeedEventsArgsT)>, pub ui: Option<unsafe extern "C" fn(ui: *mut UiO, uistyle: *const UiStyleT, ui_renderer: *mut UiRendererO, rect: RectT, ui_has_focus: bool, dropped_files: *const OsDroppedFileT, num_dropped_files: u32, context: *mut TabCreateContextT, settings_tt: *mut TheTruthO, settings_obj: TtIdT, default_padding: f32, workspaces_mode: DockingWorkspacesBarMode)>, pub is_dragging_tab: Option<unsafe extern "C" fn(pos: *mut Vec2T) -> *mut TabI>, pub should_create_new_ui_for_tab: Option<unsafe extern "C" fn(create_context: *mut TabCreateContextT, rect: *mut RectT) -> *mut TabI>, pub focused_tabwell: Option<unsafe extern "C" fn(ui: *mut UiO) -> *mut DockingTabwellO>, pub focused_tab: Option<unsafe extern "C" fn(ui: *mut UiO) -> *mut TabI>, pub tab_has_focus: Option<unsafe extern "C" fn(tab: *mut TabI) -> bool>, pub tabwell_info: Option<unsafe extern "C" fn(tw: *mut DockingTabwellO, ta: *mut TempAllocatorI) -> DockingTabwellInfoT>, pub tab_info: Option<unsafe extern "C" fn(tabs: *mut DockingTabInfoT, n: u32, filter_ui: *mut UiO, filter_visible: bool) -> u32>, pub root_history: Option<unsafe extern "C" fn(tab: *mut TabI, n: *mut u32) -> *mut TabVtRootT>, pub clear_root_history_with_greater_counter: Option<unsafe extern "C" fn(tab: *mut TabI, counter: u64)>, pub tab_ui: Option<unsafe extern "C" fn(tab: *mut TabI) -> *mut UiO>, pub can_remove_ui: Option<unsafe extern "C" fn(ui: *mut UiO) -> bool>, pub set_focus_tab: Option<unsafe extern "C" fn(ui: *mut UiO, tab: *mut TabI)>, pub close_focused_tab: Option<unsafe extern "C" fn(ui: *mut UiO) -> bool>, pub close_all_tabs_and_workspaces: Option<unsafe extern "C" fn(ui: *mut UiO)>, pub close_all_tabs_in_workspace: Option<unsafe extern "C" fn(ui: *mut UiO)>, pub send_focus_event: Option<unsafe extern "C" fn(from: *mut TabI, event: TabFocusEvent, tt: *mut TheTruthO, object: TtIdT, selection: *const TtIdT, selection_n: u32)>, pub destroy_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>, pub find_tab: Option<unsafe extern "C" fn(type_name_hash: StrhashT, opt: *const DockingFindTabOptT) -> DockingFindTabT>, pub find_tabs: Option<unsafe extern "C" fn(type_name_hash: StrhashT, ta: *mut TempAllocatorI) -> *mut DockingFindTabT>, pub pin_type: Option<unsafe extern "C" fn(tab: *mut TabI) -> u32>, pub pin_object: Option<unsafe extern "C" fn(tab: *mut TabI, tt: *mut TheTruthO, root: TtIdT)>, pub toolbars_state: Option<unsafe extern "C" fn(tab: *mut TabI) -> *mut ToolbarsStateO>, pub clear_cached_ui: Option<unsafe extern "C" fn(tab: *mut TabI)>, pub tab_vt: Option<unsafe extern "C" fn(name_hash: StrhashT) -> *mut TabVt>, pub set_workspace_context_menu: Option<unsafe extern "C" fn(menu: DockingWorkspaceContextMenuF)>, pub set_current_workspace: Option<unsafe extern "C" fn(ui: *mut UiO, workspace_idx: u32)>,
}

Fields§

§create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>§add_ui: Option<unsafe extern "C" fn(ui: *mut UiO, r: RectT)>§remove_ui: Option<unsafe extern "C" fn(ui: *mut UiO)>§add_workspace: Option<unsafe extern "C" fn(ui: *mut UiO, name: *const c_char)>§close_focused_workspace: Option<unsafe extern "C" fn(ui: *mut UiO) -> bool>§num_workspaces: Option<unsafe extern "C" fn(ui: *mut UiO) -> u32>§current_workspace: Option<unsafe extern "C" fn(ui: *mut UiO) -> u32>§workspace_name: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32) -> *const c_char>§set_workspace_name: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32, name: *const c_char)>§workspace_icon: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32) -> u32>§set_workspace_icon: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32, icon: u32)>§workspace_root: Option<unsafe extern "C" fn(ui: *mut UiO, idx: u32) -> *mut DockingTabwellO>§hot_reload: Option<unsafe extern "C" fn()>§root: Option<unsafe extern "C" fn(ui: *mut UiO) -> *mut DockingTabwellO>§split_tabwell: Option<unsafe extern "C" fn(parent: *mut DockingTabwellO, split: DockingTabwellSplit, bias: f32, sibling: *mut *mut DockingTabwellO) -> *mut DockingTabwellO>§add_tab: Option<unsafe extern "C" fn(ui: *mut UiO, tabwell: *mut DockingTabwellO, tab: *mut TabI)>§remove_tab: Option<unsafe extern "C" fn(tab: *mut TabI)>§move_tab: Option<unsafe extern "C" fn(tab: *mut TabI, ui: *mut UiO, tabwell: *mut DockingTabwellO)>§clear: Option<unsafe extern "C" fn()>§feed_events: Option<unsafe extern "C" fn(events: *const InputEventT, count: u32, args: *mut DockingFeedEventsArgsT)>§ui: Option<unsafe extern "C" fn(ui: *mut UiO, uistyle: *const UiStyleT, ui_renderer: *mut UiRendererO, rect: RectT, ui_has_focus: bool, dropped_files: *const OsDroppedFileT, num_dropped_files: u32, context: *mut TabCreateContextT, settings_tt: *mut TheTruthO, settings_obj: TtIdT, default_padding: f32, workspaces_mode: DockingWorkspacesBarMode)>§is_dragging_tab: Option<unsafe extern "C" fn(pos: *mut Vec2T) -> *mut TabI>§should_create_new_ui_for_tab: Option<unsafe extern "C" fn(create_context: *mut TabCreateContextT, rect: *mut RectT) -> *mut TabI>§focused_tabwell: Option<unsafe extern "C" fn(ui: *mut UiO) -> *mut DockingTabwellO>§focused_tab: Option<unsafe extern "C" fn(ui: *mut UiO) -> *mut TabI>§tab_has_focus: Option<unsafe extern "C" fn(tab: *mut TabI) -> bool>§tabwell_info: Option<unsafe extern "C" fn(tw: *mut DockingTabwellO, ta: *mut TempAllocatorI) -> DockingTabwellInfoT>§tab_info: Option<unsafe extern "C" fn(tabs: *mut DockingTabInfoT, n: u32, filter_ui: *mut UiO, filter_visible: bool) -> u32>§root_history: Option<unsafe extern "C" fn(tab: *mut TabI, n: *mut u32) -> *mut TabVtRootT>§clear_root_history_with_greater_counter: Option<unsafe extern "C" fn(tab: *mut TabI, counter: u64)>§tab_ui: Option<unsafe extern "C" fn(tab: *mut TabI) -> *mut UiO>§can_remove_ui: Option<unsafe extern "C" fn(ui: *mut UiO) -> bool>§set_focus_tab: Option<unsafe extern "C" fn(ui: *mut UiO, tab: *mut TabI)>§close_focused_tab: Option<unsafe extern "C" fn(ui: *mut UiO) -> bool>§close_all_tabs_and_workspaces: Option<unsafe extern "C" fn(ui: *mut UiO)>§close_all_tabs_in_workspace: Option<unsafe extern "C" fn(ui: *mut UiO)>§send_focus_event: Option<unsafe extern "C" fn(from: *mut TabI, event: TabFocusEvent, tt: *mut TheTruthO, object: TtIdT, selection: *const TtIdT, selection_n: u32)>§destroy_truth: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>§find_tab: Option<unsafe extern "C" fn(type_name_hash: StrhashT, opt: *const DockingFindTabOptT) -> DockingFindTabT>§find_tabs: Option<unsafe extern "C" fn(type_name_hash: StrhashT, ta: *mut TempAllocatorI) -> *mut DockingFindTabT>§pin_type: Option<unsafe extern "C" fn(tab: *mut TabI) -> u32>§pin_object: Option<unsafe extern "C" fn(tab: *mut TabI, tt: *mut TheTruthO, root: TtIdT)>§toolbars_state: Option<unsafe extern "C" fn(tab: *mut TabI) -> *mut ToolbarsStateO>§clear_cached_ui: Option<unsafe extern "C" fn(tab: *mut TabI)>§tab_vt: Option<unsafe extern "C" fn(name_hash: StrhashT) -> *mut TabVt>§set_workspace_context_menu: Option<unsafe extern "C" fn(menu: DockingWorkspaceContextMenuF)>§set_current_workspace: Option<unsafe extern "C" fn(ui: *mut UiO, workspace_idx: u32)>

Implementations§

Source§

impl DockingApi

Source

pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)

Source

pub unsafe fn add_ui(&self, ui: *mut UiO, r: RectT)

Source

pub unsafe fn remove_ui(&self, ui: *mut UiO)

Source

pub unsafe fn add_workspace(&self, ui: *mut UiO, name: *const c_char)

Source

pub unsafe fn close_focused_workspace(&self, ui: *mut UiO) -> bool

Source

pub unsafe fn num_workspaces(&self, ui: *mut UiO) -> u32

Source

pub unsafe fn current_workspace(&self, ui: *mut UiO) -> u32

Source

pub unsafe fn workspace_name(&self, ui: *mut UiO, idx: u32) -> *const c_char

Source

pub unsafe fn set_workspace_name( &self, ui: *mut UiO, idx: u32, name: *const c_char, )

Source

pub unsafe fn workspace_icon(&self, ui: *mut UiO, idx: u32) -> u32

Source

pub unsafe fn set_workspace_icon(&self, ui: *mut UiO, idx: u32, icon: u32)

Source

pub unsafe fn workspace_root( &self, ui: *mut UiO, idx: u32, ) -> *mut DockingTabwellO

Source

pub unsafe fn hot_reload(&self)

Source

pub unsafe fn root(&self, ui: *mut UiO) -> *mut DockingTabwellO

Source

pub unsafe fn split_tabwell( &self, parent: *mut DockingTabwellO, split: DockingTabwellSplit, bias: f32, sibling: *mut *mut DockingTabwellO, ) -> *mut DockingTabwellO

Source

pub unsafe fn add_tab( &self, ui: *mut UiO, tabwell: *mut DockingTabwellO, tab: *mut TabI, )

Source

pub unsafe fn remove_tab(&self, tab: *mut TabI)

Source

pub unsafe fn move_tab( &self, tab: *mut TabI, ui: *mut UiO, tabwell: *mut DockingTabwellO, )

Source

pub unsafe fn clear(&self)

Source

pub unsafe fn feed_events( &self, events: *const InputEventT, count: u32, args: *mut DockingFeedEventsArgsT, )

Source

pub unsafe fn ui( &self, ui: *mut UiO, uistyle: *const UiStyleT, ui_renderer: *mut UiRendererO, rect: RectT, ui_has_focus: bool, dropped_files: *const OsDroppedFileT, num_dropped_files: u32, context: *mut TabCreateContextT, settings_tt: *mut TheTruthO, settings_obj: TtIdT, default_padding: f32, workspaces_mode: DockingWorkspacesBarMode, )

Source

pub unsafe fn is_dragging_tab(&self, pos: *mut Vec2T) -> *mut TabI

Source

pub unsafe fn should_create_new_ui_for_tab( &self, create_context: *mut TabCreateContextT, rect: *mut RectT, ) -> *mut TabI

Source

pub unsafe fn focused_tabwell(&self, ui: *mut UiO) -> *mut DockingTabwellO

Source

pub unsafe fn focused_tab(&self, ui: *mut UiO) -> *mut TabI

Source

pub unsafe fn tab_has_focus(&self, tab: *mut TabI) -> bool

Source

pub unsafe fn tabwell_info( &self, tw: *mut DockingTabwellO, ta: *mut TempAllocatorI, ) -> DockingTabwellInfoT

Source

pub unsafe fn tab_info( &self, tabs: *mut DockingTabInfoT, n: u32, filter_ui: *mut UiO, filter_visible: bool, ) -> u32

Source

pub unsafe fn root_history( &self, tab: *mut TabI, n: *mut u32, ) -> *mut TabVtRootT

Source

pub unsafe fn clear_root_history_with_greater_counter( &self, tab: *mut TabI, counter: u64, )

Source

pub unsafe fn tab_ui(&self, tab: *mut TabI) -> *mut UiO

Source

pub unsafe fn can_remove_ui(&self, ui: *mut UiO) -> bool

Source

pub unsafe fn set_focus_tab(&self, ui: *mut UiO, tab: *mut TabI)

Source

pub unsafe fn close_focused_tab(&self, ui: *mut UiO) -> bool

Source

pub unsafe fn close_all_tabs_and_workspaces(&self, ui: *mut UiO)

Source

pub unsafe fn close_all_tabs_in_workspace(&self, ui: *mut UiO)

Source

pub unsafe fn send_focus_event( &self, from: *mut TabI, event: TabFocusEvent, tt: *mut TheTruthO, object: TtIdT, selection: *const TtIdT, selection_n: u32, )

Source

pub unsafe fn destroy_truth(&self, tt: *mut TheTruthO)

Source

pub unsafe fn find_tab( &self, type_name_hash: StrhashT, opt: *const DockingFindTabOptT, ) -> DockingFindTabT

Source

pub unsafe fn find_tabs( &self, type_name_hash: StrhashT, ta: *mut TempAllocatorI, ) -> *mut DockingFindTabT

Source

pub unsafe fn pin_type(&self, tab: *mut TabI) -> u32

Source

pub unsafe fn pin_object(&self, tab: *mut TabI, tt: *mut TheTruthO, root: TtIdT)

Source

pub unsafe fn toolbars_state(&self, tab: *mut TabI) -> *mut ToolbarsStateO

Source

pub unsafe fn clear_cached_ui(&self, tab: *mut TabI)

Source

pub unsafe fn tab_vt(&self, name_hash: StrhashT) -> *mut TabVt

Source

pub unsafe fn set_workspace_context_menu( &self, menu: DockingWorkspaceContextMenuF, )

Source

pub unsafe fn set_current_workspace(&self, ui: *mut UiO, workspace_idx: u32)

Trait Implementations§

Source§

impl Api for DockingApi

Source§

impl Clone for DockingApi

Source§

fn clone(&self) -> DockingApi

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 DockingApi

Source§

fn default() -> DockingApi

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

impl Copy for DockingApi

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.