gdk4/auto/
gl_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#![allow(deprecated)]
5
6use crate::{ffi, Paintable, Texture};
7use glib::translate::*;
8
9glib::wrapper! {
10    #[doc(alias = "GdkGLTexture")]
11    pub struct GLTexture(Object<ffi::GdkGLTexture, ffi::GdkGLTextureClass>) @extends Texture, @implements Paintable, gio::Icon, gio::LoadableIcon;
12
13    match fn {
14        type_ => || ffi::gdk_gl_texture_get_type(),
15    }
16}
17
18impl GLTexture {
19    #[doc(alias = "gdk_gl_texture_release")]
20    pub fn release(&self) {
21        unsafe {
22            ffi::gdk_gl_texture_release(self.to_glib_none().0);
23        }
24    }
25}
26
27unsafe impl Send for GLTexture {}
28unsafe impl Sync for GLTexture {}