pub trait WindowPortsMethods: WindowMethods {
Show 18 methods // Required methods fn get_events(&self) -> Vec<EmbedderEvent> ; fn id(&self) -> WindowId; fn has_events(&self) -> bool; fn device_hidpi_factor( &self ) -> Scale<f32, DeviceIndependentPixel, DevicePixel>; fn device_pixel_ratio_override( &self ) -> Option<Scale<f32, DeviceIndependentPixel, DevicePixel>>; fn page_height(&self) -> f32; fn get_fullscreen(&self) -> bool; fn queue_embedder_events_for_winit_event(&self, event: WindowEvent<'_>); fn is_animating(&self) -> bool; fn new_glwindow( &self, events_loop: &EventLoopWindowTarget<WakerEvent> ) -> Box<dyn GlWindow>; fn winit_window(&self) -> Option<&Window>; fn set_toolbar_height(&self, height: Length<f32, DeviceIndependentPixel>); // Provided methods fn hidpi_factor(&self) -> Scale<f32, DeviceIndependentPixel, DevicePixel> { ... } fn set_title(&self, _title: &str) { ... } fn set_inner_size(&self, _size: DeviceIntSize) { ... } fn set_position(&self, _point: DeviceIntPoint) { ... } fn set_fullscreen(&self, _state: bool) { ... } fn set_cursor(&self, _cursor: Cursor) { ... }
}

Required Methods§

Provided Methods§

Implementors§

source§

impl WindowPortsMethods for servo::headed_window::Window

source§

impl WindowPortsMethods for servo::headless_window::Window