gnt.h
Go to the documentation of this file.00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef GNT_H
00034 #define GNT_H
00035
00036 #include <glib.h>
00037 #include "gntwidget.h"
00038 #include "gntclipboard.h"
00039 #include "gntcolors.h"
00040 #include "gntkeys.h"
00041
00045 #if !GLIB_CHECK_VERSION(2,8,0)
00046 #define G_PARAM_STATIC_NAME G_PARAM_PRIVATE
00047 #define G_PARAM_STATIC_NICK G_PARAM_PRIVATE
00048 #define G_PARAM_STATIC_BLURB G_PARAM_PRIVATE
00049 #endif
00050
00051 #if !GLIB_CHECK_VERSION(2,14,0)
00052 #define g_timeout_add_seconds(time, callback, data) g_timeout_add(time * 1000, callback, data)
00053 #endif
00054
00058 void gnt_init(void);
00059
00063 void gnt_main(void);
00064
00070 gboolean gnt_ascii_only(void);
00071
00080 void gnt_window_present(GntWidget *window);
00081
00086 void gnt_screen_occupy(GntWidget *widget);
00087
00092 void gnt_screen_release(GntWidget *widget);
00093
00098 void gnt_screen_update(GntWidget *widget);
00099
00107 void gnt_screen_resize_widget(GntWidget *widget, int width, int height);
00108
00116 void gnt_screen_move_widget(GntWidget *widget, int x, int y);
00117
00124 void gnt_screen_rename_widget(GntWidget *widget, const char *text);
00125
00133 gboolean gnt_widget_has_focus(GntWidget *widget);
00134
00140 void gnt_widget_set_urgent(GntWidget *widget);
00141
00148 void gnt_register_action(const char *label, void (*callback)(void));
00149
00157 gboolean gnt_screen_menu_show(gpointer menu);
00158
00162 void gnt_quit(void);
00163
00169 GntClipboard * gnt_get_clipboard(void);
00170
00176 gchar * gnt_get_clipboard_string(void);
00177
00183 void gnt_set_clipboard_string(const gchar *string);
00184
00199 gboolean gnt_giveup_console(const char *wd, char **argv, char **envp,
00200 gint *stin, gint *stout, gint *sterr,
00201 void (*callback)(int status, gpointer data), gpointer data);
00202
00209 gboolean gnt_is_refugee(void);
00210
00211 #endif