2023-12-18 22:25:56 +00:00
|
|
|
#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;
|
|
|
|
|
2023-12-19 17:49:22 +00:00
|
|
|
void (* close) (GdkDmabufDownloader *downloader);
|
2023-12-18 22:25:56 +00:00
|
|
|
gboolean (* supports) (GdkDmabufDownloader *downloader,
|
|
|
|
GdkDmabufTexture *texture,
|
|
|
|
GError **error);
|
|
|
|
void (* download) (GdkDmabufDownloader *downloader,
|
|
|
|
GdkDmabufTexture *texture,
|
|
|
|
GdkMemoryFormat format,
|
2024-07-13 22:51:05 +00:00
|
|
|
GdkColorState *color_state,
|
2023-12-18 22:25:56 +00:00
|
|
|
guchar *data,
|
|
|
|
gsize stride);
|
|
|
|
};
|
|
|
|
|
2023-12-19 17:49:22 +00:00
|
|
|
void gdk_dmabuf_downloader_close (GdkDmabufDownloader *downloader);
|
2023-12-18 22:25:56 +00:00
|
|
|
gboolean gdk_dmabuf_downloader_supports (GdkDmabufDownloader *downloader,
|
|
|
|
GdkDmabufTexture *texture,
|
|
|
|
GError **error);
|
|
|
|
void gdk_dmabuf_downloader_download (GdkDmabufDownloader *downloader,
|
|
|
|
GdkDmabufTexture *texture,
|
|
|
|
GdkMemoryFormat format,
|
2024-07-13 22:51:05 +00:00
|
|
|
GdkColorState *color_state,
|
2023-12-18 22:25:56 +00:00
|
|
|
guchar *data,
|
|
|
|
gsize stride);
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|