1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
/*
* This widget manages multiple child widgets, arranging them in a
* rectangular grid. Child widgets may occupy multiple grid cells.
*/
#ifndef _MwRudegrid_h
#define _MwRudegrid_h
/***********************************************************************
*
* MwRudegrid Widget -- based on Ed Falk's Gridbox widget
* which is in turn based on the Java Gridbag layout.
*
* Unlike the Gridbox and most other geometry managing widgets, this
* one doesn't care what size the children would like to be.
*
***********************************************************************/
/* Parameters:
Name Class RepType Default Value
---- ----- ------- -------------
background Background Pixel XtDefaultBackground
border BorderColor Pixel XtDefaultForeground
borderWidth BorderWidth Dimension 1
defaultDistance Thickness int 4
destroyCallback Callback Pointer NULL
width Width Dimension computed at realize
height Height Dimension computed at realize
mappedWhenManaged MappedWhenManaged Boolean True
x Position Position 0
y Position Position 0
xLayout XLayout String NULL
yLayout YLayout String NULL
Specify cell widths and heights in pixels and/or percent
All other resources are the same as for Constraint.
*/
/* Constraint parameters:
Name Class RepType Default Value
---- ----- ------- -------------
gridx Position Position 0
gridy Position Position 0
gridWidth Width Dimension 1
gridHeight Height Dimension 1
gridx, gridy position of child in grid. Upper-left cell is 0,0
gridWidth,gridHeight size of child in cells.
*/
#ifndef XtNgridx
#define XtNgridx "gridx"
#define XtNgridy "gridy"
#define XtNgridWidth "gridWidth"
#define XtNgridHeight "gridHeight"
#define XtNxLayout "xLayout"
#define XtCXLayout "XLayout"
#define XtNyLayout "yLayout"
#define XtCYLayout "YLayout"
#endif
typedef struct _MwRudegridClassRec *MwRudegridWidgetClass ;
typedef struct _MwRudegridRec *MwRudegridWidget ;
extern WidgetClass mwRudegridWidgetClass ;
_XFUNCPROTOBEGIN
_XFUNCPROTOEND
#endif /* _MwRudegrid_h */
|