2
3
4
5
6
7
8
9
10
11
12
13
14
15
20#include <mir_toolkit/common.h>
22#include <mir/geometry/rectangle.h>
28namespace mir {
namespace graphics {
struct DisplayConfigurationOutput; } }
99 auto id()
const ->
int;
103 auto name()
const -> std::string;
123 std::shared_ptr<
mir::
graphics::DisplayConfigurationOutput> self;
128{
return !(lhs
== rhs); }
auto name() const -> std::string
The output name. This matches that suppled to clients through wl_output.
auto connected() const -> bool
Whether the output is connected.
Type
Definition: output.h:41
Output(const mir::graphics::DisplayConfigurationOutput &output)
auto type() const -> Type
The type of the output.
auto form_factor() const -> MirFormFactor
Form factor of this output; phone display, tablet, monitor, TV, projector...
auto attributes_map() const -> std::map< std::string const, std::optional< std::string > >
A custom attribute map.
Output & operator=(Output const &)
auto pixel_format() const -> MirPixelFormat
The current output pixel format.
auto refresh_rate() const -> double
refresh_rate in Hz
auto orientation() const -> MirOrientation
auto valid() const -> bool
auto id() const -> int
Mir's internal output ID mostly useful for matching against a miral::WindowInfo::output_id.
auto attribute(std::string const &key) const -> std::optional< std::string >
A custom attribute value.
auto physical_size_mm() const -> PhysicalSizeMM
The physical size of the output.
auto logical_group_id() const -> int
A positive number if this output is part of a logical output group (aka a display wall) A single disp...
auto power_mode() const -> MirPowerMode
Current power mode.
auto used() const -> bool
Whether the output is used in the configuration.
auto is_same_output(Output const &other) const -> bool
auto extents() const -> Rectangle
The logical rectangle occupied by the output, based on its position, current mode and orientation (ro...
auto scale() const -> float
Requested scale factor for this output, for HiDPI support.
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition: size.h:27
Mir Abstraction Layer.
Definition: runner.h:35
bool operator!=(Output::PhysicalSizeMM const &lhs, Output::PhysicalSizeMM const &rhs)
Definition: output.h:127
auto equivalent_display_area(Output const &lhs, Output const &rhs) -> bool
bool operator==(Output::PhysicalSizeMM const &lhs, Output::PhysicalSizeMM const &rhs)
int width
Definition: output.h:38
int height
Definition: output.h:38