Crate floating_ui_core
source ·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 @floating-ui/core for the original package.
Modules§
- Middleware implementations for
compute_position.
Structs§
- Options for
compute_position. - Return of
compute_position. - Options for
detect_overflow. - Arguments for
Platform::get_clipping_rect. - Arguments for
Platform::get_element_rects. - Data stored by middleware.
- Return of
Middleware::compute. - State passed to
Middleware::compute.
Enums§
Traits§
- Middleware used by
compute_position. - Middleware with options.
- Platform interface methods to work with the current platform.
Functions§
- Computes the
xandycoordinates that will place the floating element next to a given reference element based on aplacement. - Computes the
xandycoordinates that will place the floating element next to a given reference element. - Resolves with an object of overflow side offsets that determine how much the element is overflowing a given clipping boundary on each side.