BeRTOS
|
00001 00045 /*#* 00046 *#* $Log$ 00047 *#* Revision 1.3 2006/07/19 12:56:27 bernie 00048 *#* Convert to new Doxygen style. 00049 *#* 00050 *#* Revision 1.2 2006/01/26 00:36:48 bernie 00051 *#* Const correctness for some new functions. 00052 *#* 00053 *#* Revision 1.1 2006/01/23 23:14:29 bernie 00054 *#* Implement simple, but impressive windowing system. 00055 *#* 00056 *#*/ 00057 00058 #ifndef GFX_WIN_H 00059 #define GFX_WIN_H 00060 00061 #include <struct/list.h> /* Node, List */ 00062 #include <gfx/gfx.h> /* coord_t */ 00063 00064 00065 EXTERN_C_BEGIN 00066 00087 typedef struct Window 00088 { 00089 Node link; 00090 struct Window *parent; 00092 Bitmap *bitmap; 00093 Rect geom; 00100 List children; 00101 00102 } Window; 00103 00104 /* 00105 * Public function prototypes 00106 */ 00107 void win_compose(Window *w); 00108 void win_open(Window *w, Window *parent); 00109 void win_close(Window *w); 00110 void win_raise(Window *w); 00111 void win_setGeometry(Window *w, const Rect *new_geom); 00112 void win_move(Window *w, coord_t left, coord_t top); 00113 void win_resize(Window *w, coord_t width, coord_t height); 00114 void win_create(Window *w, Bitmap *bm); 00115 00116 EXTERN_C_END 00117 00118 #endif /* GFX_WIN_H */ 00119