Expand description
Rust port of Floating UI.
This is the platform-agnostic core of Floating UI, exposing the main compute_position
function but no platform interface logic.
See the Rust Floating UI book for more documenation.
See @floating-ui/core for the original package.
Modules§
- middleware
- Middleware implementations for
compute_position
.
Structs§
- Compute
Position Config - Options for
compute_position
. - Compute
Position Return - Return of
compute_position
. - Convert
Offset Parent Relative Rect ToViewport Relative Rect Args - Arguments for
Platform::convert_offset_parent_relative_rect_to_viewport_relative_rect
. - Detect
Overflow Options - Options for
detect_overflow
. - Elements
- GetClipping
Rect Args - Arguments for
Platform::get_clipping_rect
. - GetElement
Rects Args - Arguments for
Platform::get_element_rects
. - Middleware
Data - Data stored by middleware.
- Middleware
Return - Return of
Middleware::compute
. - Middleware
State - State passed to
Middleware::compute
. - Reset
Value
Enums§
Traits§
- Middleware
- Middleware used by
compute_position
. - Middleware
Factory - Middleware used by
compute_position
. - Middleware
With Options - Middleware with options.
- Platform
- Platform interface methods to work with the current platform.
Functions§
- compute_
coords_ from_ placement - Computes the
x
andy
coordinates that will place the floating element next to a given reference element based on aplacement
. - compute_
position - Computes the
x
andy
coordinates that will place the floating element next to a given reference element. - detect_
overflow - Resolves with an object of overflow side offsets that determine how much the element is overflowing a given clipping boundary on each side.