gdk4/auto/
dmabuf_texture.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use crate::{ffi, Paintable, Texture};
6
7glib::wrapper! {
8    /// A [`Texture`][crate::Texture] representing a DMA buffer.
9    ///
10    /// To create a [`DmabufTexture`][crate::DmabufTexture], use the auxiliary
11    /// [`DmabufTextureBuilder`][crate::DmabufTextureBuilder] object.
12    ///
13    /// Dma-buf textures can only be created on Linux.
14    ///
15    /// # Implements
16    ///
17    /// [`TextureExt`][trait@crate::prelude::TextureExt], [`PaintableExt`][trait@crate::prelude::PaintableExt], [`trait@gio::prelude::IconExt`], [`trait@gio::prelude::LoadableIconExt`], [`TextureExtManual`][trait@crate::prelude::TextureExtManual]
18    #[doc(alias = "GdkDmabufTexture")]
19    pub struct DmabufTexture(Object<ffi::GdkDmabufTexture, ffi::GdkDmabufTextureClass>) @extends Texture, @implements Paintable, gio::Icon, gio::LoadableIcon;
20
21    match fn {
22        type_ => || ffi::gdk_dmabuf_texture_get_type(),
23    }
24}
25
26impl DmabufTexture {}