[][src]Trait wayland_protocols::unstable::linux_dmabuf::v1::client::zwp_linux_dmabuf_v1::EventHandler

pub trait EventHandler {
    fn format(&mut self, object: ZwpLinuxDmabufV1, format: u32) { ... }
fn modifier(
        &mut self,
        object: ZwpLinuxDmabufV1,
        format: u32,
        modifier_hi: u32,
        modifier_lo: u32
    ) { ... } }

An interface for handling events.

Provided methods

fn format(&mut self, object: ZwpLinuxDmabufV1, format: u32)

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.

fn modifier(
    &mut self,
    object: ZwpLinuxDmabufV1,
    format: u32,
    modifier_hi: u32,
    modifier_lo: u32
)

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 the definition of the format and modifier codes, see the zwp_linux_buffer_params_v1::create request.

Only available since version 3 of the interface.

Loading content...

Implementors

Loading content...