2000-05-04 10:32:42 +00:00
|
|
|
#ifndef __MAINWINDOWS_H
|
|
|
|
|
#define __MAINWINDOWS_H
|
|
|
|
|
|
2000-11-17 16:27:14 +00:00
|
|
|
#include "fe-windows.h"
|
2000-08-12 16:40:39 +00:00
|
|
|
#include "screen.h"
|
2000-05-04 10:32:42 +00:00
|
|
|
|
2001-02-10 07:26:54 +00:00
|
|
|
#define WINDOW_MIN_SIZE 2
|
|
|
|
|
|
2000-05-04 10:32:42 +00:00
|
|
|
typedef struct {
|
|
|
|
|
WINDOW_REC *active;
|
2001-02-10 04:43:21 +00:00
|
|
|
GSList *sticky_windows; /* list of windows allowed to show only in this mainwindow */
|
2000-05-04 10:32:42 +00:00
|
|
|
|
2001-06-01 21:49:07 +00:00
|
|
|
SCREEN_WINDOW *screen_win;
|
|
|
|
|
|
2001-04-14 22:24:56 +00:00
|
|
|
int first_line, last_line, width, height;
|
2000-05-04 10:32:42 +00:00
|
|
|
int statusbar_lines;
|
|
|
|
|
void *statusbar;
|
2001-03-15 02:26:12 +00:00
|
|
|
void *statusbar_window_item;
|
2000-05-04 10:32:42 +00:00
|
|
|
} 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);
|
2000-08-10 20:01:32 +00:00
|
|
|
void mainwindows_recreate(void);
|
2000-05-04 10:32:42 +00:00
|
|
|
|
2001-02-10 07:26:54 +00:00
|
|
|
void mainwindow_set_size(MAIN_WINDOW_REC *window, int size);
|
2001-04-14 22:24:56 +00:00
|
|
|
void mainwindows_resize(int width, int height);
|
2001-02-10 07:26:54 +00:00
|
|
|
|
2000-05-04 10:32:42 +00:00
|
|
|
int mainwindows_reserve_lines(int count, int up);
|
2001-02-10 07:26:54 +00:00
|
|
|
GSList *mainwindows_get_sorted(int reverse);
|
2000-05-04 10:32:42 +00:00
|
|
|
|
|
|
|
|
#endif
|