17 #ifndef MIRAL_OUTPUT_H
18 #define MIRAL_OUTPUT_H
27 namespace mir {
namespace graphics {
struct DisplayConfigurationOutput; } }
58 explicit Output(
const mir::graphics::DisplayConfigurationOutput &output);
70 auto connected() const ->
bool;
73 auto used() const ->
bool;
79 auto refresh_rate() const ->
double;
87 auto scale() const ->
float;
98 auto
id() const ->
int;
100 auto valid() const ->
bool;
102 auto is_same_output(
Output const& other) const ->
bool;
107 auto logical_group_id() const ->
int;
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); }
Type
Definition: output.h:40
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:347
MirOrientation
Direction relative to the "natural" orientation of the display.
Definition: common.h:193
MirPowerMode
Definition: common.h:108
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:163
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: dimensions.h:29
Definition: splash_session.h:22
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
auto equivalent_display_area(Output const &lhs, Output const &rhs) -> bool
Definition: rectangle.h:31
int height
Definition: output.h:37