| 40 extern "C" { |
40 extern "C" { |
| 41 #endif |
41 #endif |
| 42 |
42 |
| 43 // resources |
43 // resources |
| 44 #define gridColumnSpacing "gridColumnSpacing" |
44 #define gridColumnSpacing "gridColumnSpacing" |
| 45 #define gridRowSpacing "gridRowSpacing" |
45 #define gridRowSpacing "gridRowSpacing" |
| 46 #define gridMargin "gridMargin" |
46 #define gridPaddingLeft "gridPaddingLeft" |
| |
47 #define gridPaddingRight "gridPaddingRight" |
| |
48 #define gridPaddingTop "gridPaddingTop" |
| |
49 #define gridPaddingBottom "gridPaddingBottom" |
| 47 |
50 |
| 48 // constraints |
51 // constraints |
| 49 #define gridColumn "gridColumn" |
52 #define gridColumn "gridColumn" |
| 50 #define gridRow "gridRow" |
53 #define gridRow "gridRow" |
| 51 #define gridColspan "gridColspan" |
54 #define gridColspan "gridColspan" |
| 73 |
76 |
| 74 typedef struct GridClassRec { |
77 typedef struct GridClassRec { |
| 75 CoreClassPart core_class; |
78 CoreClassPart core_class; |
| 76 CompositeClassPart composite_class; |
79 CompositeClassPart composite_class; |
| 77 ConstraintClassPart constraint_class; |
80 ConstraintClassPart constraint_class; |
| 78 XmManagerClassPart manager_class; |
81 XmManagerClassPart manager_class; |
| 79 GridClassPart mywidgetclass; |
82 GridClassPart gridwidgetclass; |
| 80 } GridClassRec; |
83 } GridClassRec; |
| 81 |
84 |
| 82 |
85 |
| 83 typedef struct GridPart { |
86 typedef struct GridPart { |
| 84 int margin_left; |
87 int padding_left; |
| 85 int margin_right; |
88 int padding_right; |
| 86 int margin_top; |
89 int padding_top; |
| 87 int margin_bottom; |
90 int padding_bottom; |
| 88 int max_col; |
91 int max_col; |
| 89 int max_row; |
92 int max_row; |
| 90 Dimension columnspacing; |
93 Dimension columnspacing; |
| 91 Dimension rowspacing; |
94 Dimension rowspacing; |
| 92 Dimension margin; |
|
| 93 |
95 |
| 94 Boolean sizerequest; |
96 Boolean sizerequest; |
| 95 } GridPart; |
97 } GridPart; |
| 96 |
98 |
| 97 typedef struct GridRec { |
99 typedef struct GridRec { |
| 98 CorePart core; |
100 CorePart core; |
| 99 CompositePart composite; |
101 CompositePart composite; |
| 100 ConstraintPart constraint; |
102 ConstraintPart constraint; |
| 101 XmManagerPart manager; |
103 XmManagerPart manager; |
| 102 GridPart mywidget; |
104 GridPart grid; |
| 103 } GridRec; |
105 } GridRec; |
| 104 |
106 |
| 105 typedef struct GridContraintPart { |
107 typedef struct GridContraintPart { |
| 106 Dimension x; |
108 Dimension x; |
| 107 Dimension y; |
109 Dimension y; |