annotate src/gtkdnd-hints.h @ 12635:8584cc19ee48

[gaim-migrate @ 14971] Change the accelerator on Paste as Plain Text from s to t. I can't get these accelerators to work when I pull up the menu. Anyway, this is in preparation for the Send menu change I'm about to commit. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 23 Dec 2005 02:03:41 +0000
parents 02b95a0b88e2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10298
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
1 /**
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
2 * @file gtkdnd-hints.h GTK+ Drag-and-Drop arrow hints
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
3 * @ingroup gtkui
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
4 *
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
5 * Gaim is the legal property of its developers, whose names are too numerous
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
7 * source distribution.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
8 *
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
11 * the Free Software Foundation; either version 2, or (at your option)
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
12 * any later version.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
13 *
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
17 * GNU General Public License for more details.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
18 *
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
20 * along with this program; if not, write to the Free Software
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
22 */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
23 #ifndef _GAIM_DND_HINTS_H_
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
24 #define _GAIM_DND_HINTS_H_
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
25
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
26 #include <glib.h>
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
27 #include <gtk/gtkwidget.h>
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
28
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
29 /**
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
30 * Conversation drag-and-drop arrow types.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
31 */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
32 typedef enum
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
33 {
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
34 HINT_ARROW_UP, /**< Up arrow. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
35 HINT_ARROW_DOWN, /**< Down arrow. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
36 HINT_ARROW_LEFT, /**< Left arrow. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
37 HINT_ARROW_RIGHT /**< Right arrow. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
38
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
39 } DndHintWindowId;
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
40
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
41 /**
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
42 * Conversation drag-and-drop arrow positions.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
43 */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
44 typedef enum {
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
45
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
46 HINT_POSITION_RIGHT, /**< Position to the right of a tab. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
47 HINT_POSITION_LEFT, /**< Position to the left of a tab. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
48 HINT_POSITION_TOP, /**< Position above a tab. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
49 HINT_POSITION_BOTTOM, /**< Position below a tab. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
50 HINT_POSITION_CENTER /**< Position in the center of a tab. */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
51
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
52 } DndHintPosition;
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
53
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
54 /**
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
55 * Shows a drag-and-drop hint at the specified location.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
56 *
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
57 * @param id The ID of the hint to show.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
58 * @param x The X location to show it at.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
59 * @param y The Y location to show it at.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
60 */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
61 void dnd_hints_show(DndHintWindowId id, gint x, gint y);
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
62
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
63 /**
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
64 * Hides the specified drag-and-drop hint.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
65 *
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
66 * @param id The ID of the hint to hide.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
67 */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
68 void dnd_hints_hide(DndHintWindowId id);
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
69
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
70 /**
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
71 * Hides all drag-and-drop hints.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
72 */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
73 void dnd_hints_hide_all(void);
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
74
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
75 /**
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
76 * Shows a drag-and-drop hint relative to a widget.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
77 *
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
78 * @param id The ID of the hint.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
79 * @param widget The widget that the hint is relative to.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
80 * @param horiz The horizontal relative position.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
81 * @param vert The vertical relative position.
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
82 */
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
83 void dnd_hints_show_relative(DndHintWindowId id, GtkWidget *widget,
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
84 DndHintPosition horiz, DndHintPosition vert);
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
85
02b95a0b88e2 [gaim-migrate @ 11481]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
86 #endif /* _GAIM_DND_HINTS_H_ */