gnt.h

Go to the documentation of this file.
00001 
00011 /*
00012  * GNT - The GLib Ncurses Toolkit
00013  *
00014  * GNT is the legal property of its developers, whose names are too numerous
00015  * to list here.  Please refer to the COPYRIGHT file distributed with this
00016  * source distribution.
00017  *
00018  * This library is free software; you can redistribute it and/or modify
00019  * it under the terms of the GNU General Public License as published by
00020  * the Free Software Foundation; either version 2 of the License, or
00021  * (at your option) any later version.
00022  *
00023  * This program is distributed in the hope that it will be useful,
00024  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00025  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00026  * GNU General Public License for more details.
00027  *
00028  * You should have received a copy of the GNU General Public License
00029  * along with this program; if not, write to the Free Software
00030  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00031  */
00032 
00033 #include <glib.h>
00034 #include "gntwidget.h"
00035 #include "gntclipboard.h"
00036 #include "gntcolors.h"
00037 #include "gntkeys.h"
00038 
00042 void gnt_init(void);
00043 
00047 void gnt_main(void);
00048 
00054 gboolean gnt_ascii_only(void);
00055 
00056 void gnt_window_present(GntWidget *window);
00061 void gnt_screen_occupy(GntWidget *widget);
00062 
00067 void gnt_screen_release(GntWidget *widget);
00068 
00073 void gnt_screen_update(GntWidget *widget);
00074 
00081 void gnt_screen_resize_widget(GntWidget *widget, int width, int height);
00082 
00089 void gnt_screen_move_widget(GntWidget *widget, int x, int y);
00090 
00096 void gnt_screen_rename_widget(GntWidget *widget, const char *text);
00097 
00104 gboolean gnt_widget_has_focus(GntWidget *widget);
00105 
00110 void gnt_widget_set_urgent(GntWidget *widget);
00111 
00117 void gnt_register_action(const char *label, void (*callback)());
00118 
00125 gboolean gnt_screen_menu_show(gpointer menu);
00126 
00130 void gnt_quit(void);
00131 
00137 GntClipboard * gnt_get_clipboard(void);
00138 
00144 gchar * gnt_get_clipboard_string(void);
00145 
00150 void gnt_set_clipboard_string(gchar *string);
00151 
00155 gboolean gnt_giveup_console(const char *wd, char **argv, char **envp,
00156         gint *stin, gint *stout, gint *sterr,
00157         void (*callback)(int status, gpointer data), gpointer data);
00158 
00159 gboolean gnt_is_refugee(void);