Search
lxdream.org :: lxdream/src/gui.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui.h
changeset 435:7a5d71e8560b
next447:3e095bfcb476
author nkeynes
date Wed Oct 10 11:02:04 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change First cut of new GUI
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/gui.h Wed Oct 10 11:02:04 2007 +0000
1.3 @@ -0,0 +1,56 @@
1.4 +/**
1.5 + * $Id: gui.h,v 1.1 2007-10-10 11:02:04 nkeynes Exp $
1.6 + *
1.7 + * Public GUI declarations (used from elsewhere in the system)
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#ifndef __lxdream_gui_H
1.23 +#define __lxdream_gui_H
1.24 +
1.25 +#include <glib/gtypes.h>
1.26 +
1.27 +/**
1.28 + * GUI-provided method to scan the command line for standard arguments,
1.29 + * invoked prior to regular command line processing. The command line
1.30 + * is modified to remove any arguments handled by the UI.
1.31 + * @return TRUE on success, FALSE on failure.
1.32 + */
1.33 +gboolean gui_parse_cmdline( int *argc, char **argv[] );
1.34 +
1.35 +/**
1.36 + * Initialize the GUI system and create any windows needed. This method
1.37 + * should also register the GUI module with the module manager (if the
1.38 + * GUI has one).
1.39 + *
1.40 + * @param debug TRUE if the system should start in debugging mode.
1.41 + */
1.42 +gboolean gui_init( gboolean debug );
1.43 +
1.44 +/**
1.45 + * Enter the GUI main loop. If this method ever returns, the system will
1.46 + * exit normally.
1.47 + */
1.48 +void gui_main_loop(void);
1.49 +
1.50 +typedef enum { IO_IDE, IO_NETWORK } io_activity_type;
1.51 +
1.52 +/**
1.53 + * Notify the GUI of I/O activity.
1.54 + * @param activity the type of IO activity being reported.
1.55 + * @param active TRUE if the I/O device is becoming active, FALSE if inactive.
1.56 + */
1.57 +void gui_update_io_activity( io_activity_type activity, gboolean active );
1.58 +
1.59 +#endif /* __lxdream_gui_H */
.