]> Pileus Git - ~andy/gtk/blob - gtk/gtkselectionprivate.h
831753fd332aa4e07b6b0010b75be80485afe736
[~andy/gtk] / gtk / gtkselectionprivate.h
1 /* GTK - The GIMP Toolkit
2  *
3  * Copyright (C) 2010 Javier Jardón
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17  */
18
19
20 /* The contents of a selection are returned in a GtkSelectionData
21  * structure. selection/target identify the request.  type specifies
22  * the type of the return; if length < 0, and the data should be
23  * ignored. This structure has object semantics - no fields should be
24  * modified directly, they should not be created directly, and
25  * pointers to them should not be stored beyond the duration of a
26  * callback. (If the last is changed, we'll need to add reference
27  * counting.) The time field gives the timestamp at which the data was
28  * sent.
29  */
30
31 struct _GtkSelectionData
32 {
33   GdkAtom       selection;
34   GdkAtom       target;
35   GdkAtom       type;
36   gint          format;
37   guchar       *data;
38   gint          length;
39   GdkDisplay   *display;
40 };