/[irssi]/cuix/fe-text/mainwindows.h
ViewVC logotype

Contents of /cuix/fe-text/mainwindows.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1821 - (hide annotations)
Sat Oct 13 16:11:13 2001 UTC (11 years, 7 months ago) by cras
Original Path: irssi/trunk/src/fe-text/mainwindows.h
File MIME type: text/plain
File size: 1346 byte(s)
Configurable statusbar - see default config file (irssi.conf) for example
how to configure it. Added %> format which clears to end of line using the
current bg color. Added support for multiple input lines (just the core, not
used anywhere yet).

1 cras 197 #ifndef __MAINWINDOWS_H
2     #define __MAINWINDOWS_H
3    
4 cras 846 #include "fe-windows.h"
5 cras 592 #include "screen.h"
6 cras 197
7 cras 1202 #define WINDOW_MIN_SIZE 2
8    
9 cras 1821 #define MAIN_WINDOW_TEXT_HEIGHT(window) \
10     ((window)->height-(window)->statusbar_lines)
11    
12 cras 197 typedef struct {
13     WINDOW_REC *active;
14    
15 cras 1535 SCREEN_WINDOW *screen_win;
16 cras 1710 int sticky_windows; /* number of sticky windows */
17 cras 1535
18 cras 1821 int first_line, last_line; /* first/last line used by this window (0..x) (includes statusbars) */
19     int width, height; /* width/height of the window (includes statusbars) */
20 cras 1710
21 cras 1821 GSList *statusbars;
22     int statusbar_lines_top;
23     int statusbar_lines_bottom;
24     int statusbar_lines; /* top+bottom */
25 cras 197 } MAIN_WINDOW_REC;
26    
27     extern GSList *mainwindows;
28     extern MAIN_WINDOW_REC *active_mainwin;
29    
30     void mainwindows_init(void);
31     void mainwindows_deinit(void);
32    
33     MAIN_WINDOW_REC *mainwindow_create(void);
34     void mainwindow_destroy(MAIN_WINDOW_REC *window);
35    
36     void mainwindows_redraw(void);
37 cras 579 void mainwindows_recreate(void);
38 cras 197
39 cras 1202 void mainwindow_set_size(MAIN_WINDOW_REC *window, int size);
40 cras 1442 void mainwindows_resize(int width, int height);
41 cras 1202
42 cras 1702 void mainwindow_change_active(MAIN_WINDOW_REC *mainwin,
43     WINDOW_REC *skip_window);
44    
45 cras 1821 int mainwindows_reserve_lines(int top, int bottom);
46     int mainwindow_set_statusbar_lines(MAIN_WINDOW_REC *window,
47     int top, int bottom);
48    
49 cras 1202 GSList *mainwindows_get_sorted(int reverse);
50 cras 197
51     #endif

Properties

Name Value
cvs2svn:cvs-rev 1.17
svn:eol-style native
svn:keywords author date id revision
svn:mime-type text/plain

Irssi staff
ViewVC Help
Powered by ViewVC 1.1.13