blob: 7eb4875bdbd45439f2899746d9716a02e42e5660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef __MAINWINDOWS_H
#define __MAINWINDOWS_H
#include "fe-windows.h"
#include "screen.h"
#define WINDOW_MIN_SIZE 2
typedef struct {
WINDOW_REC *active;
GSList *sticky_windows; /* list of windows allowed to show only in this mainwindow */
#ifdef USE_CURSES_WINDOWS
WINDOW *curses_win;
#endif
int first_line, last_line, lines;
int statusbar_lines;
void *statusbar;
void *statusbar_channel_item;
} MAIN_WINDOW_REC;
extern GSList *mainwindows;
extern MAIN_WINDOW_REC *active_mainwin;
void mainwindows_init(void);
void mainwindows_deinit(void);
MAIN_WINDOW_REC *mainwindow_create(void);
void mainwindow_destroy(MAIN_WINDOW_REC *window);
void mainwindows_redraw(void);
void mainwindows_recreate(void);
void mainwindow_set_size(MAIN_WINDOW_REC *window, int size);
void mainwindows_resize(int ychange, int xchange);
int mainwindows_reserve_lines(int count, int up);
GSList *mainwindows_get_sorted(int reverse);
#endif
|