Trait maplibre::window::HeadedMapWindow

source ·
pub trait HeadedMapWindow: MapWindow {
    type WindowHandle: HasWindowHandle + HasDisplayHandle + Sync;

    // Required methods
    fn handle(&self) -> &Self::WindowHandle;
    fn request_redraw(&self);
    fn scale_factor(&self) -> f64;
    fn id(&self) -> u64;
}
Expand description

Window which references a physical RawWindow. This is only implemented by headed windows and not by headless windows.

Required Associated Types§

source

type WindowHandle: HasWindowHandle + HasDisplayHandle + Sync

Required Methods§

source

fn handle(&self) -> &Self::WindowHandle

source

fn request_redraw(&self)

source

fn scale_factor(&self) -> f64

source

fn id(&self) -> u64

Implementors§