Struct smithay_client_toolkit::output::OutputInfo [−][src]
pub struct OutputInfo { pub id: u32, pub model: String, pub make: String, pub location: (i32, i32), pub physical_size: (i32, i32), pub subpixel: Subpixel, pub transform: Transform, pub scale_factor: i32, pub modes: Vec<Mode>, pub obsolete: bool, }
Compiled information about an output
Fields
id: u32
The ID of this output as a global
model: String
The model name of this output as advertised by the server
make: String
The make name of this output as advertised by the server
location: (i32, i32)
Location of the top-left corner of this output in compositor space
Note that the compositor may decide to always report (0,0) if it decides clients are not allowed to know this information.
physical_size: (i32, i32)
Physical dimensions of this output, in unspecified units
subpixel: Subpixel
The subpixel layout for this output
transform: Transform
The current transformation applied to this output
You can pre-render your buffers taking this information
into account and advertising it via wl_buffer.set_tranform
for better performances.
scale_factor: i32
The scaling factor of this output
Any buffer whose scaling factor does not match the one of the output it is displayed on will be rescaled accordingly.
For example, a buffer of scaling factor 1 will be doubled in size if the output scaling factor is 2.
modes: Vec<Mode>
Possible modes for an output
obsolete: bool
Has this output been unadvertized by the registry
If this is the case, it has become inert, you might want to
call its release()
method if you don’t plan to use it any
longer.
Trait Implementations
impl Clone for OutputInfo
[src]
fn clone(&self) -> OutputInfo
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OutputInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for OutputInfo
impl Send for OutputInfo
impl Sync for OutputInfo
impl Unpin for OutputInfo
impl UnwindSafe for OutputInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,