servoshell::desktop::window_traitTrait WindowPortsMethods
source pub trait WindowPortsMethods: WindowMethods {
Show 18 methods
// Required methods
fn get_events(&self) -> Vec<EmbedderEvent>;
fn id(&self) -> WindowId;
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 request_inner_size(&self, size: DeviceIntSize) -> Option<DeviceIntSize>;
fn new_glwindow(&self, event_loop: &ActiveEventLoop) -> Rc<dyn GlWindow>;
fn winit_window(&self) -> Option<&Window>;
fn toolbar_height(&self) -> Length<f32, DeviceIndependentPixel>;
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_position(&self, _point: DeviceIntPoint) { ... }
fn set_fullscreen(&self, _state: bool) { ... }
fn set_cursor(&self, _cursor: Cursor) { ... }
}