System call sys_getchar () was improved; stdin is correspond with 0. fd and stdout...
[ZeXOS.git] / apps / zde / icon.h
blob0ad29564cf1f2e72063463c0a41e83da307b9fa3
1 /*
2 * ZeX/OS
3 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@gmail.com)
4 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@gmail.com)
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _ICON_H
22 #define _ICON_H
24 #include "window.h"
26 #define VFS_FILEATTR_FILE 0x1
27 #define VFS_FILEATTR_DIR 0x2
28 #define VFS_FILEATTR_HIDDEN 0x4
29 #define VFS_FILEATTR_SYSTEM 0x8
30 #define VFS_FILEATTR_BIN 0x10
31 #define VFS_FILEATTR_READ 0x20
32 #define VFS_FILEATTR_WRITE 0x40
33 #define VFS_FILEATTR_MOUNTED 0x80
34 #define VFS_FILEATTR_DEVICE 0x100
36 typedef struct zde_icon_context {
37 struct zde_icon_context *next, *prev;
39 unsigned short x;
40 unsigned short y;
41 unsigned short *bitmap;
42 unsigned short name_len;
43 char *name;
44 void *(*entry) (void *);
45 void *arg;
46 void *object;
47 } zde_icon_t;
49 extern zde_icon_t *create_icon (char *name, int type, void *(*entry) (void *), void *arg);
50 extern zde_icon_t *create_icon_window (char *name, int type, void *(*entry) (void *), void *arg, zde_win_t *window);
51 extern unsigned destroy_icon_window (zde_win_t *window);
52 extern int draw_icon_desktop ();
53 extern int draw_icon_window (zde_win_t *window);
54 extern int init_icon ();
56 #endif