2017-11-17 16:31:59 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
2017-11-18 01:19:53 +00:00
|
|
|
* Copyright (C) 2017 Benjamin Otte
|
2017-11-17 16:31:59 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_CONTENT_FORMATS_H__
|
|
|
|
#define __GTK_CONTENT_FORMATS_H__
|
|
|
|
|
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
|
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include <gdk/gdkversionmacros.h>
|
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2017-11-18 01:19:53 +00:00
|
|
|
#define GDK_TYPE_CONTENT_FORMATS (gdk_content_formats_get_type ())
|
2017-11-17 16:31:59 +00:00
|
|
|
|
2017-11-18 01:19:53 +00:00
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
GType gdk_content_formats_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
GdkContentFormats * gdk_content_formats_new (const char **mime_types,
|
|
|
|
guint n_mime_types);
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
GdkContentFormats * gdk_content_formats_ref (GdkContentFormats *formats);
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
void gdk_content_formats_unref (GdkContentFormats *formats);
|
2017-11-17 16:31:59 +00:00
|
|
|
|
2017-11-18 04:53:25 +00:00
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
void gdk_content_formats_print (GdkContentFormats *formats,
|
|
|
|
GString *string);
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
char * gdk_content_formats_to_string (GdkContentFormats *formats);
|
|
|
|
|
2017-11-17 16:31:59 +00:00
|
|
|
GDK_AVAILABLE_IN_3_94
|
2017-11-18 01:19:53 +00:00
|
|
|
void gdk_content_formats_union (GdkContentFormats *first,
|
|
|
|
const GdkContentFormats *second);
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
GdkAtom gdk_content_formats_intersects (const GdkContentFormats *first,
|
|
|
|
const GdkContentFormats *second);
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
void gdk_content_formats_add (GdkContentFormats *formats,
|
|
|
|
const char *mime_type);
|
|
|
|
GDK_AVAILABLE_IN_3_94
|
|
|
|
gboolean gdk_content_formats_contains (const GdkContentFormats *formats,
|
|
|
|
const char *mime_type);
|
2017-11-17 16:31:59 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_CONTENT_FORMATS_H__ */
|