pub struct DisplayInfo {
pub layer_stack: Option<u32>,
pub display_id: Option<i32>,
pub logical_width: Option<i32>,
pub logical_height: Option<i32>,
pub transform_inverse: Option<Transform>,
pub transform: Option<Transform>,
pub receives_input: Option<bool>,
pub is_secure: Option<bool>,
pub is_primary: Option<bool>,
pub is_virtual: Option<bool>,
pub rotation_flags: Option<i32>,
pub transform_hint: Option<i32>,
}
Fields§
§layer_stack: Option<u32>
§display_id: Option<i32>
§logical_width: Option<i32>
§logical_height: Option<i32>
§transform_inverse: Option<Transform>
§transform: Option<Transform>
§receives_input: Option<bool>
§is_secure: Option<bool>
§is_primary: Option<bool>
§is_virtual: Option<bool>
§rotation_flags: Option<i32>
§transform_hint: Option<i32>
Implementations§
Source§impl DisplayInfo
impl DisplayInfo
Sourcepub fn layer_stack(&self) -> u32
pub fn layer_stack(&self) -> u32
Returns the value of layer_stack
, or the default value if layer_stack
is unset.
Sourcepub fn display_id(&self) -> i32
pub fn display_id(&self) -> i32
Returns the value of display_id
, or the default value if display_id
is unset.
Sourcepub fn logical_width(&self) -> i32
pub fn logical_width(&self) -> i32
Returns the value of logical_width
, or the default value if logical_width
is unset.
Sourcepub fn logical_height(&self) -> i32
pub fn logical_height(&self) -> i32
Returns the value of logical_height
, or the default value if logical_height
is unset.
Sourcepub fn receives_input(&self) -> bool
pub fn receives_input(&self) -> bool
Returns the value of receives_input
, or the default value if receives_input
is unset.
Sourcepub fn is_secure(&self) -> bool
pub fn is_secure(&self) -> bool
Returns the value of is_secure
, or the default value if is_secure
is unset.
Sourcepub fn is_primary(&self) -> bool
pub fn is_primary(&self) -> bool
Returns the value of is_primary
, or the default value if is_primary
is unset.
Sourcepub fn is_virtual(&self) -> bool
pub fn is_virtual(&self) -> bool
Returns the value of is_virtual
, or the default value if is_virtual
is unset.
Sourcepub fn rotation_flags(&self) -> i32
pub fn rotation_flags(&self) -> i32
Returns the value of rotation_flags
, or the default value if rotation_flags
is unset.
Sourcepub fn transform_hint(&self) -> i32
pub fn transform_hint(&self) -> i32
Returns the value of transform_hint
, or the default value if transform_hint
is unset.
Trait Implementations§
Source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
Source§fn clone(&self) -> DisplayInfo
fn clone(&self) -> DisplayInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DisplayInfo
impl Debug for DisplayInfo
Source§impl Default for DisplayInfo
impl Default for DisplayInfo
Source§impl Message for DisplayInfo
impl Message for DisplayInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.