pub struct ArrowLayout {
pub side: Side,
pub offset: Px,
pub alignment_offset: Px,
pub center_offset: Px,
}Fields§
§side: SideWhich side of the floating panel the arrow should attach to.
offset: PxOffset along the arrow’s axis inside the floating panel (x for Top/Bottom, y for Left/Right).
alignment_offset: PxThe alignment-axis translation applied to the panel to keep the arrow pointing at the anchor when the anchor is too small (Radix/Floating behavior).
center_offset: PxSigned center delta between the ideal arrow center point and the clamped offset.
This matches Floating UI’s centerOffset and is used by Radix to determine whether the arrow
should be hidden (shouldHideArrow).
Trait Implementations§
Source§impl Clone for ArrowLayout
impl Clone for ArrowLayout
Source§fn clone(&self) -> ArrowLayout
fn clone(&self) -> ArrowLayout
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 ArrowLayout
impl Debug for ArrowLayout
Source§impl PartialEq for ArrowLayout
impl PartialEq for ArrowLayout
impl Copy for ArrowLayout
impl StructuralPartialEq for ArrowLayout
Auto Trait Implementations§
impl Freeze for ArrowLayout
impl RefUnwindSafe for ArrowLayout
impl Send for ArrowLayout
impl Sync for ArrowLayout
impl Unpin for ArrowLayout
impl UnsafeUnpin for ArrowLayout
impl UnwindSafe for ArrowLayout
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