00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include <glib.h>
00034 #include "gntwidget.h"
00035 #include "gntclipboard.h"
00036 #include "gntcolors.h"
00037 #include "gntkeys.h"
00038
00042 #if !GLIB_CHECK_VERSION(2,8,0)
00043 #define G_PARAM_STATIC_NAME G_PARAM_PRIVATE
00044 #define G_PARAM_STATIC_NICK G_PARAM_PRIVATE
00045 #define G_PARAM_STATIC_BLURB G_PARAM_PRIVATE
00046 #endif
00047
00051 void gnt_init(void);
00052
00056 void gnt_main(void);
00057
00063 gboolean gnt_ascii_only(void);
00064
00065 void gnt_window_present(GntWidget *window);
00070 void gnt_screen_occupy(GntWidget *widget);
00071
00076 void gnt_screen_release(GntWidget *widget);
00077
00082 void gnt_screen_update(GntWidget *widget);
00083
00090 void gnt_screen_resize_widget(GntWidget *widget, int width, int height);
00091
00098 void gnt_screen_move_widget(GntWidget *widget, int x, int y);
00099
00105 void gnt_screen_rename_widget(GntWidget *widget, const char *text);
00106
00113 gboolean gnt_widget_has_focus(GntWidget *widget);
00114
00119 void gnt_widget_set_urgent(GntWidget *widget);
00120
00126 void gnt_register_action(const char *label, void (*callback)());
00127
00134 gboolean gnt_screen_menu_show(gpointer menu);
00135
00139 void gnt_quit(void);
00140
00146 GntClipboard * gnt_get_clipboard(void);
00147
00153 gchar * gnt_get_clipboard_string(void);
00154
00159 void gnt_set_clipboard_string(gchar *string);
00160
00164 gboolean gnt_giveup_console(const char *wd, char **argv, char **envp,
00165 gint *stin, gint *stout, gint *sterr,
00166 void (*callback)(int status, gpointer data), gpointer data);
00167
00168 gboolean gnt_is_refugee(void);