Sun, 07 Jun 2020 02:39:43 -0500
closing merged branch
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* Pidgin is the legal property of its developers, whose names are too numerous |
| 10298 | 2 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 3 | * source distribution. | |
| 4 | * | |
| 5 | * This program is free software; you can redistribute it and/or modify | |
| 6 | * it under the terms of the GNU General Public License as published by | |
| 7 | * the Free Software Foundation; either version 2, or (at your option) | |
| 8 | * any later version. | |
| 9 | * | |
| 10 | * This program 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 | |
| 13 | * GNU General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16254
diff
changeset
|
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA. |
| 10298 | 18 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
19 | |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
20 | #ifndef _PIDGIN_DND_HINTS_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35451
diff
changeset
|
21 | #define _PIDGIN_DND_HINTS_H_ |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
22 | /** |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
23 | * SECTION:gtkdnd-hints |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
24 | * @section_id: pidgin-gtkdnd-hints |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
25 | * @short_description: <filename>gtkdnd-hints.h</filename> |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
26 | * @title: Drag-and-Drop Arrow Hints |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
27 | */ |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
28 | |
| 10298 | 29 | #include <glib.h> |
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20147
diff
changeset
|
30 | #include <gtk/gtk.h> |
| 10298 | 31 | |
| 32 | /** | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
33 | * PidginDndHintWindowId: |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
34 | * @HINT_ARROW_UP: Up arrow. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
35 | * @HINT_ARROW_DOWN: Down arrow. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
36 | * @HINT_ARROW_LEFT: Left arrow. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
37 | * @HINT_ARROW_RIGHT: Right arrow. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
38 | * |
| 10298 | 39 | * Conversation drag-and-drop arrow types. |
| 40 | */ | |
| 41 | typedef enum | |
| 42 | { | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
43 | HINT_ARROW_UP, |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
44 | HINT_ARROW_DOWN, |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
45 | HINT_ARROW_LEFT, |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
46 | HINT_ARROW_RIGHT |
| 10298 | 47 | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
48 | } PidginDndHintWindowId; |
| 10298 | 49 | |
| 50 | /** | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
51 | * PidginDndHintPosition: |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
52 | * @HINT_POSITION_RIGHT: Position to the right of a tab. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
53 | * @HINT_POSITION_LEFT: Position to the left of a tab. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
54 | * @HINT_POSITION_TOP: Position above a tab. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
55 | * @HINT_POSITION_BOTTOM: Position below a tab. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
56 | * @HINT_POSITION_CENTER: Position in the center of a tab. |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
57 | * |
| 10298 | 58 | * Conversation drag-and-drop arrow positions. |
| 59 | */ | |
| 60 | typedef enum { | |
| 61 | ||
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
62 | HINT_POSITION_RIGHT, |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
63 | HINT_POSITION_LEFT, |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
64 | HINT_POSITION_TOP, |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
65 | HINT_POSITION_BOTTOM, |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
66 | HINT_POSITION_CENTER |
| 10298 | 67 | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
68 | } PidginDndHintPosition; |
| 10298 | 69 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
70 | G_BEGIN_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
71 | |
| 10298 | 72 | /** |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
73 | * pidgin_dnd_hints_show: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32790
diff
changeset
|
74 | * @id: The ID of the hint to show. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32790
diff
changeset
|
75 | * @x: The X location to show it at. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32790
diff
changeset
|
76 | * @y: The Y location to show it at. |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
77 | * |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
78 | * Shows a drag-and-drop hint at the specified location. |
| 10298 | 79 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
80 | void pidgin_dnd_hints_show(PidginDndHintWindowId id, gint x, gint y); |
| 10298 | 81 | |
| 82 | /** | |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
83 | * pidgin_dnd_hints_hide: |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
84 | * @id: The ID of the hint to hide. |
| 10298 | 85 | * |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
86 | * Hides the specified drag-and-drop hint. |
| 10298 | 87 | */ |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
88 | void pidgin_dnd_hints_hide(PidginDndHintWindowId id); |
| 10298 | 89 | |
| 90 | /** | |
| 35501 | 91 | * pidgin_dnd_hints_hide_all: |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
92 | * |
| 10298 | 93 | * Hides all drag-and-drop hints. |
| 94 | */ | |
| 35501 | 95 | void pidgin_dnd_hints_hide_all(void); |
| 10298 | 96 | |
| 97 | /** | |
| 35501 | 98 | * pidgin_dnd_hints_show_relative: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32790
diff
changeset
|
99 | * @id: The ID of the hint. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32790
diff
changeset
|
100 | * @widget: The widget that the hint is relative to. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32790
diff
changeset
|
101 | * @horiz: The horizontal relative position. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32790
diff
changeset
|
102 | * @vert: The vertical relative position. |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
103 | * |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
104 | * Shows a drag-and-drop hint relative to a widget. |
| 10298 | 105 | */ |
| 35501 | 106 | void pidgin_dnd_hints_show_relative(PidginDndHintWindowId id, GtkWidget *widget, |
|
35500
ae6432ea326f
Fixed namespace issues in Pidgin.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
107 | PidginDndHintPosition horiz, PidginDndHintPosition vert); |
| 10298 | 108 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
109 | G_END_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
110 | |
| 15882 | 111 | #endif /* _PIDGIN_DND_HINTS_H_ */ |