Mir
Public Member Functions | Public Attributes | List of all members
mir::graphics::DisplayConfigurationOutput Struct Reference

Configuration information for a display output. More...

#include <display_configuration.h>

Public Member Functions

geometry::Rectangle extents () const
 The logical rectangle occupied by the output, based on its position, current mode and orientation (rotation) More...
 
bool valid () const
 

Public Attributes

DisplayConfigurationOutputId id
 The output's id. More...
 
DisplayConfigurationCardId card_id
 The id of the card the output is connected to. More...
 
DisplayConfigurationOutputType type
 The type of the output. More...
 
std::vector< MirPixelFormatpixel_formats
 The pixel formats supported by the output. More...
 
std::vector< DisplayConfigurationModemodes
 The modes supported by the output. More...
 
uint32_t preferred_mode_index
 The index in the 'modes' vector of the preferred output mode. More...
 
geometry::Size physical_size_mm
 The physical size of the output. More...
 
bool connected
 Whether the output is connected. More...
 
bool used
 Whether the output is used in the configuration. More...
 
geometry::Point top_left
 The top left point of this output in the virtual coordinate space. More...
 
uint32_t current_mode_index
 The index in the 'modes' vector of the current output mode. More...
 
MirPixelFormat current_format
 The current output pixel format. More...
 
MirPowerMode power_mode
 Current power mode. More...
 
MirOrientation orientation
 
float scale
 Requested scale factor for this output, for HiDPI support. More...
 
MirFormFactor form_factor
 Form factor of this output; phone display, tablet, monitor, TV, projector... More...
 
MirSubpixelArrangement subpixel_arrangement
 Subpixel arrangement of this output. More...
 
GammaCurves gamma
 The current gamma for the display. More...
 
MirOutputGammaSupported gamma_supported
 
std::vector< uint8_t > edid
 EDID of the display, if non-empty. More...
 

Detailed Description

Configuration information for a display output.

Member Function Documentation

◆ extents()

geometry::Rectangle mir::graphics::DisplayConfigurationOutput::extents ( ) const

The logical rectangle occupied by the output, based on its position, current mode and orientation (rotation)

◆ valid()

bool mir::graphics::DisplayConfigurationOutput::valid ( ) const

Member Data Documentation

◆ card_id

DisplayConfigurationCardId mir::graphics::DisplayConfigurationOutput::card_id

The id of the card the output is connected to.

◆ connected

bool mir::graphics::DisplayConfigurationOutput::connected

Whether the output is connected.

◆ current_format

MirPixelFormat mir::graphics::DisplayConfigurationOutput::current_format

The current output pixel format.

A matching entry should be found in the 'pixel_formats' vector

◆ current_mode_index

uint32_t mir::graphics::DisplayConfigurationOutput::current_mode_index

The index in the 'modes' vector of the current output mode.

◆ edid

std::vector<uint8_t> mir::graphics::DisplayConfigurationOutput::edid

EDID of the display, if non-empty.

◆ form_factor

MirFormFactor mir::graphics::DisplayConfigurationOutput::form_factor

Form factor of this output; phone display, tablet, monitor, TV, projector...

◆ gamma

GammaCurves mir::graphics::DisplayConfigurationOutput::gamma

The current gamma for the display.

◆ gamma_supported

MirOutputGammaSupported mir::graphics::DisplayConfigurationOutput::gamma_supported

◆ id

DisplayConfigurationOutputId mir::graphics::DisplayConfigurationOutput::id

The output's id.

◆ modes

std::vector<DisplayConfigurationMode> mir::graphics::DisplayConfigurationOutput::modes

The modes supported by the output.

◆ orientation

MirOrientation mir::graphics::DisplayConfigurationOutput::orientation

◆ physical_size_mm

geometry::Size mir::graphics::DisplayConfigurationOutput::physical_size_mm

The physical size of the output.

◆ pixel_formats

std::vector<MirPixelFormat> mir::graphics::DisplayConfigurationOutput::pixel_formats

The pixel formats supported by the output.

◆ power_mode

MirPowerMode mir::graphics::DisplayConfigurationOutput::power_mode

Current power mode.

◆ preferred_mode_index

uint32_t mir::graphics::DisplayConfigurationOutput::preferred_mode_index

The index in the 'modes' vector of the preferred output mode.

◆ scale

float mir::graphics::DisplayConfigurationOutput::scale

Requested scale factor for this output, for HiDPI support.

◆ subpixel_arrangement

MirSubpixelArrangement mir::graphics::DisplayConfigurationOutput::subpixel_arrangement

Subpixel arrangement of this output.

◆ top_left

geometry::Point mir::graphics::DisplayConfigurationOutput::top_left

The top left point of this output in the virtual coordinate space.

◆ type

DisplayConfigurationOutputType mir::graphics::DisplayConfigurationOutput::type

The type of the output.

◆ used

bool mir::graphics::DisplayConfigurationOutput::used

Whether the output is used in the configuration.


The documentation for this struct was generated from the following file:

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Mar 27 12:06:55 UTC 2017