Go to the documentation of this file.
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;
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
int width
Definition: output.h:39
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
Type
Definition: output.h:42
MirPixelFormat pixel_format
Definition: client_types.h:3
Definition: rectangle.h:34
auto equivalent_display_area(Output const &lhs, Output const &rhs) -> bool
Output(const mir::graphics::DisplayConfigurationOutput &output)
int height
Definition: client_types.h:2
Definition: splash_session.h:24
Output & operator=(Output const &)
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: dimensions.h:31
auto type() const -> Type
The type of the output.
Copyright © 2012-2020
Canonical Ltd.
Generated on Sun Sep 27 19:03:53 UTC 2020
This documentation is licensed under the GPL version 2 or 3.