winwidget.h

Go to the documentation of this file.
00001 //& ****************************************************************************
00002 //&
00003 //& Copyright (C) 2004 HP-GCC Team
00004 //&
00005 //& ****************************************************************************
00006 //&
00007 //& This file is part of HP-GCC.
00008 //&
00009 //& HP-GCC is free software; you can redistribute it and/or modify
00010 //& it under the terms of the GNU General Public License as published by
00011 //& the Free Software Foundation; either version 2, or (at your option)
00012 //& any later version.
00013 //& 
00014 //& HP-GCC is distributed in the hope that it will be useful,
00015 //& but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 //& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 //& GNU General Public License for more details.
00018 //& 
00019 //& You should have received a copy of the GNU General Public License
00020 //& along with HP-GCC; see the file COPYING. 
00021 //& 
00022 //& As a special exception, you may use this file as part of a free software
00023 //& library without restriction.  Specifically, if other files instantiate
00024 //& templates or use macros or inline functions from this file, or you compile
00025 //& this file and link it with other files to produce an executable, this
00026 //& file does not by itself cause the resulting executable to be covered by
00027 //& the GNU General Public License.  This exception does not however
00028 //& invalidate any other reasons why the executable file might be covered by
00029 //& the GNU General Public License.
00030 //&
00031 //& ****************************************************************************
00032 
00033 #ifndef _WIN_WIDGET_H_
00034 #define _WIN_WIDGET_H_
00035 
00036 #include <hpgraphics.h>
00037 
00056 #define WIN_REPAINT_EVENT 7
00057 
00065 typedef struct win_widget win_widget_t;
00066 
00080 void win_widget_destroy(win_widget_t *widget);
00081 
00091 void win_add_widget(win_widget_t *widget);
00092 
00102 void win_remove_widget(win_widget_t *widget);
00103 
00114 void win_focus_next(void);
00115 
00126 void win_focus_prev(void);
00127 
00133 int win_widget_has_focus(win_widget_t *widget);
00134 
00144 void win_widget_set_location(win_widget_t *widget, int x, int y);
00145 
00153 void win_widget_get_location(win_widget_t *widget, int *x, int *y);
00154 
00167 void win_widget_set_size(win_widget_t *widget, int x, int y);
00168 
00176 void win_widget_get_size(win_widget_t *widget, int *w, int *h);
00177 
00190 void win_widget_pack(win_widget_t *widget);
00191 
00209 void win_widget_set_colors(win_widget_t *widget,
00210     unsigned char fgcolor, unsigned char bgcolor);
00211 
00219 void win_widget_get_colors(win_widget_t *widget,
00220     unsigned char *fgcolor, unsigned char *bgcolor);
00221 
00237 void win_widget_set_font(win_widget_t *widget, hpg_font_t *font);
00238 
00245 hpg_font_t *win_widget_get_font(win_widget_t *widget);
00246 
00259 void win_widget_set_transparent(win_widget_t *widget, unsigned val);
00260 
00269 void win_repaint(void);
00270 
00271 #endif /* _WIN_WIDGET_H_ */

Generated on Fri Feb 16 16:43:17 2007 for HPGCCWindows by  doxygen 1.5.0