Struct smithay_client_toolkit::output::OutputInfo[][src]

pub struct OutputInfo {
    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>,
}

Compiled information about an output

Fields

The model name of this output as advertized by the server

The make name of this output as advertized by the server

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 dimensions of this output, in unspecified units

The subpixel layout for this output

The current transformation applied to this output

You can pre-render your buffers taking this information into account and advertizing it via wl_buffer.set_tranform for better performances.

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.

Possible modes for an output

Trait Implementations

impl Clone for OutputInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for OutputInfo
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for OutputInfo

impl Sync for OutputInfo