comparison finch/libgnt/gnt.h @ 21158:bddf964880cf

disapproval of revision '240095fc3a12eafe8418f57362c4b2a88da143c1'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 07 Nov 2007 13:49:26 +0000
parents 8d73d519155a
children e119edfc0fb0
comparison
equal deleted inserted replaced
21157:8d73d519155a 21158:bddf964880cf
44 #define G_PARAM_STATIC_NICK G_PARAM_PRIVATE 44 #define G_PARAM_STATIC_NICK G_PARAM_PRIVATE
45 #define G_PARAM_STATIC_BLURB G_PARAM_PRIVATE 45 #define G_PARAM_STATIC_BLURB G_PARAM_PRIVATE
46 #endif 46 #endif
47 47
48 /** 48 /**
49 * 49 *
50 */ 50 */
51 void gnt_init(void); 51 void gnt_init(void);
52 52
53 /** 53 /**
54 * 54 *
55 */ 55 */
56 void gnt_main(void); 56 void gnt_main(void);
57 57
58 /** 58 /**
59 * 59 *
60 * 60 *
61 * @return 61 * @return
62 */ 62 */
63 gboolean gnt_ascii_only(void); 63 gboolean gnt_ascii_only(void);
64 64
65 /** 65 /**
66 * Present a window. If the event was triggered because of user interaction, 66 * Present a window. If the event was triggered because of user interaction,
67 * the window is moved to the foreground. Otherwise, the Urgent hint is set. 67 * the window is moved to the foreground. Otherwise, the Urgent hint is set.
68 * 68 *
69 * @param window The window to present. 69 * @param window The window the present.
70 * 70 *
71 * @since 2.0.0 (gnt), 2.1.0 (pidgin) 71 * @since 2.0.0 (gnt), 2.1.0 (pidgin)
72 */ 72 */
73 void gnt_window_present(GntWidget *window); 73 void gnt_window_present(GntWidget *window);
74
75 /** 74 /**
76 * 75 *
76 * @param widget
77 */ 77 */
78 void gnt_screen_occupy(GntWidget *widget); 78 void gnt_screen_occupy(GntWidget *widget);
79 79
80 /** 80 /**
81 * 81 *
82 * @param widget
82 */ 83 */
83 void gnt_screen_release(GntWidget *widget); 84 void gnt_screen_release(GntWidget *widget);
84 85
85 /** 86 /**
86 * 87 *
88 * @param widget
87 */ 89 */
88 void gnt_screen_update(GntWidget *widget); 90 void gnt_screen_update(GntWidget *widget);
89 91
90 /** 92 /**
91 * 93 *
94 * @param widget
95 * @param width
96 * @param height
92 */ 97 */
93 void gnt_screen_resize_widget(GntWidget *widget, int width, int height); 98 void gnt_screen_resize_widget(GntWidget *widget, int width, int height);
94 99
95 /** 100 /**
96 * 101 *
102 * @param widget
103 * @param x
104 * @param y
97 */ 105 */
98 void gnt_screen_move_widget(GntWidget *widget, int x, int y); 106 void gnt_screen_move_widget(GntWidget *widget, int x, int y);
99 107
100 /** 108 /**
101 * 109 *
110 * @param widget
111 * @param text
102 */ 112 */
103 void gnt_screen_rename_widget(GntWidget *widget, const char *text); 113 void gnt_screen_rename_widget(GntWidget *widget, const char *text);
104 114
105 /** 115 /**
106 * 116 *
117 * @param widget
107 * 118 *
108 * @return 119 * @return
109 */ 120 */
110 gboolean gnt_widget_has_focus(GntWidget *widget); 121 gboolean gnt_widget_has_focus(GntWidget *widget);
111 122
112 /** 123 /**
113 * 124 *
125 * @param widget
114 */ 126 */
115 void gnt_widget_set_urgent(GntWidget *widget); 127 void gnt_widget_set_urgent(GntWidget *widget);
116 128
117 /** 129 /**
118 * 130 *
131 * @param label
132 * @param callback
119 */ 133 */
120 void gnt_register_action(const char *label, void (*callback)()); 134 void gnt_register_action(const char *label, void (*callback)());
121 135
122 /** 136 /**
123 * 137 *
138 * @param menu
124 * 139 *
125 * @return 140 * @return
126 */ 141 */
127 gboolean gnt_screen_menu_show(gpointer menu); 142 gboolean gnt_screen_menu_show(gpointer menu);
128 143
129 /** 144 /**
130 * 145 *
131 */ 146 */
132 void gnt_quit(void); 147 void gnt_quit(void);
133 148
134 /** 149 /**
135 * 150 *
136 * 151 *
137 * @return 152 * @return
138 */ 153 */
139 GntClipboard * gnt_get_clipboard(void); 154 GntClipboard * gnt_get_clipboard(void);
140 155
141 /** 156 /**
142 * 157 *
143 * 158 *
144 * @return 159 * @return
145 */ 160 */
146 gchar * gnt_get_clipboard_string(void); 161 gchar * gnt_get_clipboard_string(void);
147 162
148 /** 163 /**
149 * 164 *
165 * @param string
150 */ 166 */
151 void gnt_set_clipboard_string(gchar *string); 167 void gnt_set_clipboard_string(gchar *string);
152 168
153 /** 169 /**
154 * Spawn a different application that will consume the console. 170 * Spawn a different application that will consume the console.