mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 15:01:23 +00:00
74620ffc46
We need to unrealize renderers before unreffing them. This vfunc takes care of that.
40 lines
2.2 KiB
C
40 lines
2.2 KiB
C
#pragma once
|
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GDK_TYPE_DMABUF_DOWNLOADER (gdk_dmabuf_downloader_get_type ())
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
G_DECLARE_INTERFACE (GdkDmabufDownloader, gdk_dmabuf_downloader, GDK, DMABUF_DOWNLOADER, GObject)
|
|
|
|
struct _GdkDmabufDownloaderInterface
|
|
{
|
|
GTypeInterface g_iface;
|
|
|
|
void (* close) (GdkDmabufDownloader *downloader);
|
|
gboolean (* supports) (GdkDmabufDownloader *downloader,
|
|
GdkDmabufTexture *texture,
|
|
GError **error);
|
|
void (* download) (GdkDmabufDownloader *downloader,
|
|
GdkDmabufTexture *texture,
|
|
GdkMemoryFormat format,
|
|
guchar *data,
|
|
gsize stride);
|
|
};
|
|
|
|
void gdk_dmabuf_downloader_close (GdkDmabufDownloader *downloader);
|
|
gboolean gdk_dmabuf_downloader_supports (GdkDmabufDownloader *downloader,
|
|
GdkDmabufTexture *texture,
|
|
GError **error);
|
|
void gdk_dmabuf_downloader_download (GdkDmabufDownloader *downloader,
|
|
GdkDmabufTexture *texture,
|
|
GdkMemoryFormat format,
|
|
guchar *data,
|
|
gsize stride);
|
|
|
|
|
|
G_END_DECLS
|
|
|