1 /* 2 * This file is part of the XForms library package. 3 * 4 * XForms is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as 6 * published by the Free Software Foundation; either version 2.1, or 7 * (at your option) any later version. 8 * 9 * XForms is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with XForms. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 19 /** 20 * \file pchoice.h 21 * 22 * This file is part of the XForms library package. 23 * Copyright T.C. Zhao and Mark Overmars 24 * All rights reserved. 25 */ 26 27 #ifndef PCHOICE_H_ 28 #define PCHOICE_H_ 29 30 /* make sure that the first 5 items are the same as FL_MENU. 31 * fdesign assumes this 32 */ 33 34 #define CMAXITEMS ( FL_CHOICE_MAXITEMS + 1 ) /* index 0 unused */ 35 36 typedef struct { 37 int numitems; /* number of items in choice */ 38 int val; /* last menu item selected */ 39 char * items[ CMAXITEMS ]; /* choice items */ 40 char * shortcut[ CMAXITEMS ]; 41 unsigned char mode[ CMAXITEMS ]; 42 int align; /* the choice text is aligned */ 43 int fontsize; /* font size */ 44 int fontstyle; /* font style */ 45 int pushed; 46 int below; 47 unsigned char modechange[ CMAXITEMS ]; 48 int counter; 49 unsigned int no_title; 50 } FLI_CHOICE_SPEC; 51 52 #endif 53 54 55 /* 56 * Local variables: 57 * tab-width: 4 58 * indent-tabs-mode: nil 59 * End: 60 */ 61