pub struct WindowClass {
pub class_id: ImGuiID,
pub parent_viewport_id: ImGuiID,
pub focus_route_parent_window_id: ImGuiID,
pub docking_always_tab_bar: bool,
pub docking_allow_unclassed: bool,
}Expand description
Window class for docking configuration
Fields§
§class_id: ImGuiIDUser data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each others.
parent_viewport_id: ImGuiIDHint for the platform backend. -1: use default. 0: request platform backend to not parent the platform. != 0: request platform backend to create a parent<>child relationship between the platform windows.
focus_route_parent_window_id: ImGuiIDID of parent window for shortcut focus route evaluation
docking_always_tab_bar: boolSet to true to enforce single floating windows of this class always having their own docking node
docking_allow_unclassed: boolSet to true to allow windows of this class to be docked/merged with an unclassed window
Implementations§
Source§impl WindowClass
impl WindowClass
Sourcepub fn parent_viewport_id(self, id: ImGuiID) -> Self
pub fn parent_viewport_id(self, id: ImGuiID) -> Self
Sets the parent viewport ID
Sourcepub fn focus_route_parent_window_id(self, id: ImGuiID) -> Self
pub fn focus_route_parent_window_id(self, id: ImGuiID) -> Self
Sets the focus route parent window ID
Sourcepub fn docking_always_tab_bar(self, enabled: bool) -> Self
pub fn docking_always_tab_bar(self, enabled: bool) -> Self
Enables always showing tab bar for single floating windows
Sourcepub fn docking_allow_unclassed(self, enabled: bool) -> Self
pub fn docking_allow_unclassed(self, enabled: bool) -> Self
Allows docking with unclassed windows
Trait Implementations§
Source§impl Clone for WindowClass
impl Clone for WindowClass
Source§fn clone(&self) -> WindowClass
fn clone(&self) -> WindowClass
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 Debug for WindowClass
impl Debug for WindowClass
Auto Trait Implementations§
impl Freeze for WindowClass
impl RefUnwindSafe for WindowClass
impl Send for WindowClass
impl Sync for WindowClass
impl Unpin for WindowClass
impl UnwindSafe for WindowClass
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