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);
66 auto type() const -> Type;
69 auto physical_size_mm() const -> PhysicalSizeMM;
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;
107 std::shared_ptr<
mir::graphics::DisplayConfigurationOutput> self;
110 bool operator==(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs);
111 inline
bool operator!=(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs)
112 {
return !(lhs == rhs); }
117 #endif //MIRAL_OUTPUT_H