pub struct OverlayConstraints {
pub min_width: u16,
pub max_height: u16,
pub margin: u16,
pub offset_x: i16,
pub offset_y: i16,
pub visible: Option<fn(u16, u16) -> bool>,
}Expand description
Constraints applied when computing an overlay’s final position.
Fields§
§min_width: u16Minimum width in columns.
max_height: u16Maximum height in rows.
margin: u16Margin from screen edges when using an anchor.
offset_x: i16Horizontal offset applied after computing the anchor position.
offset_y: i16Vertical offset applied after computing the anchor position.
visible: Option<fn(u16, u16) -> bool>Optional visibility predicate: (cols, rows) -> bool.
Trait Implementations§
Source§impl Clone for OverlayConstraints
impl Clone for OverlayConstraints
Source§fn clone(&self) -> OverlayConstraints
fn clone(&self) -> OverlayConstraints
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 moreAuto Trait Implementations§
impl Freeze for OverlayConstraints
impl RefUnwindSafe for OverlayConstraints
impl Send for OverlayConstraints
impl Sync for OverlayConstraints
impl Unpin for OverlayConstraints
impl UnsafeUnpin for OverlayConstraints
impl UnwindSafe for OverlayConstraints
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