pub struct DockNode<'ui> { /* private fields */ }Expand description
Opaque reference to an ImGui dock node, valid for the duration of the current frame.
This wraps a raw ImGuiDockNode* and exposes a few read-only queries.
Instances are created via DockBuilder::node() / DockBuilder::central_node()
with a lifetime tied to a Ui reference.
Implementations§
Source§impl<'ui> DockNode<'ui>
impl<'ui> DockNode<'ui>
Sourcepub fn is_central(&self) -> bool
pub fn is_central(&self) -> bool
Returns true if this node is the central node of its hierarchy
Sourcepub fn is_dock_space(&self) -> bool
pub fn is_dock_space(&self) -> bool
Returns true if this node is a dock space
Sourcepub fn is_floating(&self) -> bool
pub fn is_floating(&self) -> bool
Returns true if this node is a floating node
Returns true if this node has its tab bar hidden
Sourcepub fn is_no_tab_bar(&self) -> bool
pub fn is_no_tab_bar(&self) -> bool
Returns true if this node has no tab bar
Returns the menu button ID for this node
Sourcepub fn root<'a>(&self, _ui: &'a Ui) -> Option<DockNode<'a>>
pub fn root<'a>(&self, _ui: &'a Ui) -> Option<DockNode<'a>>
Returns the root node of this dock tree
Sourcepub fn is_in_hierarchy_of(&self, parent: &DockNode<'_>) -> bool
pub fn is_in_hierarchy_of(&self, parent: &DockNode<'_>) -> bool
Returns true if self is in the hierarchy of parent
Auto Trait Implementations§
impl<'ui> Freeze for DockNode<'ui>
impl<'ui> !RefUnwindSafe for DockNode<'ui>
impl<'ui> !Send for DockNode<'ui>
impl<'ui> !Sync for DockNode<'ui>
impl<'ui> Unpin for DockNode<'ui>
impl<'ui> !UnwindSafe for DockNode<'ui>
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