Change to priority classes. Will probably require some fixings.

- Now using priority classes internally and in protocol
- Converting (depreciated) priorty numbers to the classes BACKGROUND,
  INFO and FOREGROUND
- Added menu_goto command (only works when menu not active)
This commit is contained in:
robijn
2003-02-27 21:20:20 +00:00
parent 4a7ef8d847
commit 71922063b8
19 changed files with 372 additions and 292 deletions
+25 -8
View File
@@ -6,6 +6,7 @@
* COPYING file distributed with this package.
*
* Copyright (c) 1999, William Ferrell, Scott Scriven
* 2003, Joris Robijn
*
*/
@@ -21,20 +22,36 @@
#define RENDER_SKIP 12
#define RENDER_BACK 13
extern int screenlist_action;
/*extern int screenlist_action;*/
extern bool autorotate;
int screenlist_init ();
int screenlist_shutdown ();
/* Initializes the screenlist. */
void screenlist_update ();
void screenlist_switch (Screen * s);
Screen *screenlist_current ();
int screenlist_shutdown ();
/* Shuts down the screenlist. */
int screenlist_add (Screen * s);
Screen *screenlist_next ();
Screen *screenlist_prev ();
/* Adds a screen to the screenlist. */
int screenlist_remove (Screen * s);
int screenlist_remove_all (Screen * s);
/* Removes a screen from the screenlist. */
void screenlist_process ();
/* Processes the screenlist. Decides if we need to switch to an other
* screen. */
void screenlist_switch (Screen * s);
/* Switches to an other screen in the proper way. Informs clients of
* the switch. ALWAYS USE THIS FUNCTION TO SWITCH SCREENS. */
Screen *screenlist_current ();
/* Returns the currently active screen. */
int screenlist_goto_next ();
/* Moves on to the next screen. */
int screenlist_goto_prev ();
/* Moves on to the previous screen. */
#endif