pub struct ViewportState {
pub scroll_offset: f32,
pub focus: Option<PanelId>,
pub window_start: usize,
pub collapsed: FxHashSet<PanelId>,
pub saved_constraints: FxHashMap<PanelId, Constraints>,
}Expand description
Viewport state for interactive layouts.
Fields§
§scroll_offset: f32Current horizontal scroll offset.
focus: Option<PanelId>The currently focused panel, if any.
window_start: usizeFirst visible panel index for Window/ActivePanel strategies.
collapsed: FxHashSet<PanelId>Panels that have been collapsed to zero size.
saved_constraints: FxHashMap<PanelId, Constraints>Original constraints saved before collapsing.
Trait Implementations§
Source§impl Debug for ViewportState
impl Debug for ViewportState
Source§impl Default for ViewportState
impl Default for ViewportState
Source§fn default() -> ViewportState
fn default() -> ViewportState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ViewportState
impl RefUnwindSafe for ViewportState
impl Send for ViewportState
impl Sync for ViewportState
impl Unpin for ViewportState
impl UnsafeUnpin for ViewportState
impl UnwindSafe for ViewportState
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