aboutsummaryrefslogtreecommitdiff
path: root/Graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'Graph.c')
-rw-r--r--Graph.c96
1 files changed, 46 insertions, 50 deletions
diff --git a/Graph.c b/Graph.c
index 75beb74..7a4a15f 100644
--- a/Graph.c
+++ b/Graph.c
@@ -30,61 +30,57 @@ static void InsertChild();
static Boolean SetValues();
static CompositeClassExtensionRec compositeExtension = {
- /* next_extension */ NULL,
- /* recort_type */ NULLQUARK,
- /* version */ XtCompositeExtensionVersion,
- /* record_size */ sizeof(CompositeClassExtensionRec),
- /* accepts_objects */ True,
+ .next_extension = NULL,
+ .record_type = NULLQUARK,
+ .version = XtCompositeExtensionVersion,
+ .record_size = sizeof(CompositeClassExtensionRec),
+ .accepts_objects = True,
};
-#define Superclass (&compositeClassRec)
GraphClassRec graphClassRec = {
- /* core */
- {
- /* superclass */ (WidgetClass) Superclass,
- /* class_name */ "Graph",
- /* widget_size */ sizeof(GraphRec),
- /* class_initialize */ ClassInitialize,
- /* class_part_initialize */ NULL,
- /* class_inited */ False,
- /* initialize */ Initialize,
- /* initialize_hook */ NULL,
- /* realize */ Realize,
- /* actions */ NULL,
- /* num_actions */ 0,
- /* resources */ resources,
- /* num_resources */ XtNumber(resources),
- /* xrm_class */ NULLQUARK,
- /* compress_motion */ True,
- /* compress_exposure */ XtExposeCompressMultiple,
- /* compress_enterleave */ True,
- /* visible_interest */ False,
- /* destroy */ Destroy,
- /* resize */ Resize,
- /* expose */ Redisplay,
- /* set_values */ SetValues,
- /* set_values_hook */ NULL,
- /* set_values_almost */ XtInheritSetValuesAlmost,
- /* get_values_hook */ NULL,
- /* accept_focus */ NULL,
- /* version */ XtVersion,
- /* callback_private */ NULL,
- /* tm_table */ NULL,
- /* query_geometry */ NULL,
- /* display_accelerator */ NULL,
- /* extension */ NULL,
+ .core_class = {
+ .superclass = (WidgetClass)&compositeClassRec,
+ .class_name = "Graph",
+ .widget_size = sizeof(GraphRec),
+ .class_initialize = ClassInitialize,
+ .class_part_initialize = NULL,
+ .class_inited = False,
+ .initialize = Initialize,
+ .initialize_hook = NULL,
+ .realize = Realize,
+ .actions = NULL,
+ .num_actions = 0,
+ .resources = resources,
+ .num_resources = XtNumber(resources),
+ .xrm_class = NULLQUARK,
+ .compress_motion = True,
+ .compress_exposure = XtExposeCompressMultiple,
+ .compress_enterleave = True,
+ .visible_interest = False,
+ .destroy = Destroy,
+ .resize = Resize,
+ .expose = Redisplay,
+ .set_values = SetValues,
+ .set_values_hook = NULL,
+ .set_values_almost = XtInheritSetValuesAlmost,
+ .get_values_hook = NULL,
+ .accept_focus = NULL,
+ .version = XtVersion,
+ .callback_private = NULL,
+ .tm_table = NULL,
+ .query_geometry = NULL,
+ .display_accelerator = NULL,
+ .extension = NULL,
},
- /* composite */
- {
- /* geometry_manager */ NULL,
- /* change_managed */ NULL,
- /* insert_child */ InsertChild,
- /* delete_child */ XtInheritDeleteChild,
- /* extension */ &compositeExtension,
+ .composite_class = {
+ .geometry_manager = NULL,
+ .change_managed = NULL,
+ .insert_child = InsertChild,
+ .delete_child = XtInheritDeleteChild,
+ .extension = &compositeExtension,
},
- /* graph */
- {
- /* extension */ NULL,
+ .graph_class = {
+ .extension = NULL,
},
};