1 /* 2 ** 3 ** MButtonP.h 4 ** 5 ** Copyright (C) 1995, 1996, 1997 Johannes Plass 6 ** Copyright (C) 2004 Jose E. Marchesi 7 ** 8 ** This program is free software; you can redistribute it and/or modify 9 ** it under the terms of the GNU General Public License as published by 10 ** the Free Software Foundation; either version 3 of the License, or 11 ** (at your option) any later version. 12 ** 13 ** This program is distributed in the hope that it will be useful, 14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ** GNU General Public License for more details. 17 ** 18 ** You should have received a copy of the GNU General Public License 19 ** along with GNU gv; see the file COPYING. If not, write to 20 ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 21 ** Boston, MA 02111-1307, USA. 22 ** 23 ** Author: Johannes Plass (plass@thep.physik.uni-mainz.de) 24 ** Department of Physics 25 ** Johannes Gutenberg-University 26 ** Mainz, Germany 27 ** 28 ** Jose E. Marchesi (jemarch@gnu.org) 29 ** GNU Project 30 ** 31 */ 32 33 #ifndef _MButtonP_h_ 34 #define _MButtonP_h_ 35 36 #include "paths.h" 37 #include "MButton.h" 38 #include "ButtonP.h" 39 40 typedef struct _MButtonClass 41 { 42 int makes_compiler_happy; /* not used */ 43 } MButtonClassPart; 44 45 typedef struct _MenuButtonClassRec { 46 CoreClassPart core_class; 47 SimpleClassPart simple_class; 48 ThreeDClassPart threeD_class; 49 LabelClassPart label_class; 50 CommandClassPart command_class; 51 ButtonClassPart button_class; 52 MButtonClassPart mbutton_class; 53 } MButtonClassRec; 54 55 extern MButtonClassRec mButtonClassRec; 56 57 typedef struct { 58 String menu_name; 59 60 } MButtonPart; 61 62 typedef struct _MButtonRec { 63 CorePart core; 64 SimplePart simple; 65 ThreeDPart threeD; 66 LabelPart label; 67 CommandPart command; 68 ButtonPart button; 69 MButtonPart mbutton; 70 } MButtonRec; 71 72 #endif /* _MButtonP_h_ */ 73 74 75