Mir
|
A rectangular area of the display. Not tied to a specific output. More...
#include <zone.h>
Public Member Functions | |
Zone (Rectangle const &extents) | |
Create a new zone with the given extents. More... | |
Zone (Zone const &other) | |
Makes a copy of the underlying private data. More... | |
Zone & | operator= (Zone const &other) |
Copies private data by value. More... | |
~Zone () | |
auto | operator== (Zone const &other) const -> bool |
Returns true only if all properties including IDs match. More... | |
auto | is_same_zone (Zone const &other) const -> bool |
Returns if true if zone IDs match, even if extents are different. More... | |
auto | extents () const -> Rectangle |
The area of this zone in global display coordinates. More... | |
void | extents (Rectangle const &extents) |
Set the extents of this zone Does not make this a different zone. More... | |
auto | id () const -> int |
An arbitrary number that uniquely identifies this zone, reguardless of how it is resized and moved. More... | |
A rectangular area of the display. Not tied to a specific output.
miral::Zone::Zone | ( | Rectangle const & | extents | ) |
Create a new zone with the given extents.
miral::Zone::Zone | ( | Zone const & | other | ) |
Makes a copy of the underlying private data.
miral::Zone::~Zone | ( | ) |
auto miral::Zone::extents | ( | ) | const -> Rectangle |
The area of this zone in global display coordinates.
void miral::Zone::extents | ( | Rectangle const & | extents | ) |
Set the extents of this zone Does not make this a different zone.
auto miral::Zone::id | ( | ) | const -> int |
An arbitrary number that uniquely identifies this zone, reguardless of how it is resized and moved.
auto miral::Zone::is_same_zone | ( | Zone const & | other | ) | const -> bool |
Returns if true if zone IDs match, even if extents are different.
auto miral::Zone::operator== | ( | Zone const & | other | ) | const -> bool |
Returns true only if all properties including IDs match.
Copyright © 2012-2022
Canonical Ltd.
Generated on Fri Aug 26 13:27:37 UTC 2022
This documentation is licensed under the GPL version 2 or 3.