pub struct OverlayOptions {
pub width: Option<SizeValue>,
pub min_width: Option<usize>,
pub max_height: Option<SizeValue>,
pub anchor: Option<OverlayAnchor>,
pub offset_x: Option<isize>,
pub offset_y: Option<isize>,
pub row: Option<SizeValue>,
pub col: Option<SizeValue>,
pub margin: Option<OverlayMargin>,
pub non_capturing: bool,
}Expand description
Options for overlay positioning and sizing.
Fields§
§width: Option<SizeValue>Width in columns, or percentage of terminal width
min_width: Option<usize>Minimum width in columns
max_height: Option<SizeValue>Maximum height in rows, or percentage of terminal height
anchor: Option<OverlayAnchor>Anchor point for positioning (default: Center)
offset_x: Option<isize>Horizontal offset from anchor position (positive = right)
offset_y: Option<isize>Vertical offset from anchor position (positive = down)
row: Option<SizeValue>Row position: absolute number, or percentage from top
col: Option<SizeValue>Column position: absolute number, or percentage from left
margin: Option<OverlayMargin>§non_capturing: boolIf true, don’t capture keyboard focus when shown
Trait Implementations§
Source§impl Clone for OverlayOptions
impl Clone for OverlayOptions
Source§fn clone(&self) -> OverlayOptions
fn clone(&self) -> OverlayOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OverlayOptions
impl Debug for OverlayOptions
Source§impl Default for OverlayOptions
impl Default for OverlayOptions
Source§fn default() -> OverlayOptions
fn default() -> OverlayOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OverlayOptions
impl RefUnwindSafe for OverlayOptions
impl Send for OverlayOptions
impl Sync for OverlayOptions
impl Unpin for OverlayOptions
impl UnsafeUnpin for OverlayOptions
impl UnwindSafe for OverlayOptions
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