Struct displayz::DisplayProperties
source · [−]pub struct DisplayProperties {
pub name: String,
pub string: String,
pub key: String,
pub active: bool,
pub primary: bool,
pub settings: Option<RefCell<DisplaySettings>>,
}
Expand description
Contains the properties of a display
Fields
name: String
string: String
key: String
active: bool
primary: bool
settings: Option<RefCell<DisplaySettings>>
Implementations
sourceimpl DisplayProperties
impl DisplayProperties
sourcepub fn from_winsafe(
device: &DISPLAY_DEVICE
) -> Result<DisplayProperties, DisplayPropertiesError>
pub fn from_winsafe(
device: &DISPLAY_DEVICE
) -> Result<DisplayProperties, DisplayPropertiesError>
Create a display properties struct from a winsafe display
sourcepub fn apply(&self) -> Result<(), DisplayPropertiesError>
pub fn apply(&self) -> Result<(), DisplayPropertiesError>
Apply the settings of the display
Trait Implementations
sourceimpl Clone for DisplayProperties
impl Clone for DisplayProperties
sourcefn clone(&self) -> DisplayProperties
fn clone(&self) -> DisplayProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DisplayProperties
impl Debug for DisplayProperties
sourceimpl Display for DisplayProperties
impl Display for DisplayProperties
sourceimpl PartialEq<DisplayProperties> for DisplayProperties
impl PartialEq<DisplayProperties> for DisplayProperties
sourcefn eq(&self, other: &DisplayProperties) -> bool
fn eq(&self, other: &DisplayProperties) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DisplayProperties) -> bool
fn ne(&self, other: &DisplayProperties) -> bool
This method tests for !=
.
impl Eq for DisplayProperties
impl StructuralEq for DisplayProperties
impl StructuralPartialEq for DisplayProperties
Auto Trait Implementations
impl !RefUnwindSafe for DisplayProperties
impl Send for DisplayProperties
impl !Sync for DisplayProperties
impl Unpin for DisplayProperties
impl UnwindSafe for DisplayProperties
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more