pub struct FloatingElementStyle {
pub offset: Vector2,
pub expand: Dimensions,
pub z_index: i16,
pub attach_point: FloatingAttachPointType,
pub pointer_capture_mode: PointerCaptureMode,
}Expand description
Floating behavior for overlays/tooltips/popups.
Fields§
§offset: Vector2Position offset relative to attachment point.
expand: DimensionsAdditional expansion of floating bounds.
z_index: i16Z-order offset used during rendering.
attach_point: FloatingAttachPointTypeAnchor point on the parent.
pointer_capture_mode: PointerCaptureModePointer capture behavior.
Trait Implementations§
Source§impl Clone for FloatingElementStyle
impl Clone for FloatingElementStyle
Source§fn clone(&self) -> FloatingElementStyle
fn clone(&self) -> FloatingElementStyle
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 moreimpl Copy for FloatingElementStyle
Source§impl Debug for FloatingElementStyle
impl Debug for FloatingElementStyle
Source§impl Default for FloatingElementStyle
impl Default for FloatingElementStyle
Source§impl PartialEq for FloatingElementStyle
impl PartialEq for FloatingElementStyle
Source§fn eq(&self, other: &FloatingElementStyle) -> bool
fn eq(&self, other: &FloatingElementStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FloatingElementStyle
Auto Trait Implementations§
impl Freeze for FloatingElementStyle
impl RefUnwindSafe for FloatingElementStyle
impl Send for FloatingElementStyle
impl Sync for FloatingElementStyle
impl Unpin for FloatingElementStyle
impl UnsafeUnpin for FloatingElementStyle
impl UnwindSafe for FloatingElementStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.