Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkcontentformats.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2017 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_CONTENT_FORMATS (gdk_content_formats_get_type ())
29
31const char * gdk_intern_mime_type (const char *string);
32
36GdkContentFormats * gdk_content_formats_new (const char **mime_types,
37 guint n_mime_types);
46
49 GString *string);
52
55 gsize *n_gtypes);
57const char * const * gdk_content_formats_get_mime_types (const GdkContentFormats *formats,
58 gsize *n_mime_types);
59
65 const GdkContentFormats *second);
68 const GdkContentFormats *second);
71 const GdkContentFormats *second);
74 GType type);
77 const char *mime_type);
78
79#define GDK_TYPE_CONTENT_FORMATS_BUILDER (gdk_content_formats_builder_get_type ())
80
81typedef struct _GdkContentFormatsBuilder GdkContentFormatsBuilder;
82
85
98 const GdkContentFormats *formats);
101 const char *mime_type);
104 GType type);
105
107
108/* dunno where else to put this */
109#define GDK_TYPE_FILE_LIST (gdk_file_list_get_type ())
112
113/**
114 * GdkFileList:
115 *
116 * An opaque type representing a list of files.
117 *
118 * Since: 4.6
119 */
120typedef struct _GdkFileList GdkFileList;
121
128 gsize n_files);
129
131
const char * mime_type
Definition civetweb.c:8224
#define GDK_AVAILABLE_IN_4_4
#define GDK_AVAILABLE_IN_4_6
#define GDK_AVAILABLE_IN_4_8
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL GdkContentFormatsBuilder * gdk_content_formats_builder_new(void)
GDK_AVAILABLE_IN_ALL GType gdk_content_formats_builder_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_8 GdkFileList * gdk_file_list_new_from_list(GSList *files)
struct _GdkContentFormatsBuilder GdkContentFormatsBuilder
GDK_AVAILABLE_IN_ALL char * gdk_content_formats_to_string(GdkContentFormats *formats)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_builder_free_to_formats(GdkContentFormatsBuilder *builder) G_GNUC_WARN_UNUSED_RESULT
GDK_AVAILABLE_IN_ALL void gdk_content_formats_builder_add_formats(GdkContentFormatsBuilder *builder, const GdkContentFormats *formats)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_union(GdkContentFormats *first, const GdkContentFormats *second) G_GNUC_WARN_UNUSED_RESULT
GDK_AVAILABLE_IN_4_6 GSList * gdk_file_list_get_files(GdkFileList *file_list)
GDK_AVAILABLE_IN_ALL const char *const * gdk_content_formats_get_mime_types(const GdkContentFormats *formats, gsize *n_mime_types)
GDK_AVAILABLE_IN_ALL const char * gdk_content_formats_match_mime_type(const GdkContentFormats *first, const GdkContentFormats *second)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_builder_to_formats(GdkContentFormatsBuilder *builder) G_GNUC_WARN_UNUSED_RESULT
GDK_AVAILABLE_IN_ALL gboolean gdk_content_formats_contain_gtype(const GdkContentFormats *formats, GType type)
GDK_AVAILABLE_IN_ALL void gdk_content_formats_builder_unref(GdkContentFormatsBuilder *builder)
GDK_AVAILABLE_IN_ALL GType gdk_file_list_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL const char * gdk_intern_mime_type(const char *string)
GDK_AVAILABLE_IN_ALL void gdk_content_formats_builder_add_gtype(GdkContentFormatsBuilder *builder, GType type)
GDK_AVAILABLE_IN_ALL GdkContentFormatsBuilder * gdk_content_formats_builder_ref(GdkContentFormatsBuilder *builder)
struct _GdkFileList GdkFileList
GDK_AVAILABLE_IN_ALL void gdk_content_formats_unref(GdkContentFormats *formats)
GDK_AVAILABLE_IN_ALL GType gdk_content_formats_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_new(const char **mime_types, guint n_mime_types)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_new_for_gtype(GType type)
GDK_AVAILABLE_IN_ALL gboolean gdk_content_formats_contain_mime_type(const GdkContentFormats *formats, const char *mime_type)
GDK_AVAILABLE_IN_ALL gboolean gdk_content_formats_match(const GdkContentFormats *first, const GdkContentFormats *second)
GDK_AVAILABLE_IN_ALL const GType * gdk_content_formats_get_gtypes(const GdkContentFormats *formats, gsize *n_gtypes)
GDK_AVAILABLE_IN_4_8 GdkFileList * gdk_file_list_new_from_array(GFile **files, gsize n_files)
GDK_AVAILABLE_IN_4_4 GdkContentFormats * gdk_content_formats_parse(const char *string)
GDK_AVAILABLE_IN_ALL GType gdk_content_formats_match_gtype(const GdkContentFormats *first, const GdkContentFormats *second)
GDK_AVAILABLE_IN_ALL void gdk_content_formats_builder_add_mime_type(GdkContentFormatsBuilder *builder, const char *mime_type)
GDK_AVAILABLE_IN_ALL void gdk_content_formats_print(GdkContentFormats *formats, GString *string)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_formats_ref(GdkContentFormats *formats)
struct _GdkContentFormats GdkContentFormats
Definition gdktypes.h:79
struct _GFile GFile
Definition giotypes.h:74
unsigned long gsize
Definition glibconfig.h:83
#define G_GNUC_WARN_UNUSED_RESULT
Definition gmacros.h:814
#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
typedefG_BEGIN_DECLS struct _GSList GSList
Definition gslist.h:39
typedefG_BEGIN_DECLS struct _GString GString
Definition gstring.h:43
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
unsigned int guint
Definition gtypes.h:61