19 #ifndef MIRAL_OUTPUT_H
20 #define MIRAL_OUTPUT_H
29 namespace mir {
namespace graphics {
struct DisplayConfigurationOutput; } }
60 explicit Output(
const mir::graphics::DisplayConfigurationOutput &output);
72 auto connected() const ->
bool;
75 auto used() const ->
bool;
81 auto refresh_rate() const ->
double;
89 auto scale() const ->
float;
100 auto
id() const ->
int;
102 auto valid() const ->
bool;
104 auto is_same_output(
Output const& other) const ->
bool;
109 auto logical_group_id() const ->
int;
112 std::shared_ptr<
mir::graphics::DisplayConfigurationOutput> self;
115 bool operator==(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs);
116 inline
bool operator!=(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs)
117 {
return !(lhs == rhs); }
Type
Definition: output.h:42
Output(const mir::graphics::DisplayConfigurationOutput &output)
auto type() const -> Type
The type of the output.
Output & operator=(Output const &)
MirFormFactor
Form factor associated with a physical output.
Definition: common.h:349
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:195
MirPowerMode
Definition: common.h:110
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:165
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: dimensions.h:31
Definition: splash_session.h:24
Mir Abstraction Layer.
Definition: floating_window_manager.h:31
auto equivalent_display_area(Output const &lhs, Output const &rhs) -> bool
Definition: rectangle.h:34
int height
Definition: output.h:39