[][src]Struct wayland_protocols::unstable::linux_dmabuf::v1::server::zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1

pub struct ZwpLinuxDmabufV1(_);

Implementations

impl ZwpLinuxDmabufV1[src]

pub fn format(&self, format: u32)[src]

supported buffer format

This event advertises one buffer format that the server supports. All the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported formats.

For the definition of the format codes, see the zwp_linux_buffer_params_v1::create request.

Warning: the 'format' event is likely to be deprecated and replaced with the 'modifier' event introduced in zwp_linux_dmabuf_v1 version 3, described below. Please refrain from using the information received from this event.

pub fn modifier(&self, format: u32, modifier_hi: u32, modifier_lo: u32)[src]

supported buffer format modifier

This event advertises the formats that the server supports, along with the modifiers supported for each format. All the supported modifiers for all the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported format-modifier pairs.

For legacy support, DRM_FORMAT_MOD_INVALID (that is, modifier_hi == 0x00ffffff and modifier_lo == 0xffffffff) is allowed in this event. It indicates that the server can support the format with an implicit modifier. When a plane has DRM_FORMAT_MOD_INVALID as its modifier, it is as if no explicit modifier is specified. The effective modifier will be derived from the dmabuf.

For the definition of the format and modifier codes, see the zwp_linux_buffer_params_v1::create and zwp_linux_buffer_params_v1::add requests.

Only available since version 3 of the interface.

Trait Implementations

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

impl Clone for ZwpLinuxDmabufV1[src]

impl Debug for ZwpLinuxDmabufV1[src]

impl Eq for ZwpLinuxDmabufV1[src]

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

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

impl Interface for ZwpLinuxDmabufV1[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<ZwpLinuxDmabufV1> for ZwpLinuxDmabufV1[src]

impl StructuralEq for ZwpLinuxDmabufV1[src]

impl StructuralPartialEq for ZwpLinuxDmabufV1[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.