[][src]Struct wayland_protocols::wlr::unstable::output_management::v1::server::zwlr_output_head_v1::ZwlrOutputHeadV1

pub struct ZwlrOutputHeadV1(_);

Implementations

impl ZwlrOutputHeadV1[src]

pub fn name(&self, name: String)[src]

head name

This event describes the head name.

The naming convention is compositor defined, but limited to alphanumeric characters and dashes (-). Each name is unique among all wlr_output_head objects, but if a wlr_output_head object is destroyed the same name may be reused later. The names will also remain consistent across sessions with the same hardware and software configuration.

Examples of names include 'HDMI-A-1', 'WL-1', 'X11-1', etc. However, do not assume that the name is a reflection of an underlying DRM connector, X11 connection, etc.

If the compositor implements the xdg-output protocol and this head is enabled, the xdg_output.name event must report the same name.

The name event is sent after a wlr_output_head object is created. This event is only sent once per object, and the name does not change over the lifetime of the wlr_output_head object.

pub fn description(&self, description: String)[src]

head description

This event describes a human-readable description of the head.

The description is a UTF-8 string with no convention defined for its contents. Examples might include 'Foocorp 11" Display' or 'Virtual X11 output via :1'. However, do not assume that the name is a reflection of the make, model, serial of the underlying DRM connector or the display name of the underlying X11 connection, etc.

If the compositor implements xdg-output and this head is enabled, the xdg_output.description must report the same description.

The description event is sent after a wlr_output_head object is created. This event is only sent once per object, and the description does not change over the lifetime of the wlr_output_head object.

pub fn physical_size(&self, width: i32, height: i32)[src]

head physical size

This event describes the physical size of the head. This event is only sent if the head has a physical size (e.g. is not a projector or a virtual device).

pub fn mode(&self, mode: &ZwlrOutputModeV1)[src]

introduce a mode

This event introduces a mode for this head. It is sent once per supported mode.

pub fn enabled(&self, enabled: i32)[src]

head is enabled or disabled

This event describes whether the head is enabled. A disabled head is not mapped to a region of the global compositor space.

When a head is disabled, some properties (current_mode, position, transform and scale) are irrelevant.

pub fn current_mode(&self, mode: &ZwlrOutputModeV1)[src]

current mode

This event describes the mode currently in use for this head. It is only sent if the output is enabled.

pub fn position(&self, x: i32, y: i32)[src]

current position

This events describes the position of the head in the global compositor space. It is only sent if the output is enabled.

pub fn transform(&self, transform: Transform)[src]

current transformation

This event describes the transformation currently applied to the head. It is only sent if the output is enabled.

pub fn scale(&self, scale: f64)[src]

current scale

This events describes the scale of the head in the global compositor space. It is only sent if the output is enabled.

pub fn finished(&self)[src]

the head has been destroyed

The compositor will destroy the object immediately after sending this event, so it will become invalid and the client should release any resources associated with it.

Trait Implementations

impl AsRef<Resource<ZwlrOutputHeadV1>> for ZwlrOutputHeadV1[src]

impl Clone for ZwlrOutputHeadV1[src]

impl Debug for ZwlrOutputHeadV1[src]

impl Eq for ZwlrOutputHeadV1[src]

impl From<Resource<ZwlrOutputHeadV1>> for ZwlrOutputHeadV1[src]

impl From<ZwlrOutputHeadV1> for Resource<ZwlrOutputHeadV1>[src]

impl Interface for ZwlrOutputHeadV1[src]

type Request = Request

Set of requests associated to this interface Read more

type Event = Event

Set of events associated to this interface Read more

impl PartialEq<ZwlrOutputHeadV1> for ZwlrOutputHeadV1[src]

impl StructuralEq for ZwlrOutputHeadV1[src]

impl StructuralPartialEq for ZwlrOutputHeadV1[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.