Struct windows::UI::ViewManagement::ViewModePreferences
pub struct ViewModePreferences(/* private fields */);
Implementations§
§impl ViewModePreferences
impl ViewModePreferences
pub fn ViewSizePreference(&self) -> Result<ViewSizePreference>
pub fn SetViewSizePreference(&self, value: ViewSizePreference) -> Result<()>
pub fn CustomSize(&self) -> Result<Size>
pub fn SetCustomSize(&self, value: Size) -> Result<()>
pub fn CreateDefault(mode: ApplicationViewMode) -> Result<ViewModePreferences>
Trait Implementations§
§impl Clone for ViewModePreferences
impl Clone for ViewModePreferences
§fn clone(&self) -> ViewModePreferences
fn clone(&self) -> ViewModePreferences
Returns a copy 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 more§impl Debug for ViewModePreferences
impl Debug for ViewModePreferences
§impl From<&ViewModePreferences> for &IInspectable
impl From<&ViewModePreferences> for &IInspectable
§fn from(value: &ViewModePreferences) -> Self
fn from(value: &ViewModePreferences) -> Self
Converts to this type from the input type.
§impl From<&ViewModePreferences> for &IUnknown
impl From<&ViewModePreferences> for &IUnknown
§fn from(value: &ViewModePreferences) -> Self
fn from(value: &ViewModePreferences) -> Self
Converts to this type from the input type.
§impl From<ViewModePreferences> for IInspectable
impl From<ViewModePreferences> for IInspectable
§fn from(value: ViewModePreferences) -> Self
fn from(value: ViewModePreferences) -> Self
Converts to this type from the input type.
§impl From<ViewModePreferences> for IUnknown
impl From<ViewModePreferences> for IUnknown
§fn from(value: ViewModePreferences) -> Self
fn from(value: ViewModePreferences) -> Self
Converts to this type from the input type.
§impl Interface for ViewModePreferences
impl Interface for ViewModePreferences
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for ViewModePreferences
impl PartialEq for ViewModePreferences
§fn eq(&self, other: &ViewModePreferences) -> bool
fn eq(&self, other: &ViewModePreferences) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ViewModePreferences
impl StructuralPartialEq for ViewModePreferences
Auto Trait Implementations§
impl RefUnwindSafe for ViewModePreferences
impl !Send for ViewModePreferences
impl !Sync for ViewModePreferences
impl Unpin for ViewModePreferences
impl UnwindSafe for ViewModePreferences
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