pub struct PaneLayout {
pub area: Rect,
/* private fields */
}Expand description
Concrete layout result for a solved pane tree.
Fields§
§area: RectImplementations§
Source§impl PaneLayout
impl PaneLayout
Sourcepub fn iter(&self) -> impl Iterator<Item = (PaneId, Rect)> + '_
pub fn iter(&self) -> impl Iterator<Item = (PaneId, Rect)> + '_
Iterate all solved rectangles in deterministic ID order.
Sourcepub fn classify_resize_grip(
&self,
node_id: PaneId,
pointer: PanePointerPosition,
inset_cells: f64,
) -> Option<PaneResizeGrip>
pub fn classify_resize_grip( &self, node_id: PaneId, pointer: PanePointerPosition, inset_cells: f64, ) -> Option<PaneResizeGrip>
Classify pointer hit-test against any edge/corner grip for a pane rect.
Sourcepub fn visual_rect(&self, node_id: PaneId) -> Option<Rect>
pub fn visual_rect(&self, node_id: PaneId) -> Option<Rect>
Default visual pane rectangle with baseline margin and padding applied.
This provides Tailwind-like breathing room around pane content by default while remaining deterministic and constraint-safe.
Sourcepub fn visual_rect_with_constraints(
&self,
node_id: PaneId,
constraints: &PaneConstraints,
) -> Option<Rect>
pub fn visual_rect_with_constraints( &self, node_id: PaneId, constraints: &PaneConstraints, ) -> Option<Rect>
Visual pane rectangle with custom margin/padding from constraints.
Trait Implementations§
Source§impl Clone for PaneLayout
impl Clone for PaneLayout
Source§fn clone(&self) -> PaneLayout
fn clone(&self) -> PaneLayout
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 PaneLayout
impl Debug for PaneLayout
Source§impl PartialEq for PaneLayout
impl PartialEq for PaneLayout
impl Eq for PaneLayout
impl StructuralPartialEq for PaneLayout
Auto Trait Implementations§
impl Freeze for PaneLayout
impl RefUnwindSafe for PaneLayout
impl Send for PaneLayout
impl Sync for PaneLayout
impl Unpin for PaneLayout
impl UnsafeUnpin for PaneLayout
impl UnwindSafe for PaneLayout
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