Back to index

tetex-bin  3.0
statusline.h
Go to the documentation of this file.
00001 #ifndef STATUSLINE_H_
00002 #define STATUSLINE_H_
00003 /*
00004  * Copyright (c) 2001-2004 the xdvik development team
00005  *
00006  * Permission is hereby granted, free of charge, to any person obtaining a copy
00007  * of this software and associated documentation files (the "Software"), to
00008  * deal in the Software without restriction, including without limitation the
00009  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00010  * sell copies of the Software, and to permit persons to whom the Software is
00011  * furnished to do so, subject to the following conditions:
00012  *
00013  * The above copyright notice and this permission notice shall be included in
00014  * all copies or substantial portions of the Software.
00015  *
00016  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00019  * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
00020  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00021  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00022  * OTHER DEALINGS IN THE SOFTWARE.
00023  *
00024  */
00025 
00026 #define STAT_BUF_LEN 512
00027 
00028 
00029 /* statusline stuff. The following function and #defines are also
00030  * needed when compiling without statusline support.
00031  */
00032 typedef enum statusTimerT_ {
00033     STATUS_FOREVER = 0,
00034     STATUS_SHORT = 5,
00035     STATUS_MEDIUM = 10,
00036     STATUS_LONG = 30
00037 } statusTimerT;
00038 
00039 extern void statusline_clear(void);
00040 extern void statusline_print(statusTimerT timeout, const char *fmt, ...);
00041 extern void statusline_append(statusTimerT timeout, const char *pattern, const char *fmt, ...);
00042 #ifdef MOTIF
00043 extern Widget create_statusline(Widget parent);
00044 #else
00045 extern Widget create_statusline(void);
00046 #endif
00047 extern void handle_statusline_resize(void);
00048 
00049 extern void force_statusline_update(void);
00050 extern void toggle_statusline(void);
00051 
00052 #endif /* STATUSLINE_H_ */