Skip to main content

WindowMetricsService

Struct WindowMetricsService 

Source
pub struct WindowMetricsService { /* private fields */ }

Implementations§

Source§

impl WindowMetricsService

Source

pub fn set_inner_size(&mut self, window: AppWindowId, size: Size)

Source

pub fn inner_size(&self, window: AppWindowId) -> Option<Size>

Source

pub fn set_logical_position( &mut self, window: AppWindowId, position: WindowLogicalPosition, )

Source

pub fn logical_position( &self, window: AppWindowId, ) -> Option<WindowLogicalPosition>

Source

pub fn set_scale_factor(&mut self, window: AppWindowId, scale_factor: f32)

Source

pub fn scale_factor(&self, window: AppWindowId) -> Option<f32>

Source

pub fn set_focused(&mut self, window: AppWindowId, focused: bool)

Source

pub fn focused(&self, window: AppWindowId) -> Option<bool>

Source

pub fn set_prefers_reduced_motion( &mut self, window: AppWindowId, prefers: Option<bool>, )

Source

pub fn prefers_reduced_motion(&self, window: AppWindowId) -> Option<bool>

Source

pub fn prefers_reduced_motion_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_text_scale_factor( &mut self, window: AppWindowId, factor: Option<f32>, )

Source

pub fn text_scale_factor(&self, window: AppWindowId) -> Option<f32>

Source

pub fn text_scale_factor_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_prefers_reduced_transparency( &mut self, window: AppWindowId, prefers: Option<bool>, )

Source

pub fn prefers_reduced_transparency(&self, window: AppWindowId) -> Option<bool>

Source

pub fn prefers_reduced_transparency_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_accent_color(&mut self, window: AppWindowId, color: Option<Color>)

Source

pub fn accent_color(&self, window: AppWindowId) -> Option<Color>

Source

pub fn accent_color_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_color_scheme( &mut self, window: AppWindowId, scheme: Option<ColorScheme>, )

Source

pub fn color_scheme(&self, window: AppWindowId) -> Option<ColorScheme>

Source

pub fn color_scheme_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_contrast_preference( &mut self, window: AppWindowId, value: Option<ContrastPreference>, )

Source

pub fn contrast_preference( &self, window: AppWindowId, ) -> Option<ContrastPreference>

Source

pub fn contrast_preference_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_forced_colors_mode( &mut self, window: AppWindowId, value: Option<ForcedColorsMode>, )

Source

pub fn forced_colors_mode( &self, window: AppWindowId, ) -> Option<ForcedColorsMode>

Source

pub fn forced_colors_mode_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_safe_area_insets( &mut self, window: AppWindowId, insets: Option<Edges>, )

Source

pub fn safe_area_insets(&self, window: AppWindowId) -> Option<Edges>

Source

pub fn safe_area_insets_is_known(&self, window: AppWindowId) -> bool

Source

pub fn set_occlusion_insets( &mut self, window: AppWindowId, insets: Option<Edges>, )

Source

pub fn occlusion_insets(&self, window: AppWindowId) -> Option<Edges>

Source

pub fn occlusion_insets_is_known(&self, window: AppWindowId) -> bool

Source

pub fn inner_bounds(&self, window: AppWindowId) -> Option<Rect>

Source

pub fn apply_event(&mut self, window: AppWindowId, event: &Event)

Source

pub fn remove(&mut self, window: AppWindowId)

Trait Implementations§

Source§

impl Clone for WindowMetricsService

Source§

fn clone(&self) -> WindowMetricsService

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WindowMetricsService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for WindowMetricsService

Source§

fn default() -> WindowMetricsService

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.