finch/libgnt/gnt.h

Fri, 07 Feb 2014 01:19:18 +0530

author
Ankit Vani <a@nevitus.org>
date
Fri, 07 Feb 2014 01:19:18 +0530
branch
soc.2013.gobjectification.plugins
changeset 37081
3e876e3e3131
parent 37075
cf3f735b09b7
child 37094
84873ce721dc
permissions
-rw-r--r--

Merge gtkdoc-conversion

18358
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18133
diff changeset
1 /*
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
2 * GNT - The GLib Ncurses Toolkit
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
3 *
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
4 * GNT is the legal property of its developers, whose names are too numerous
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
5 * to list here. Please refer to the COPYRIGHT file distributed with this
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
6 * source distribution.
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
7 *
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
8 * This library is free software; you can redistribute it and/or modify
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
9 * it under the terms of the GNU General Public License as published by
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
11 * (at your option) any later version.
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
12 *
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
13 * This program is distributed in the hope that it will be useful,
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
16 * GNU General Public License for more details.
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
17 *
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
18 * You should have received a copy of the GNU General Public License
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
19 * 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: 19551
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
21 */
35446
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
22 /**
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
23 * SECTION:gnt
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
24 * @section_id: libgnt-gnt
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
25 * @short_description: <filename>gnt.h</filename>
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
26 * @title: GNT API
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
27 */
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
28
21712
2702e711166c Include guards for gnt and include guard typo fix for QQ, from Andrew
Ka-Hing Cheung <khc@pidgin.im>
parents: 21243
diff changeset
29 #ifndef GNT_H
2702e711166c Include guards for gnt and include guard typo fix for QQ, from Andrew
Ka-Hing Cheung <khc@pidgin.im>
parents: 21243
diff changeset
30 #define GNT_H
2702e711166c Include guards for gnt and include guard typo fix for QQ, from Andrew
Ka-Hing Cheung <khc@pidgin.im>
parents: 21243
diff changeset
31
13852
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
32 #include <glib.h>
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
33 #include "gntwidget.h"
15814
2db42c6a13fa Add a gntclipboard. You can select text in a textview with the mouse, and paste it in an entry with ctrl-v (or rebind GntEntry's clipboard-paste).
Richard Nelson <wabz@pidgin.im>
parents: 14675
diff changeset
34 #include "gntclipboard.h"
13852
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
35 #include "gntcolors.h"
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
36 #include "gntkeys.h"
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
37
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
38 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
39 * gnt_init:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
40 *
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
41 * Initialize GNT.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
42 */
15874
46df7421a1b5 Enable DEBUG_CFLAGS in libgnt and fix up a number of compile warnings and
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15814
diff changeset
43 void gnt_init(void);
13852
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
44
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
45 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
46 * gnt_main:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
47 *
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
48 * Start running the mainloop for gnt.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
49 */
15874
46df7421a1b5 Enable DEBUG_CFLAGS in libgnt and fix up a number of compile warnings and
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15814
diff changeset
50 void gnt_main(void);
13852
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
51
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
52 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
53 * gnt_ascii_only:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
54 *
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
55 * Check whether the terminal is capable of UTF8 display.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
56 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
57 * Returns: %FALSE if the terminal is capable of drawing UTF-8, %TRUE otherwise.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
58 */
15874
46df7421a1b5 Enable DEBUG_CFLAGS in libgnt and fix up a number of compile warnings and
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15814
diff changeset
59 gboolean gnt_ascii_only(void);
13989
9a647311c9ac [gaim-migrate @ 16447]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13969
diff changeset
60
20939
13dd02add7c1 Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19859
diff changeset
61 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
62 * gnt_window_present:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
63 * @window: The window the present.
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
64 *
20939
13dd02add7c1 Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19859
diff changeset
65 * Present a window. If the event was triggered because of user interaction,
13dd02add7c1 Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19859
diff changeset
66 * the window is moved to the foreground. Otherwise, the Urgent hint is set.
13dd02add7c1 Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19859
diff changeset
67 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
68 * Since: 2.0.0 (gnt), 2.1.0 (pidgin)
20939
13dd02add7c1 Add @since doxygen tags for finch/libgnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 19859
diff changeset
69 */
18133
bc6e30a08d9a add gnt_window_present
Richard Nelson <wabz@pidgin.im>
parents: 17586
diff changeset
70 void gnt_window_present(GntWidget *window);
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
71
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
72 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
73 * gnt_screen_occupy:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
74 *
35474
ff5eccb9f797 Remove @internal
Ankit Vani <a@nevitus.org>
parents: 35446
diff changeset
75 * Internal function -- do not use.
ff5eccb9f797 Remove @internal
Ankit Vani <a@nevitus.org>
parents: 35446
diff changeset
76 * Use gnt_widget_show() instead.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
77 */
13931
a0a91e17f899 [gaim-migrate @ 16335]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13852
diff changeset
78 void gnt_screen_occupy(GntWidget *widget);
13852
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
79
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
80 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
81 * gnt_screen_release:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
82 *
35474
ff5eccb9f797 Remove @internal
Ankit Vani <a@nevitus.org>
parents: 35446
diff changeset
83 * Internal function -- do not use.
ff5eccb9f797 Remove @internal
Ankit Vani <a@nevitus.org>
parents: 35446
diff changeset
84 * Use gnt_widget_hide() instead.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
85 */
13931
a0a91e17f899 [gaim-migrate @ 16335]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13852
diff changeset
86 void gnt_screen_release(GntWidget *widget);
13852
1d3ae9f34d42 [gaim-migrate @ 16308]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
87
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
88 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
89 * gnt_screen_update:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
90 *
35474
ff5eccb9f797 Remove @internal
Ankit Vani <a@nevitus.org>
parents: 35446
diff changeset
91 * Internal function -- do not use.
ff5eccb9f797 Remove @internal
Ankit Vani <a@nevitus.org>
parents: 35446
diff changeset
92 * Use gnt_widget_draw() instead.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
93 */
13950
bd8d39b3a9e2 [gaim-migrate @ 16369]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13940
diff changeset
94 void gnt_screen_update(GntWidget *widget);
bd8d39b3a9e2 [gaim-migrate @ 16369]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13940
diff changeset
95
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
96 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
97 * gnt_screen_resize_widget:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
98 * @widget: The widget to resize.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
99 * @width: The desired width.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
100 * @height: The desired height.
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
101 *
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
102 * Resize a widget.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
103 */
14005
198d1658b390 [gaim-migrate @ 16480]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13989
diff changeset
104 void gnt_screen_resize_widget(GntWidget *widget, int width, int height);
198d1658b390 [gaim-migrate @ 16480]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13989
diff changeset
105
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
106 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
107 * gnt_screen_move_widget:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
108 * @widget: The widget to move.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
109 * @x: The desired x-coordinate.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
110 * @y: The desired y-coordinate.
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
111 *
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
112 * Move a widget.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
113 */
14201
d54dc208efe2 [gaim-migrate @ 16781]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14005
diff changeset
114 void gnt_screen_move_widget(GntWidget *widget, int x, int y);
d54dc208efe2 [gaim-migrate @ 16781]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14005
diff changeset
115
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
116 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
117 * gnt_screen_rename_widget:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
118 * @widget: The widget to rename.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
119 * @text: The new name for the widget.
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
120 *
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
121 * Rename a widget.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
122 */
14450
1ac2b6e98ef8 [gaim-migrate @ 17094]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14201
diff changeset
123 void gnt_screen_rename_widget(GntWidget *widget, const char *text);
1ac2b6e98ef8 [gaim-migrate @ 17094]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14201
diff changeset
124
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
125 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
126 * gnt_widget_has_focus:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
127 * @widget: The widget.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
128 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
129 * Check whether a widget has focus.
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
130 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
131 * Returns: %TRUE if the widget has the current focus, %FALSE otherwise.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
132 */
13958
bd1c3bb3f33d [gaim-migrate @ 16381]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13950
diff changeset
133 gboolean gnt_widget_has_focus(GntWidget *widget);
13959
49d3a87c2679 [gaim-migrate @ 16382]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13958
diff changeset
134
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
135 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
136 * gnt_widget_set_urgent:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
137 * @widget: The widget to set the URGENT hint for.
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
138 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
139 * Set the URGENT hint for a widget.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
140 */
13959
49d3a87c2679 [gaim-migrate @ 16382]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13958
diff changeset
141 void gnt_widget_set_urgent(GntWidget *widget);
13969
0541f389442e [gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13959
diff changeset
142
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
143 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
144 * gnt_register_action:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
145 * @label: The user-visible label for the action.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
146 * @callback: The callback function for the action.
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
147 *
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
148 * Register a global action.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
149 */
22104
56970903b8e9 Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@pidgin.im>
parents: 21712
diff changeset
150 void gnt_register_action(const char *label, void (*callback)(void));
14467
359d9aad0f01 [gaim-migrate @ 17113]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14450
diff changeset
151
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
152 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
153 * gnt_screen_menu_show:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
154 * @menu: The menu to display.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
155 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
156 * Show a menu.
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
157 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
158 * Returns: %TRUE if the menu is displayed, %FALSE otherwise (e.g., if another menu is currently displayed).
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
159 */
14675
be8af28d1980 [gaim-migrate @ 17341]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14467
diff changeset
160 gboolean gnt_screen_menu_show(gpointer menu);
be8af28d1980 [gaim-migrate @ 17341]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 14467
diff changeset
161
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
162 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
163 * gnt_quit:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
164 *
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
165 * Terminate the mainloop of gnt.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
166 */
15874
46df7421a1b5 Enable DEBUG_CFLAGS in libgnt and fix up a number of compile warnings and
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15814
diff changeset
167 void gnt_quit(void);
13969
0541f389442e [gaim-migrate @ 16402]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 13959
diff changeset
168
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
169 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
170 * gnt_get_clipboard:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
171 *
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
172 * Get the global clipboard.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
173 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
174 * Returns: The clipboard.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
175 */
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
176 GntClipboard * gnt_get_clipboard(void);
15814
2db42c6a13fa Add a gntclipboard. You can select text in a textview with the mouse, and paste it in an entry with ctrl-v (or rebind GntEntry's clipboard-paste).
Richard Nelson <wabz@pidgin.im>
parents: 14675
diff changeset
177
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
178 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
179 * gnt_get_clipboard_string:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
180 *
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
181 * Get the string in the clipboard.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
182 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
183 * Returns: A copy of the string in the clipboard. The caller must g_free() the string.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
184 */
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
185 gchar * gnt_get_clipboard_string(void);
15814
2db42c6a13fa Add a gntclipboard. You can select text in a textview with the mouse, and paste it in an entry with ctrl-v (or rebind GntEntry's clipboard-paste).
Richard Nelson <wabz@pidgin.im>
parents: 14675
diff changeset
186
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
187 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
188 * gnt_set_clipboard_string:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
189 * @string: The new content of the new clipboard.
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
190 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
191 * Set the contents of the global clipboard.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
192 */
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
193 void gnt_set_clipboard_string(const gchar *string);
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 15991
diff changeset
194
18599
7e31405a2cbb Allow executing another application (eg. PAGER) that will use the same
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
195 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
196 * gnt_giveup_console:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
197 * @wd: The working directory for the new application.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
198 * @argv: The argument vector.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
199 * @envp: The environment, or %NULL.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
200 * @stin: Location to store the child's stdin, or %NULL.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
201 * @stout: Location to store the child's stdout, or %NULL.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
202 * @sterr: Location to store the child's stderr, or %NULL.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
203 * @callback: The callback to call after the child exits.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
204 * @data: The data to pass to the callback.
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
205 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
206 * Spawn a different application that will consume the console.
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
207 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
208 * Returns: %TRUE if the child was successfully spawned, %FALSE otherwise.
18599
7e31405a2cbb Allow executing another application (eg. PAGER) that will use the same
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
209 */
7e31405a2cbb Allow executing another application (eg. PAGER) that will use the same
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
210 gboolean gnt_giveup_console(const char *wd, char **argv, char **envp,
18778
7cf5400593b8 Allow having a callback after the child process terminates. Use the callback
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18599
diff changeset
211 gint *stin, gint *stout, gint *sterr,
7cf5400593b8 Allow having a callback after the child process terminates. Use the callback
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18599
diff changeset
212 void (*callback)(int status, gpointer data), gpointer data);
18599
7e31405a2cbb Allow executing another application (eg. PAGER) that will use the same
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
213
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
214 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
215 * gnt_is_refugee:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
216 *
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
217 * Check whether a child process is in control of the current terminal.
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
218 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
219 * Returns: %TRUE if a child process (eg., PAGER) is occupying the current
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 33649
diff changeset
220 * terminal, %FALSE otherwise.
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
221 */
18599
7e31405a2cbb Allow executing another application (eg. PAGER) that will use the same
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
222 gboolean gnt_is_refugee(void);
21243
287bfd29dae6 Doxygen for gnt.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 20939
diff changeset
223
21712
2702e711166c Include guards for gnt and include guard typo fix for QQ, from Andrew
Ka-Hing Cheung <khc@pidgin.im>
parents: 21243
diff changeset
224 #endif /* GNT_H */

mercurial