Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdktexturedownloader.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2023 Benjamin Otte
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gdk/gdk.h> can be included directly."
22#endif
23
24#include <gdk/gdktypes.h>
25
27
28#define GDK_TYPE_TEXTURE_DOWNLOADER (gdk_texture_downloader_get_type ())
29
34
39
40
43 GdkTexture *texture);
53 GdkColorState *color_state);
56
57
60 guchar *data,
61 gsize stride);
64 gsize *out_stride);
65
67
69
typedefG_BEGIN_DECLS struct _GBytes GBytes
Definition garray.h:38
#define GDK_AVAILABLE_IN_4_10
#define GDK_AVAILABLE_IN_4_16
GdkMemoryFormat
Definition gdkenums.h:508
GDK_AVAILABLE_IN_4_10 GType gdk_texture_downloader_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_10 GdkMemoryFormat gdk_texture_downloader_get_format(const GdkTextureDownloader *self)
GDK_AVAILABLE_IN_4_10 GBytes * gdk_texture_downloader_download_bytes(const GdkTextureDownloader *self, gsize *out_stride)
GDK_AVAILABLE_IN_4_10 GdkTexture * gdk_texture_downloader_get_texture(const GdkTextureDownloader *self)
GDK_AVAILABLE_IN_4_16 GdkColorState * gdk_texture_downloader_get_color_state(const GdkTextureDownloader *self)
GDK_AVAILABLE_IN_4_16 void gdk_texture_downloader_set_color_state(GdkTextureDownloader *self, GdkColorState *color_state)
GDK_AVAILABLE_IN_4_10 GdkTextureDownloader * gdk_texture_downloader_copy(const GdkTextureDownloader *self)
GDK_AVAILABLE_IN_4_10 void gdk_texture_downloader_download_into(const GdkTextureDownloader *self, guchar *data, gsize stride)
GDK_AVAILABLE_IN_4_10 void gdk_texture_downloader_set_format(GdkTextureDownloader *self, GdkMemoryFormat format)
GDK_AVAILABLE_IN_4_10 void gdk_texture_downloader_set_texture(GdkTextureDownloader *self, GdkTexture *texture)
GDK_AVAILABLE_IN_4_10 void gdk_texture_downloader_free(GdkTextureDownloader *self)
GDK_AVAILABLE_IN_4_10 GdkTextureDownloader * gdk_texture_downloader_new(GdkTexture *texture)
struct _GdkTexture GdkTexture
Definition gdktypes.h:82
struct _GdkColorState GdkColorState
Definition gdktypes.h:78
struct _GdkTextureDownloader GdkTextureDownloader
Definition gdktypes.h:83
unsigned long gsize
Definition glibconfig.h:83
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
gsize GType
Definition gtype.h:427
unsigned char guchar
Definition gtypes.h:58
json_t format(printf, 1, 2)))