2010-12-19 20:43:30 +00:00
|
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2010 Javier Jardón
|
|
|
|
|
*
|
|
|
|
|
* 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.1 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/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* The contents of a selection are returned in a GtkSelectionData
|
|
|
|
|
* structure. selection/target identify the request. type specifies
|
|
|
|
|
* the type of the return; if length < 0, and the data should be
|
|
|
|
|
* ignored. This structure has object semantics - no fields should be
|
|
|
|
|
* modified directly, they should not be created directly, and
|
|
|
|
|
* pointers to them should not be stored beyond the duration of a
|
2014-02-07 18:35:54 +00:00
|
|
|
|
* callback. (If the last is changed, we’ll need to add reference
|
2010-12-19 20:43:30 +00:00
|
|
|
|
* counting.) The time field gives the timestamp at which the data was
|
|
|
|
|
* sent.
|
|
|
|
|
*/
|
|
|
|
|
|
2014-04-05 06:04:12 +00:00
|
|
|
|
#ifndef __GTK_SELECTION_PRIVATE_H__
|
|
|
|
|
#define __GTK_SELECTION_PRIVATE_H__
|
2011-01-15 00:20:56 +00:00
|
|
|
|
|
|
|
|
|
#include "gtkselection.h"
|
|
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2010-12-19 20:43:30 +00:00
|
|
|
|
struct _GtkSelectionData
|
|
|
|
|
{
|
2014-01-20 20:18:21 +00:00
|
|
|
|
/*< private >*/
|
2010-12-19 20:43:30 +00:00
|
|
|
|
GdkAtom selection;
|
|
|
|
|
GdkAtom target;
|
|
|
|
|
GdkAtom type;
|
|
|
|
|
gint format;
|
|
|
|
|
guchar *data;
|
|
|
|
|
gint length;
|
|
|
|
|
GdkDisplay *display;
|
|
|
|
|
};
|
2011-01-15 00:20:56 +00:00
|
|
|
|
|
|
|
|
|
struct _GtkTargetList
|
|
|
|
|
{
|
2014-01-20 20:18:21 +00:00
|
|
|
|
/*< private >*/
|
2011-01-15 00:20:56 +00:00
|
|
|
|
GList *list;
|
|
|
|
|
guint ref_count;
|
2016-05-19 14:55:24 +00:00
|
|
|
|
};
|
2011-01-15 00:20:56 +00:00
|
|
|
|
|
2017-11-14 04:34:15 +00:00
|
|
|
|
GdkAtom *gtk_target_list_get_atoms (GtkTargetList *targets,
|
|
|
|
|
guint *n_atoms);
|
|
|
|
|
|
2011-01-15 00:20:56 +00:00
|
|
|
|
gboolean _gtk_selection_clear (GtkWidget *widget,
|
|
|
|
|
GdkEventSelection *event);
|
|
|
|
|
gboolean _gtk_selection_request (GtkWidget *widget,
|
|
|
|
|
GdkEventSelection *event);
|
|
|
|
|
gboolean _gtk_selection_incr_event (GdkWindow *window,
|
|
|
|
|
GdkEventProperty *event);
|
|
|
|
|
gboolean _gtk_selection_notify (GtkWidget *widget,
|
|
|
|
|
GdkEventSelection *event);
|
|
|
|
|
gboolean _gtk_selection_property_notify (GtkWidget *widget,
|
|
|
|
|
GdkEventProperty *event);
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
2014-04-05 06:04:12 +00:00
|
|
|
|
#endif /* __GTK_SELECTION_PRIVATE_H__ */
|