1 /* 2 ** 3 ** ClipP.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 ** Authors: 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 34 #ifndef _XawClipP_h 35 #define _XawClipP_h 36 37 #include INC_X11(CompositeP.h) 38 #include "Clip.h" 39 40 typedef struct { /* new fields in widget class */ 41 int dummy; 42 } ClipClassPart; 43 44 typedef struct _ClipClassRec { /* Clip widget class */ 45 CoreClassPart core_class; 46 CompositeClassPart composite_class; 47 ClipClassPart clip_class; 48 } ClipClassRec; 49 50 51 typedef struct { /* new fields in widget */ 52 /* resources... */ 53 XtCallbackList report_callbacks; /* callback/Callback */ 54 #if 0 55 int child_x; 56 int child_y; 57 #endif 58 /* private data... */ 59 Dimension child_width_nat; 60 Dimension child_height_nat; 61 Dimension child_border_nat; 62 Position child_x_nat; 63 Position child_y_nat; 64 } ClipPart; 65 66 typedef struct _ClipRec { 67 CorePart core; 68 CompositePart composite; 69 ClipPart clip; 70 } ClipRec; 71 72 73 /* 74 * external declarations 75 */ 76 77 78 extern ClipClassRec clipClassRec; 79 80 #endif /* _XawClipP_h */ 81