[−][src]Struct wayland_protocols::unstable::linux_dmabuf::v1::server::zwp_linux_dmabuf_v1::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]
fn clone(&self) -> ZwpLinuxDmabufV1
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn from(value: ZwpLinuxDmabufV1) -> Self
[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
const NAME: &'static str
[src]
const VERSION: u32
[src]
fn c_interface() -> *const wl_interface
[src]
impl PartialEq<ZwpLinuxDmabufV1> for ZwpLinuxDmabufV1
[src]
fn eq(&self, other: &ZwpLinuxDmabufV1) -> bool
[src]
fn ne(&self, other: &ZwpLinuxDmabufV1) -> bool
[src]
impl StructuralEq for ZwpLinuxDmabufV1
[src]
impl StructuralPartialEq for ZwpLinuxDmabufV1
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZwpLinuxDmabufV1
impl Send for ZwpLinuxDmabufV1
impl Sync for ZwpLinuxDmabufV1
impl Unpin for ZwpLinuxDmabufV1
impl !UnwindSafe for ZwpLinuxDmabufV1
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,