pub struct AnchorPlacement {
pub side: AnchorSide,
pub align: AnchorAlign,
pub gap: f64,
pub viewport_padding: f64,
pub flip: bool,
pub shift: bool,
pub match_width: bool,
pub arrow: Option<AnchorArrow>,
}Expand description
Finite anchored-layer policy, in viewport CSS pixels. Flip compares the requested and opposite side; shift clamps both axes to viewport padding. Neither policy changes the declared side or the logical anchor relation.
Fields§
§side: AnchorSide§align: AnchorAlign§gap: f64§viewport_padding: f64§flip: bool§shift: bool§match_width: boolSize the panel border box to the live anchor width before placement.
arrow: Option<AnchorArrow>Render a host-owned arrow using the collision-resolved side.
Implementations§
Source§impl AnchorPlacement
impl AnchorPlacement
Trait Implementations§
Source§impl Clone for AnchorPlacement
impl Clone for AnchorPlacement
impl Copy for AnchorPlacement
Source§impl Debug for AnchorPlacement
impl Debug for AnchorPlacement
Source§impl Default for AnchorPlacement
impl Default for AnchorPlacement
Source§impl PartialEq for AnchorPlacement
impl PartialEq for AnchorPlacement
impl StructuralPartialEq for AnchorPlacement
Auto Trait Implementations§
impl Forget for AnchorPlacement
impl Freeze for AnchorPlacement
impl Move for AnchorPlacement
impl RefUnwindSafe for AnchorPlacement
impl Send for AnchorPlacement
impl Sync for AnchorPlacement
impl Unpin for AnchorPlacement
impl UnsafeUnpin for AnchorPlacement
impl UnwindSafe for AnchorPlacement
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