Enum wayland_protocols::unstable::linux_dmabuf::v1::server::zwp_linux_dmabuf_v1::Event
[−]
[src]
pub enum Event {
Format {
format: u32,
},
Modifier {
format: u32,
modifier_hi: u32,
modifier_lo: u32,
},
}Variants
Formatsupported 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.
Fields of Format
format: u32 |
Modifiersupported 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
Fields of Modifier
format: u32 | |
modifier_hi: u32 | |
modifier_lo: u32 |
Trait Implementations
impl MessageGroup for Event[src]
fn is_destructor(&self) -> bool[src]
Whether this message is a destructor Read more
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Event, ()>[src]
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Event, ()>
Construct a message of this group from its C representation
fn as_raw_c_in<F, T>(self, f: F) -> T where
F: FnOnce(u32, &mut [wl_argument]) -> T, [src]
F: FnOnce(u32, &mut [wl_argument]) -> T,
Build a C representation of this message Read more