pub struct WindowMetricsService { /* private fields */ }Implementations§
Source§impl WindowMetricsService
impl WindowMetricsService
pub fn set_inner_size(&mut self, window: AppWindowId, size: Size)
pub fn inner_size(&self, window: AppWindowId) -> Option<Size>
pub fn set_logical_position( &mut self, window: AppWindowId, position: WindowLogicalPosition, )
pub fn logical_position( &self, window: AppWindowId, ) -> Option<WindowLogicalPosition>
pub fn set_scale_factor(&mut self, window: AppWindowId, scale_factor: f32)
pub fn scale_factor(&self, window: AppWindowId) -> Option<f32>
pub fn set_focused(&mut self, window: AppWindowId, focused: bool)
pub fn focused(&self, window: AppWindowId) -> Option<bool>
pub fn set_prefers_reduced_motion( &mut self, window: AppWindowId, prefers: Option<bool>, )
pub fn prefers_reduced_motion(&self, window: AppWindowId) -> Option<bool>
pub fn prefers_reduced_motion_is_known(&self, window: AppWindowId) -> bool
pub fn set_text_scale_factor( &mut self, window: AppWindowId, factor: Option<f32>, )
pub fn text_scale_factor(&self, window: AppWindowId) -> Option<f32>
pub fn text_scale_factor_is_known(&self, window: AppWindowId) -> bool
pub fn set_prefers_reduced_transparency( &mut self, window: AppWindowId, prefers: Option<bool>, )
pub fn prefers_reduced_transparency(&self, window: AppWindowId) -> Option<bool>
pub fn prefers_reduced_transparency_is_known(&self, window: AppWindowId) -> bool
pub fn set_accent_color(&mut self, window: AppWindowId, color: Option<Color>)
pub fn accent_color(&self, window: AppWindowId) -> Option<Color>
pub fn accent_color_is_known(&self, window: AppWindowId) -> bool
pub fn set_color_scheme( &mut self, window: AppWindowId, scheme: Option<ColorScheme>, )
pub fn color_scheme(&self, window: AppWindowId) -> Option<ColorScheme>
pub fn color_scheme_is_known(&self, window: AppWindowId) -> bool
pub fn set_contrast_preference( &mut self, window: AppWindowId, value: Option<ContrastPreference>, )
pub fn contrast_preference( &self, window: AppWindowId, ) -> Option<ContrastPreference>
pub fn contrast_preference_is_known(&self, window: AppWindowId) -> bool
pub fn set_forced_colors_mode( &mut self, window: AppWindowId, value: Option<ForcedColorsMode>, )
pub fn forced_colors_mode( &self, window: AppWindowId, ) -> Option<ForcedColorsMode>
pub fn forced_colors_mode_is_known(&self, window: AppWindowId) -> bool
pub fn set_safe_area_insets( &mut self, window: AppWindowId, insets: Option<Edges>, )
pub fn safe_area_insets(&self, window: AppWindowId) -> Option<Edges>
pub fn safe_area_insets_is_known(&self, window: AppWindowId) -> bool
pub fn set_occlusion_insets( &mut self, window: AppWindowId, insets: Option<Edges>, )
pub fn occlusion_insets(&self, window: AppWindowId) -> Option<Edges>
pub fn occlusion_insets_is_known(&self, window: AppWindowId) -> bool
pub fn inner_bounds(&self, window: AppWindowId) -> Option<Rect>
pub fn apply_event(&mut self, window: AppWindowId, event: &Event)
pub fn remove(&mut self, window: AppWindowId)
Trait Implementations§
Source§impl Clone for WindowMetricsService
impl Clone for WindowMetricsService
Source§fn clone(&self) -> WindowMetricsService
fn clone(&self) -> WindowMetricsService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowMetricsService
impl Debug for WindowMetricsService
Source§impl Default for WindowMetricsService
impl Default for WindowMetricsService
Source§fn default() -> WindowMetricsService
fn default() -> WindowMetricsService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowMetricsService
impl RefUnwindSafe for WindowMetricsService
impl Send for WindowMetricsService
impl Sync for WindowMetricsService
impl Unpin for WindowMetricsService
impl UnsafeUnpin for WindowMetricsService
impl UnwindSafe for WindowMetricsService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more