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;
98 auto valid() const ->
bool;
100 auto is_same_output(
Output const& other) const ->
bool;
103 std::shared_ptr<
mir::graphics::DisplayConfigurationOutput> self;
106 bool operator==(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs);
107 inline
bool operator!=(
Output::PhysicalSizeMM const& lhs,
Output::PhysicalSizeMM const& rhs)
108 {
return !(lhs == rhs); }
113 #endif //MIRAL_OUTPUT_H AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: blob.h:26
auto equivalent_display_area(Output const &lhs, Output const &rhs) -> bool
int width
Definition: output.h:39
Type
Definition: output.h:41
MirPixelFormat pixel_format
Definition: client_types.h:180
int height
Definition: client_types.h:179
Definition: rectangle.h:33
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support...
Definition: dimensions.h:30
Mir Abstraction Layer.
Definition: add_init_callback.h:26