Debian Codegraph @

texk/xdvik/gui/statusline.h

raw
1 #ifndef STATUSLINE_H_
2 #define STATUSLINE_H_
3 /*
4 * Copyright (c) 2001-2004 the xdvik development team
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
23 *
24 */
25
26 #define STAT_BUF_LEN 512
27
28
29 /* statusline stuff. The following function and #defines are also
30 * needed when compiling without statusline support.
31 */
32 typedef enum statusTimerT_ {
33 STATUS_FOREVER = 0,
34 STATUS_VERYSHORT = 1,
35 STATUS_SHORT = 5,
36 STATUS_MEDIUM = 10,
37 STATUS_LONG = 30
38 } statusTimerT;
39
40 extern int get_statusline_height(void);
41 extern void statusline_clear(void);
42 extern void statusline_erase(const char *pattern);
43 extern void statusline_info(statusTimerT timeout, const char *fmt, ...);
44 extern void statusline_error(statusTimerT timeout, const char *fmt, ...);
45 extern void statusline_append(statusTimerT timeout, const char *pattern, const char *fmt, ...);
46 #ifdef MOTIF
47 extern Widget create_statusline(Widget parent);
48 #else
49 extern Widget create_statusline(void);
50 #endif
51 extern void handle_statusline_resize(void);
52
53 extern void force_statusline_update(void);
54 extern void toggle_statusline(void);
55
56 #endif /* STATUSLINE_H_ */