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>
23#include <mir/int_wrapper.h>
37 Zone(Rectangle
const& extents);
57 auto id()
const ->
int;
61 std::unique_ptr<Self> self;
A rectangular area of the display. Not tied to a specific output.
Definition: zone.h:34
void extents(Rectangle const &extents)
Set the extents of this zone Does not make this a different zone.
auto id() const -> int
An arbitrary number that uniquely identifies this zone, reguardless of how it is resized and moved.
auto is_same_zone(Zone const &other) const -> bool
Returns if true if zone IDs match, even if extents are different.
auto extents() const -> Rectangle
The area of this zone in global display coordinates.
Zone & operator=(Zone const &other)
Copies private data by value.
Zone(Rectangle const &extents)
Create a new zone with the given extents.
Zone(Zone const &other)
Makes a copy of the underlying private data.
auto operator==(Zone const &other) const -> bool
Returns true only if all properties including IDs match.
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