~ricmm/mir/ref_input_in_stack_model

« back to all changes in this revision

Viewing changes to include/platform/mir/graphics/display_configuration.h

server,client: Add type, preferred mode and max. simultaneous outputs information to the display configuration.

Approved by PS Jenkins bot, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
struct DisplayConfigurationCard
43
43
{
44
44
    DisplayConfigurationCardId id;
 
45
    size_t max_simultaneous_outputs;
 
46
};
 
47
 
 
48
/**
 
49
 * The type of a display output.
 
50
 */
 
51
enum class DisplayConfigurationOutputType
 
52
{
 
53
    unknown,
 
54
    vga,
 
55
    dvii,
 
56
    dvid,
 
57
    dvia,
 
58
    composite,
 
59
    svideo,
 
60
    lvds,
 
61
    component,
 
62
    ninepindin,
 
63
    displayport,
 
64
    hdmia,
 
65
    hdmib,
 
66
    tv,
 
67
    edp
45
68
};
46
69
 
47
70
/**
62
85
    DisplayConfigurationOutputId id;
63
86
    /** The id of the card the output is connected to. */
64
87
    DisplayConfigurationCardId card_id;
 
88
    /** The type of the output. */
 
89
    DisplayConfigurationOutputType type;
65
90
    /** The pixel formats supported by the output */
66
91
    std::vector<geometry::PixelFormat> pixel_formats;
67
92
    /** The modes supported by the output. */
68
93
    std::vector<DisplayConfigurationMode> modes;
 
94
    /** The index in the 'modes' vector of the preferred output mode. */
 
95
    size_t preferred_mode_index;
69
96
    /** The physical size of the output. */
70
97
    geometry::Size physical_size_mm;
71
98
    /** Whether the output is connected. */
80
107
    size_t current_format_index;
81
108
};
82
109
 
 
110
std::ostream& operator<<(std::ostream& out, DisplayConfigurationCard const& val);
 
111
bool operator==(DisplayConfigurationCard const& val1, DisplayConfigurationCard const& val2);
 
112
bool operator!=(DisplayConfigurationCard const& val1, DisplayConfigurationCard const& val2);
 
113
 
83
114
std::ostream& operator<<(std::ostream& out, DisplayConfigurationMode const& val);
84
115
bool operator==(DisplayConfigurationMode const& val1, DisplayConfigurationMode const& val2);
85
116
bool operator!=(DisplayConfigurationMode const& val1, DisplayConfigurationMode const& val2);