Struct windows::Graphics::Display::DisplayProperties
pub struct DisplayProperties;
Implementations§
§impl DisplayProperties
impl DisplayProperties
pub fn CurrentOrientation() -> Result<DisplayOrientations>
pub fn NativeOrientation() -> Result<DisplayOrientations>
pub fn AutoRotationPreferences() -> Result<DisplayOrientations>
pub fn SetAutoRotationPreferences(value: DisplayOrientations) -> Result<()>
pub fn OrientationChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<DisplayPropertiesEventHandler>,
pub fn RemoveOrientationChanged(token: EventRegistrationToken) -> Result<()>
pub fn ResolutionScale() -> Result<ResolutionScale>
pub fn LogicalDpi() -> Result<f32>
pub fn LogicalDpiChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<DisplayPropertiesEventHandler>,
pub fn RemoveLogicalDpiChanged(token: EventRegistrationToken) -> Result<()>
pub fn StereoEnabled() -> Result<bool>
pub fn StereoEnabledChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<DisplayPropertiesEventHandler>,
pub fn RemoveStereoEnabledChanged(token: EventRegistrationToken) -> Result<()>
pub fn GetColorProfileAsync() -> Result<IAsyncOperation<IRandomAccessStream>>
pub fn ColorProfileChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<DisplayPropertiesEventHandler>,
pub fn RemoveColorProfileChanged(token: EventRegistrationToken) -> Result<()>
pub fn DisplayContentsInvalidated<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<DisplayPropertiesEventHandler>,
pub fn RemoveDisplayContentsInvalidated( token: EventRegistrationToken, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for DisplayProperties
impl RefUnwindSafe for DisplayProperties
impl Send for DisplayProperties
impl Sync for DisplayProperties
impl Unpin for DisplayProperties
impl UnwindSafe for DisplayProperties
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