Trait floating_ui_utils::VirtualElementFactory

source ·
pub trait VirtualElementFactory<Element: 'static>:
    Clone
    + PartialEq
    + Sized
    + 'static {
    // Required methods
    fn get_bounding_client_rect(&self) -> ClientRectObject;
    fn get_client_rects(&self) -> Option<Vec<ClientRectObject>>;
    fn context_element(&self) -> Option<Element>;
}
Expand description

Custom positioning reference element.

See the Rust Floating UI book for more documentation.

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§