1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::{Paintable, Texture};

glib::wrapper! {
    /// A [`Texture`][crate::Texture] representing a DMA buffer.
    ///
    /// To create a [`DmabufTexture`][crate::DmabufTexture], use the auxiliary
    /// [`DmabufTextureBuilder`][crate::DmabufTextureBuilder] object.
    ///
    /// Dma-buf textures can only be created on Linux.
    ///
    /// # Implements
    ///
    /// [`TextureExt`][trait@crate::prelude::TextureExt], [`PaintableExt`][trait@crate::prelude::PaintableExt], [`trait@gio::prelude::IconExt`], [`trait@gio::prelude::LoadableIconExt`], [`TextureExtManual`][trait@crate::prelude::TextureExtManual]
    #[doc(alias = "GdkDmabufTexture")]
    pub struct DmabufTexture(Object<ffi::GdkDmabufTexture, ffi::GdkDmabufTextureClass>) @extends Texture, @implements Paintable, gio::Icon, gio::LoadableIcon;

    match fn {
        type_ => || ffi::gdk_dmabuf_texture_get_type(),
    }
}

impl DmabufTexture {}