-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate with latest gir/gir-files
- Loading branch information
1 parent
d2cdb59
commit 4e21f8f
Showing
54 changed files
with
2,861 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Generated by gir (https://github.com/gtk-rs/gir @ 20a5b17f6da9) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) | ||
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Generated by gir (https://github.com/gtk-rs/gir @ 20a5b17f6da9) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) | ||
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Generated by gir (https://github.com/gtk-rs/gir @ 20a5b17f6da9) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) | ||
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Generated by gir (https://github.com/gtk-rs/gir @ 20a5b17f6da9) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) | ||
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Generated by gir (https://github.com/gtk-rs/gir @ 20a5b17f6da9) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) | ||
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Generated by gir (https://github.com/gtk-rs/gir @ 20a5b17f6da9) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) | ||
Generated by gir (https://github.com/gtk-rs/gir @ 1c7a6b57a5fc) | ||
from gir-files (https://github.com/gtk-rs/gir-files @ 21b29d0e0c1a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// 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 glib::translate::*; | ||
|
||
glib::wrapper! { | ||
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] | ||
pub struct DmabufFormats(Shared<ffi::GdkDmabufFormats>); | ||
|
||
match fn { | ||
ref => |ptr| ffi::gdk_dmabuf_formats_ref(ptr), | ||
unref => |ptr| ffi::gdk_dmabuf_formats_unref(ptr), | ||
type_ => || ffi::gdk_dmabuf_formats_get_type(), | ||
} | ||
} | ||
|
||
impl DmabufFormats { | ||
#[doc(alias = "gdk_dmabuf_formats_contains")] | ||
pub fn contains(&self, fourcc: u32, modifier: u64) -> bool { | ||
unsafe { | ||
from_glib(ffi::gdk_dmabuf_formats_contains( | ||
self.to_glib_none().0, | ||
fourcc, | ||
modifier, | ||
)) | ||
} | ||
} | ||
|
||
#[doc(alias = "gdk_dmabuf_formats_get_format")] | ||
#[doc(alias = "get_format")] | ||
pub fn format(&self, idx: usize) -> (u32, u64) { | ||
unsafe { | ||
let mut fourcc = std::mem::MaybeUninit::uninit(); | ||
let mut modifier = std::mem::MaybeUninit::uninit(); | ||
ffi::gdk_dmabuf_formats_get_format( | ||
self.to_glib_none().0, | ||
idx, | ||
fourcc.as_mut_ptr(), | ||
modifier.as_mut_ptr(), | ||
); | ||
(fourcc.assume_init(), modifier.assume_init()) | ||
} | ||
} | ||
|
||
#[doc(alias = "gdk_dmabuf_formats_get_n_formats")] | ||
#[doc(alias = "get_n_formats")] | ||
pub fn n_formats(&self) -> usize { | ||
unsafe { ffi::gdk_dmabuf_formats_get_n_formats(self.to_glib_none().0) } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// 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! { | ||
#[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 {} |
Oops, something went wrong.