App inst fixed on invalid image file; App zinstall for ZDE works - we've got GUI...
[ZeXOS.git] / apps / zde / window.h
blob91eaf31e3028847c4fdbc8bc9eda6ec52ec77475
1 /*
2 * ZeX/OS
3 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
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
26 #define WINDOW_STATE_MOVE 0x8
28 #define WINDOW_SIGNAL_CLOSE 0x1
30 typedef struct {
31 unsigned short x;
32 unsigned short y;
33 unsigned sizex;
34 unsigned sizey;
35 } bitmap_coord_t;
37 typedef struct zde_win_context {
38 struct zde_win_context *next, *prev;
40 unsigned short x;
41 unsigned short y;
42 unsigned short sizex;
43 unsigned short sizey;
44 char *name;
45 unsigned char name_len;
46 unsigned char state;
47 unsigned char objectid;
48 unsigned char type;
49 } zde_win_t;
51 extern zde_win_t *isactive_window ();
52 extern zde_win_t *create_window (char *name, unsigned char type);
53 extern int draw_window ();
54 extern int init_window ();
56 #endif