pub struct UseFloatingReturn {
pub x: UseStateHandle<f64>,
pub y: UseStateHandle<f64>,
pub placement: UseStateHandle<Placement>,
pub strategy: UseStateHandle<Strategy>,
pub middleware_data: UseStateHandle<MiddlewareData>,
pub is_positioned: UseStateHandle<bool>,
pub floating_styles: Rc<FloatingStyles>,
pub update: Callback<()>,
}Expand description
Return of use_floating.
Fields§
§x: UseStateHandle<f64>The x-coord of the floating element.
y: UseStateHandle<f64>The y-coord of the floating element.
placement: UseStateHandle<Placement>The stateful placement, which can be different from the initial placement passed as options.
strategy: UseStateHandle<Strategy>The strategy to use when positioning the floating element.
middleware_data: UseStateHandle<MiddlewareData>Additional data from middleware.
is_positioned: UseStateHandle<bool>Indicates if the floating element has been positioned.
floating_styles: Rc<FloatingStyles>CSS styles to apply to the floating element to position it.
update: Callback<()>The function to update floating position manually.
Auto Trait Implementations§
impl Freeze for UseFloatingReturn
impl !RefUnwindSafe for UseFloatingReturn
impl !Send for UseFloatingReturn
impl !Sync for UseFloatingReturn
impl Unpin for UseFloatingReturn
impl !UnwindSafe for UseFloatingReturn
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.