Struct floating_ui_dom::InlineOptions
source · pub struct InlineOptions {
pub x: Option<f64>,
pub y: Option<f64>,
pub padding: Option<Padding>,
}
Expand description
Options for Inline
.
Fields§
§x: Option<f64>
Viewport-relative x
coordinate to choose a ClientRect
.
Defaults to None
.
y: Option<f64>
Viewport-relative y
coordinate to choose a ClientRect
.
Defaults to None
.
padding: Option<Padding>
Represents the padding around a disjoined rect when choosing it.
Defaults to 2
on all sides.
Implementations§
source§impl InlineOptions
impl InlineOptions
sourcepub fn x(self, value: f64) -> InlineOptions
pub fn x(self, value: f64) -> InlineOptions
Set x
option.
sourcepub fn y(self, value: f64) -> InlineOptions
pub fn y(self, value: f64) -> InlineOptions
Set y
option.
sourcepub fn coords(self, value: Coords) -> InlineOptions
pub fn coords(self, value: Coords) -> InlineOptions
Set x
and y
options using Coords
.
sourcepub fn padding(self, value: Padding) -> InlineOptions
pub fn padding(self, value: Padding) -> InlineOptions
Set padding
option.
Trait Implementations§
source§impl Clone for InlineOptions
impl Clone for InlineOptions
source§fn clone(&self) -> InlineOptions
fn clone(&self) -> InlineOptions
Returns a copy 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 InlineOptions
impl Debug for InlineOptions
source§impl Default for InlineOptions
impl Default for InlineOptions
source§fn default() -> InlineOptions
fn default() -> InlineOptions
Returns the “default value” for a type. Read more
source§impl<'a, Element, Window> MiddlewareWithOptions<Element, Window, InlineOptions> for Inline<'a, Element, Window>
impl<'a, Element, Window> MiddlewareWithOptions<Element, Window, InlineOptions> for Inline<'a, Element, Window>
source§fn options(&self) -> &Derivable<'_, Element, Window, InlineOptions>
fn options(&self) -> &Derivable<'_, Element, Window, InlineOptions>
The options passed to this middleware.
Auto Trait Implementations§
impl Freeze for InlineOptions
impl RefUnwindSafe for InlineOptions
impl Send for InlineOptions
impl Sync for InlineOptions
impl Unpin for InlineOptions
impl UnwindSafe for InlineOptions
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