mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
windows.h conflicted with microsoft's windows.h :) renamed windows.[ch] to
fe-windows.[ch] git-svn-id: http://svn.irssi.org/repos/irssi/trunk@846 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2edcdd715f
commit
39630c3d58
34 changed files with 34 additions and 34 deletions
74
src/fe-common/core/fe-windows.h
Normal file
74
src/fe-common/core/fe-windows.h
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
#ifndef __WINDOWS_H
|
||||
#define __WINDOWS_H
|
||||
|
||||
#include "servers.h"
|
||||
|
||||
#define STRUCT_SERVER_REC SERVER_REC
|
||||
#include "window-item-def.h"
|
||||
|
||||
enum {
|
||||
NEWDATA_TEXT = 1,
|
||||
NEWDATA_MSG,
|
||||
NEWDATA_HILIGHT,
|
||||
NEWDATA_CUSTOM
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
int refnum;
|
||||
char *name;
|
||||
|
||||
GSList *items;
|
||||
WI_ITEM_REC *active;
|
||||
SERVER_REC *active_server;
|
||||
|
||||
GSList *waiting_channels; /* list of "<server tag> <channel>" */
|
||||
|
||||
int lines;
|
||||
int destroying:1;
|
||||
|
||||
/* window-specific command line history */
|
||||
GList *cmdhist, *histpos;
|
||||
int histlines;
|
||||
|
||||
int level;
|
||||
int new_data;
|
||||
int last_color;
|
||||
time_t last_timestamp; /* When was last timestamp printed */
|
||||
time_t last_line; /* When was last line printed */
|
||||
|
||||
char *theme_name; /* active theme in window, NULL = default */
|
||||
void *theme; /* THEME_REC */
|
||||
|
||||
void *gui_data;
|
||||
} WINDOW_REC;
|
||||
|
||||
extern GSList *windows;
|
||||
extern WINDOW_REC *active_win;
|
||||
|
||||
WINDOW_REC *window_create(WI_ITEM_REC *item, int automatic);
|
||||
void window_destroy(WINDOW_REC *window);
|
||||
|
||||
void window_set_active(WINDOW_REC *window);
|
||||
void window_change_server(WINDOW_REC *window, void *server);
|
||||
|
||||
void window_set_refnum(WINDOW_REC *window, int refnum);
|
||||
void window_set_name(WINDOW_REC *window, const char *name);
|
||||
void window_set_level(WINDOW_REC *window, int level);
|
||||
|
||||
/* return active item's name, or if none is active, window's name */
|
||||
char *window_get_active_name(WINDOW_REC *window);
|
||||
|
||||
WINDOW_REC *window_find_level(void *server, int level);
|
||||
WINDOW_REC *window_find_closest(void *server, const char *name, int level);
|
||||
WINDOW_REC *window_find_refnum(int refnum);
|
||||
WINDOW_REC *window_find_name(const char *name);
|
||||
WINDOW_REC *window_find_item(WINDOW_REC *window, const char *name);
|
||||
|
||||
int window_refnum_prev(int refnum, int wrap);
|
||||
int window_refnum_next(int refnum, int wrap);
|
||||
int windows_refnum_last(void);
|
||||
|
||||
void windows_init(void);
|
||||
void windows_deinit(void);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue