pub struct Geometry<'a> {
pub x: i32,
pub y: i32,
pub physical_width: i32,
pub physical_height: i32,
pub subpixel: Subpixel,
pub make: Str<'a>,
pub model: Str<'a>,
pub transform: Transform,
}
Expand description
properties of the output
The geometry event describes geometric properties of the output.
The event is sent when binding to the output object and whenever
any of the properties change.
The physical size can be set to zero if it doesn’t make sense for this
output (e.g. for projectors or virtual outputs).
The geometry event will be followed by a done event (starting from
version 2).
Note: wl_output only advertises partial information about the output
position and identification. Some compositors, for instance those not
implementing a desktop-style output layout or those exposing virtual
outputs, might fake this information. Instead of using x and y, clients
should use xdg_output.logical_position. Instead of using make and model,
clients should use name and description.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Deserialize from the given buffer. Returns deserialized message, and
number of bytes and file descriptors consumed, respectively.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Serialize into the buffered writer. This function returns no errors,
failures in seializing are generally program errors, and triggers
panicking.
Read more
How many bytes will this message serialize to. Including the 8 byte
header.
How many file descriptors will this message serialize to.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Checks if this value is equivalent to the given key.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.