pidgin/pidgintooltip.h

Wed, 29 Jan 2014 05:28:33 +0530

author
Ankit Vani <a@nevitus.org>
date
Wed, 29 Jan 2014 05:28:33 +0530
branch
soc.2013.gobjectification.plugins
changeset 37017
8e2b68c79fa1
parent 33161
c248c062f272
child 37021
04c99b24db84
permissions
-rw-r--r--

Convert doxygen's @return and @param commands for gtk-doc

21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
1 /**
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
2 * @file pidgintooltip.h Pidgin Tooltip API
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
3 * @ingroup pidgin
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
4 */
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
5
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
6 /* pidgin
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
7 *
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
8 * Pidgin is the legal property of its developers, whose names are too numerous
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
10 * source distribution.
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
11 *
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
15 * (at your option) any later version.
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
16 *
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
20 * GNU General Public License for more details.
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
21 *
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
25 */
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
26 #ifndef _PIDGIN_TOOLTIP_H_
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
27 #define _PIDGIN_TOOLTIP_H_
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
28
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
29 #include <gtk/gtk.h>
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
30
21998
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
31 /**
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
32 * @tipwindow: The window for the tooltip.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
33 * @path: The GtkTreePath representing the row under the cursor.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
34 * @userdata: The userdata set during pidgin_tooltip_setup_for_treeview.
21998
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
35 * @param w The value of this should be set to the desired width of the tooltip window.
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
36 * @param h The value of this should be set to the desired height of the tooltip window.
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
37 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
38 * Returns: @c TRUE if the tooltip was created correctly, @c FALSE otherwise.
21998
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
39 */
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
40 typedef gboolean (*PidginTooltipCreateForTree)(GtkWidget *tipwindow,
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
41 GtkTreePath *path, gpointer userdata, int *w, int *h);
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
42
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
43 /**
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
44 * @tipwindow: The window for the tooltip.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
45 * @userdata: The userdata set during pidgin_tooltip_show.
21998
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
46 * @param w The value of this should be set to the desired width of the tooltip window.
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
47 * @param h The value of this should be set to the desired height of the tooltip window.
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
48 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
49 * Returns: @c TRUE if the tooltip was created correctly, @c FALSE otherwise.
21998
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
50 */
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
51 typedef gboolean (*PidginTooltipCreate)(GtkWidget *tipwindow,
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
52 gpointer userdata, int *w, int *h);
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
53
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
54 /**
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
55 * @tipwindow: The window for the tooltip.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
56 * @cr: The cairo context for drawing.
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
57 * @userdata: The userdata set during pidgin_tooltip_setup_for_treeview or pidgin_tooltip_show.
21998
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
58 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
59 * Returns: @c TRUE if the tooltip was painted correctly, @c FALSE otherwise.
21998
3dbae318c88d Refactor some of the tooltip drawing functions. And add some pretend docs.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21903
diff changeset
60 */
33161
c248c062f272 Pass the cairo context to the tooltip paint function.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
61 typedef gboolean (*PidginTooltipPaint)(GtkWidget *tipwindow, cairo_t *cr,
c248c062f272 Pass the cairo context to the tooltip paint function.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32790
diff changeset
62 gpointer userdata);
21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
63
32790
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32438
diff changeset
64 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: 32438
diff changeset
65
21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
66 /**
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
67 * Setup tooltip drawing functions for a treeview.
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
68 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
69 * @tree: The treeview
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
70 * @userdata: The userdata to send to the callback functions
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
71 * @create_cb: Callback function to create the tooltip for a GtkTreePath
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
72 * @paint_cb: Callback function to paint the tooltip
21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
73 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
74 * Returns: @c TRUE if the tooltip callbacks were setup correctly.
21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
75 */
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
76 gboolean pidgin_tooltip_setup_for_treeview(GtkWidget *tree, gpointer userdata,
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
77 PidginTooltipCreateForTree create_cb, PidginTooltipPaint paint_cb);
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
78
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
79 /**
22064
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
80 * Setup tooltip drawing functions for any widget.
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
81 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
82 * @widget: The widget
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
83 * @userdata: The userdata to send to the callback functions
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
84 * @create_cb: Callback function to create the tooltip for the widget
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
85 * @paint_cb: Callback function to paint the tooltip
22064
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
86 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
87 * Returns: @c TRUE if the tooltip callbacks were setup correctly.
22064
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
88 */
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
89 gboolean pidgin_tooltip_setup_for_widget(GtkWidget *widget, gpointer userdata,
22362
cb8ef3599f3d Fix some minor 'make docs' errors. For some reason the callback
Mark Doliner <markdoliner@pidgin.im>
parents: 22064
diff changeset
90 PidginTooltipCreate create_cb, PidginTooltipPaint paint_cb);
22064
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
91
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
92 /**
21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
93 * Destroy the tooltip.
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
94 */
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
95 void pidgin_tooltip_destroy(void);
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
96
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
97 /**
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
98 * Create and show a tooltip.
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
99 *
37017
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
100 * @widget: The widget the tooltip is for
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
101 * @userdata: The userdata to send to the callback functions
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
102 * @create_cb: Callback function to create the tooltip from the GtkTreePath
8e2b68c79fa1 Convert doxygen's @return and @param commands for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 33161
diff changeset
103 * @paint_cb: Callback function to paint the tooltip
21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
104 */
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
105 void pidgin_tooltip_show(GtkWidget *widget, gpointer userdata,
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
106 PidginTooltipCreate create_cb, PidginTooltipPaint paint_cb);
22064
8b35fd51087d Use the new tooltip functions to draw the tooltips in the conversation window.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 21998
diff changeset
107
32790
b95c7c504118 Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32438
diff changeset
108 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: 32438
diff changeset
109
21903
5b5ad54ae1da Some utility functions for showing tooltips. This is used by the buddylist,
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
110 #endif

mercurial