19 #ifndef MIRAL_OUTPUT_H
20 #define MIRAL_OUTPUT_H
29 namespace mir {
namespace graphics {
struct DisplayConfigurationOutput; } }
63 explicit Output(
const mir::graphics::DisplayConfigurationOutput &output);
69 auto type() const -> Type;
72 auto physical_size_mm() const -> PhysicalSizeMM;
75 auto connected() const ->
bool;
78 auto used() const ->
bool;
84 auto refresh_rate() const ->
double;
92 auto scale() const ->
float;
103 auto
id() const ->
int;
105 auto valid() const ->
bool;
107 auto is_same_output(
Output const& other) const ->
bool;
110 std::shared_ptr<
mir::graphics::DisplayConfigurationOutput> self;
113 bool operator==(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs);
114 inline
bool operator!=(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs)
115 {
return !(lhs == rhs); }
120 #endif //MIRAL_OUTPUT_H