App inst fixed on invalid image file; App zinstall for ZDE works - we've got GUI...
[ZeXOS.git] / apps / zde / appcl.h
blobd9b387b81d8f1e2698062d632d0d51defcea8442
1 /*
2 * ZeX/OS
3 * Copyright (C) 2009 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 _APPCL_H
21 #define _APPCL_H
23 #define APPCL_STATE_REDRAW 0x1
24 #define APPCL_STATE_RECVOK 0x2
25 #define APPCL_STATE_EXIT 0x4
26 #define APPCL_STATE_RESIZE 0x8
27 #define APPCL_STATE_LBUTTON 0x10
28 #define APPCL_STATE_RBUTTON 0x20
29 #define APPCL_STATE_MBUTTON 0x40
31 typedef struct {
32 unsigned state;
33 unsigned short x;
34 unsigned short y;
35 unsigned short sizex;
36 unsigned short sizey;
37 short mousex;
38 short mousey;
39 unsigned char kbd;
40 } __attribute__ ((__packed__)) appcl_t;
42 typedef struct {
43 unsigned short x;
44 unsigned short y;
45 unsigned short resx;
46 unsigned short resy;
48 unsigned short posx;
49 unsigned short posy;
50 unsigned short sizex;
51 unsigned short sizey;
53 unsigned short *data;
54 } zbitmap_t;
56 extern appcl_t *zgui_window ();
57 extern void zgui_puts (unsigned short x, unsigned short y, char *str, unsigned color);
58 extern int zgui_button (unsigned short x, unsigned short y, char *str);
59 extern int zgui_resize (unsigned short x, unsigned short y);
60 extern unsigned zgui_event ();
61 extern int zgui_init ();
62 extern int zgui_exit ();
64 #endif