4359
|
1 /**
|
|
2 * @file dnd-hints.h Drag-and-Drop arrow hints
|
|
3 *
|
|
4 * Copyright (C) 2002-2003, Christian Hammond <chipx86@gnupdate.org>
|
|
5 *
|
|
6 * Copyright (C) 2001 Ricardo Fernández Pascual
|
|
7 *
|
|
8 * This program is free software; you can redistribute it and/or modify
|
|
9 * it under the terms of the GNU General Public License as published by
|
|
10 * the Free Software Foundation; either version 2, or (at your option)
|
|
11 * any later version.
|
|
12 *
|
|
13 * This program is distributed in the hope that it will be useful,
|
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 * GNU General Public License for more details.
|
|
17 *
|
|
18 * You should have received a copy of the GNU General Public License
|
|
19 * along with this program; if not, write to the Free Software
|
|
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
21 */
|
|
22 #ifndef _GAIM_DND_HINTS_H_
|
|
23 #define _GAIM_DND_HINTS_H_
|
|
24
|
|
25 #include <glib.h>
|
|
26 #include <gtk/gtkwidget.h>
|
|
27
|
|
28 /**
|
|
29 * Conversation drag-and-drop arrow types.
|
|
30 */
|
|
31 typedef enum
|
|
32 {
|
|
33 HINT_ARROW_UP, /**< Up arrow. */
|
|
34 HINT_ARROW_DOWN, /**< Down arrow. */
|
|
35 HINT_ARROW_LEFT, /**< Left arrow. */
|
|
36 HINT_ARROW_RIGHT /**< Right arrow. */
|
|
37
|
|
38 } DndHintWindowId;
|
|
39
|
|
40 /**
|
|
41 * Conversation drag-and-drop arrow positions.
|
|
42 */
|
|
43 typedef enum {
|
|
44
|
|
45 HINT_POSITION_RIGHT, /**< Position to the right of a tab. */
|
|
46 HINT_POSITION_LEFT, /**< Position to the left of a tab. */
|
|
47 HINT_POSITION_TOP, /**< Position above a tab. */
|
|
48 HINT_POSITION_BOTTOM, /**< Position below a tab. */
|
|
49 HINT_POSITION_CENTER /**< Position in the center of a tab. */
|
|
50
|
|
51 } DndHintPosition;
|
|
52
|
|
53 /**
|
|
54 * Shows a drag-and-drop hint at the specified location.
|
|
55 *
|
|
56 * @param id The ID of the hint to show.
|
|
57 * @param x The X location to show it at.
|
|
58 * @param y The Y location to show it at.
|
|
59 */
|
|
60 void dnd_hints_show(DndHintWindowId id, gint x, gint y);
|
|
61
|
|
62 /**
|
|
63 * Hides the specified drag-and-drop hint.
|
|
64 *
|
|
65 * @param id The ID of the hint to hide.
|
|
66 */
|
|
67 void dnd_hints_hide(DndHintWindowId id);
|
|
68
|
|
69 /**
|
|
70 * Hides all drag-and-drop hints.
|
|
71 */
|
|
72 void dnd_hints_hide_all(void);
|
|
73
|
|
74 /**
|
|
75 * Shows a drag-and-drop hint relative to a widget.
|
|
76 *
|
|
77 * @param id The ID of the hint.
|
|
78 * @param widget The widget that the hint is relative to.
|
|
79 * @param horiz The horizontal relative position.
|
|
80 * @param vert The vertical relative position.
|
|
81 */
|
|
82 void dnd_hints_show_relative(DndHintWindowId id, GtkWidget *widget,
|
|
83 DndHintPosition horiz, DndHintPosition vert);
|
|
84
|
|
85 #endif /* _GAIM_DND_HINTS_H_ */
|