2014-05-29 03:55:53 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Benjamin Otte <otte@gnome.org>
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2014-05-29 03:55:53 +00:00
|
|
|
|
2019-11-27 13:33:43 +00:00
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2014-05-29 03:55:53 +00:00
|
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2023-05-09 15:16:31 +00:00
|
|
|
#include <gdk/version/gdkversionmacros.h>
|
2014-05-29 03:55:53 +00:00
|
|
|
#include <gdk/gdktypes.h>
|
2017-12-02 13:38:57 +00:00
|
|
|
#include <gio/gio.h>
|
2014-05-29 03:55:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GDK_TYPE_CLIPBOARD (gdk_clipboard_get_type ())
|
|
|
|
#define GDK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_CLIPBOARD, GdkClipboard))
|
|
|
|
#define GDK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_CLIPBOARD))
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-05-29 03:55:53 +00:00
|
|
|
GType gdk_clipboard_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-05-29 03:55:53 +00:00
|
|
|
GdkDisplay * gdk_clipboard_get_display (GdkClipboard *clipboard);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2014-05-29 03:55:53 +00:00
|
|
|
GdkContentFormats * gdk_clipboard_get_formats (GdkClipboard *clipboard);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-24 05:17:37 +00:00
|
|
|
gboolean gdk_clipboard_is_local (GdkClipboard *clipboard);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-24 05:17:37 +00:00
|
|
|
GdkContentProvider * gdk_clipboard_get_content (GdkClipboard *clipboard);
|
2014-05-29 03:55:53 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-29 22:23:36 +00:00
|
|
|
void gdk_clipboard_store_async (GdkClipboard *clipboard,
|
|
|
|
int io_priority,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-29 22:23:36 +00:00
|
|
|
gboolean gdk_clipboard_store_finish (GdkClipboard *clipboard,
|
|
|
|
GAsyncResult *result,
|
|
|
|
GError **error);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-22 08:25:35 +00:00
|
|
|
void gdk_clipboard_read_async (GdkClipboard *clipboard,
|
|
|
|
const char **mime_types,
|
|
|
|
int io_priority,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-22 08:25:35 +00:00
|
|
|
GInputStream * gdk_clipboard_read_finish (GdkClipboard *clipboard,
|
|
|
|
GAsyncResult *result,
|
2019-04-02 11:37:54 +00:00
|
|
|
const char **out_mime_type,
|
2017-11-22 08:25:35 +00:00
|
|
|
GError **error);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-22 09:44:30 +00:00
|
|
|
void gdk_clipboard_read_value_async (GdkClipboard *clipboard,
|
|
|
|
GType type,
|
|
|
|
int io_priority,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-22 09:44:30 +00:00
|
|
|
const GValue * gdk_clipboard_read_value_finish (GdkClipboard *clipboard,
|
2017-12-05 07:52:48 +00:00
|
|
|
GAsyncResult *result,
|
2017-11-22 09:44:30 +00:00
|
|
|
GError **error);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-02 11:37:54 +00:00
|
|
|
void gdk_clipboard_read_texture_async (GdkClipboard *clipboard,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-02 11:37:54 +00:00
|
|
|
GdkTexture * gdk_clipboard_read_texture_finish (GdkClipboard *clipboard,
|
|
|
|
GAsyncResult *result,
|
|
|
|
GError **error);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-22 13:19:02 +00:00
|
|
|
void gdk_clipboard_read_text_async (GdkClipboard *clipboard,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GAsyncReadyCallback callback,
|
|
|
|
gpointer user_data);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-22 13:19:02 +00:00
|
|
|
char * gdk_clipboard_read_text_finish (GdkClipboard *clipboard,
|
2017-12-05 07:52:48 +00:00
|
|
|
GAsyncResult *result,
|
2017-11-22 13:19:02 +00:00
|
|
|
GError **error);
|
2014-05-29 03:55:53 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-24 19:42:40 +00:00
|
|
|
gboolean gdk_clipboard_set_content (GdkClipboard *clipboard,
|
2017-11-24 05:17:37 +00:00
|
|
|
GdkContentProvider *provider);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-12-05 07:09:54 +00:00
|
|
|
void gdk_clipboard_set (GdkClipboard *clipboard,
|
|
|
|
GType type,
|
|
|
|
...);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-12-05 07:09:54 +00:00
|
|
|
void gdk_clipboard_set_valist (GdkClipboard *clipboard,
|
|
|
|
GType type,
|
|
|
|
va_list args);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-12-05 07:09:54 +00:00
|
|
|
void gdk_clipboard_set_value (GdkClipboard *clipboard,
|
|
|
|
const GValue *value);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-11-24 05:17:37 +00:00
|
|
|
void gdk_clipboard_set_text (GdkClipboard *clipboard,
|
|
|
|
const char *text);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-12-02 13:38:57 +00:00
|
|
|
void gdk_clipboard_set_texture (GdkClipboard *clipboard,
|
|
|
|
GdkTexture *texture);
|
2017-11-24 05:17:37 +00:00
|
|
|
|
2022-09-23 23:08:25 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkClipboard, g_object_unref)
|
|
|
|
|
2014-05-29 03:55:53 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|