winsoftmenu.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 _WINSOFTMENU_H_
00034 #define _WINSOFTMENU_H_
00035 
00057 #define WIN_SOFTMENU_MAX_ITEMS 30
00058 
00065 typedef struct
00066 {
00074     unsigned lshift : 2;
00075 
00083     unsigned rshift : 2;
00084 
00096     void *extra_data;
00097 } win_softmenu_event_t;
00098 
00107 win_widget_t *win_softmenu_new(void);
00108 
00122 void win_softmenu_set_item(
00123     win_widget_t *menu, int pos, char *label,
00124     int event_num, void *extra_data);
00125 
00140 int win_softmenu_add_item(
00141     win_widget_t *menu, char *label,
00142     int event_num, void *extra_data);
00143 
00158 void win_softmenu_insert_item(
00159     win_widget_t *menu, int pos, char *label,
00160     int event_num, void *extra_data);
00161 
00175 void win_softmenu_delete_item(win_widget_t *menu, int pos, int pack);
00176 
00180 void win_softmenu_set_colors(win_widget_t *menu, int pos,
00181     unsigned char fg_color, unsigned char bg_color);
00182 
00186 void win_softmenu_set_disable_colors(win_widget_t *menu, int pos,
00187     unsigned char fg_color, unsigned char bg_color);
00188 
00192 void win_softmenu_set_enabled(win_widget_t *menu, int pos, int val);
00193 
00194 #endif /* _WINSOFTMENU_H_ */

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