ui/motif/Grid.h

changeset 101
7b3a3130be44
parent 100
d2bd73d28ff1
equal deleted inserted replaced
100:d2bd73d28ff1 101:7b3a3130be44
38 38
39 #ifdef __cplusplus 39 #ifdef __cplusplus
40 extern "C" { 40 extern "C" {
41 #endif 41 #endif
42 42
43 // resources
44 #define gridColumnSpacing "gridColumnSpacing"
45 #define gridRowSpacing "gridRowSpacing"
46 #define gridMargin "gridMargin"
47
48 // constraints
43 #define gridColumn "gridColumn" 49 #define gridColumn "gridColumn"
44 #define gridRow "gridRow" 50 #define gridRow "gridRow"
45 #define gridColspan "gridColspan" 51 #define gridColspan "gridColspan"
46 #define gridRowspan "gridRowspan" 52 #define gridRowspan "gridRowspan"
47 #define gridHExpand "gridHExpand" 53 #define gridHExpand "gridHExpand"
50 #define gridVFill "gridVFill" 56 #define gridVFill "gridVFill"
51 #define gridMarginLeft "gridMarginLeft" 57 #define gridMarginLeft "gridMarginLeft"
52 #define gridMarginRight "gridMarginRight" 58 #define gridMarginRight "gridMarginRight"
53 #define gridMarginTop "gridMarginTop" 59 #define gridMarginTop "gridMarginTop"
54 #define gridMarginBottom "gridMarginBottom" 60 #define gridMarginBottom "gridMarginBottom"
61 #define gridMinWidth "gridMinWidth"
55 62
56 63
57 typedef struct GridDef { 64 typedef struct GridDef {
58 Dimension size; 65 Dimension size;
59 Dimension pos; 66 Dimension pos;
78 int margin_right; 85 int margin_right;
79 int margin_top; 86 int margin_top;
80 int margin_bottom; 87 int margin_bottom;
81 int max_col; 88 int max_col;
82 int max_row; 89 int max_row;
90 Dimension columnspacing;
91 Dimension rowspacing;
92 Dimension margin;
83 93
84 Boolean sizerequest; 94 Boolean sizerequest;
85 } GridPart; 95 } GridPart;
86 96
87 typedef struct GridRec { 97 typedef struct GridRec {
105 Boolean vfill; 115 Boolean vfill;
106 Dimension colspan; 116 Dimension colspan;
107 Dimension rowspan; 117 Dimension rowspan;
108 Dimension pref_width; 118 Dimension pref_width;
109 Dimension pref_height; 119 Dimension pref_height;
120 Dimension min_width;
110 } GridContraintPart; 121 } GridContraintPart;
111 122
112 typedef struct GridConstraintRec { 123 typedef struct GridConstraintRec {
113 XmManagerConstraintPart manager; 124 XmManagerConstraintPart manager;
114 GridContraintPart grid; 125 GridContraintPart grid;

mercurial