#[repr(C)]pub struct TabLayoutApi {
pub instantiate_layout: Option<unsafe extern "C" fn(ui: *mut UiO, tabwell: *mut DockingTabwellO, layout: *mut TabLayoutT, context: *mut TabCreateContextT, reuse_old_tabs: bool)>,
pub load_and_instantiate_layout: Option<unsafe extern "C" fn(settings_tt: *mut TheTruthO, app_tt: *mut TheTruthO, tabwell_id: TtIdT, ui: *mut UiO, tabwell: *mut DockingTabwellO, context: *mut TabCreateContextT, restore_roots: bool, reuse_old_tabs: bool)>,
pub save_instantiated_layout: Option<unsafe extern "C" fn(tt: *mut TheTruthO, root_tabwell: *mut DockingTabwellO, only_save_restorable_tabs: bool, undo_scope: TtUndoScopeT) -> TtIdT>,
pub save_layout: Option<unsafe extern "C" fn(tt: *mut TheTruthO, layout: *const TabLayoutT, only_save_restorable_tabs: bool, undo_scope: TtUndoScopeT) -> TtIdT>,
}
Fields§
§instantiate_layout: Option<unsafe extern "C" fn(ui: *mut UiO, tabwell: *mut DockingTabwellO, layout: *mut TabLayoutT, context: *mut TabCreateContextT, reuse_old_tabs: bool)>
§load_and_instantiate_layout: Option<unsafe extern "C" fn(settings_tt: *mut TheTruthO, app_tt: *mut TheTruthO, tabwell_id: TtIdT, ui: *mut UiO, tabwell: *mut DockingTabwellO, context: *mut TabCreateContextT, restore_roots: bool, reuse_old_tabs: bool)>
§save_instantiated_layout: Option<unsafe extern "C" fn(tt: *mut TheTruthO, root_tabwell: *mut DockingTabwellO, only_save_restorable_tabs: bool, undo_scope: TtUndoScopeT) -> TtIdT>
§save_layout: Option<unsafe extern "C" fn(tt: *mut TheTruthO, layout: *const TabLayoutT, only_save_restorable_tabs: bool, undo_scope: TtUndoScopeT) -> TtIdT>
Implementations§
Source§impl TabLayoutApi
impl TabLayoutApi
pub unsafe fn instantiate_layout( &self, ui: *mut UiO, tabwell: *mut DockingTabwellO, layout: *mut TabLayoutT, context: *mut TabCreateContextT, reuse_old_tabs: bool, )
pub unsafe fn load_and_instantiate_layout( &self, settings_tt: *mut TheTruthO, app_tt: *mut TheTruthO, tabwell_id: TtIdT, ui: *mut UiO, tabwell: *mut DockingTabwellO, context: *mut TabCreateContextT, restore_roots: bool, reuse_old_tabs: bool, )
pub unsafe fn save_instantiated_layout( &self, tt: *mut TheTruthO, root_tabwell: *mut DockingTabwellO, only_save_restorable_tabs: bool, undo_scope: TtUndoScopeT, ) -> TtIdT
pub unsafe fn save_layout( &self, tt: *mut TheTruthO, layout: *const TabLayoutT, only_save_restorable_tabs: bool, undo_scope: TtUndoScopeT, ) -> TtIdT
Trait Implementations§
Source§impl Clone for TabLayoutApi
impl Clone for TabLayoutApi
Source§fn clone(&self) -> TabLayoutApi
fn clone(&self) -> TabLayoutApi
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 TabLayoutApi
impl Default for TabLayoutApi
Source§fn default() -> TabLayoutApi
fn default() -> TabLayoutApi
Returns the “default value” for a type. Read more
impl Copy for TabLayoutApi
Auto Trait Implementations§
impl Freeze for TabLayoutApi
impl RefUnwindSafe for TabLayoutApi
impl Send for TabLayoutApi
impl Sync for TabLayoutApi
impl Unpin for TabLayoutApi
impl UnwindSafe for TabLayoutApi
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