* Christmas edition *; fixed irc /os command; small cleanup in fd.c; improvements...
[ZeXOS.git] / apps / zde / window.h
blobe25adf2265f49ab6da1110150951591d9512e657
1 /*
2 * ZeX/OS
3 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@gmail.com)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _WINDOW_H
21 #define _WINDOW_H
23 #define WINDOW_STATE_ACTIVE 0x1
24 #define WINDOW_STATE_CLOSE 0x2
25 #define WINDOW_STATE_MINIMALISED 0x4
27 #define WINDOW_SIGNAL_CLOSE 0x1
29 typedef struct {
30 unsigned short x;
31 unsigned short y;
32 unsigned sizex;
33 unsigned sizey;
34 } bitmap_coord_t;
36 typedef struct zde_win_context {
37 struct zde_win_context *next, *prev;
39 unsigned short x;
40 unsigned short y;
41 unsigned short sizex;
42 unsigned short sizey;
43 char *name;
44 unsigned char state;
45 unsigned char objectid;
46 unsigned char type;
47 } zde_win_t;
49 extern zde_win_t *create_window (char *name, unsigned char type);
50 extern int draw_window ();
51 extern int init_window ();
53 #endif