2
* Motif Tools Library, Version 3.1
5
* Written by David Flanagan.
6
* Copyright (c) 1992-2001 by David Flanagan.
7
* All Rights Reserved. See the file COPYRIGHT for details.
8
* This is open source software. See the file LICENSE for details.
9
* There is no warranty for this software. See NO_WARRANTY for details.
12
* Revision 1.1.1.1 2001/07/18 11:06:02 root
15
* Revision 1.2 2001/06/12 16:25:28 andre
16
* *** empty log message ***
22
#include <Xmt/LayoutGP.h>
24
#if NeedFunctionPrototypes
25
static void Initialize(Widget, Widget, ArgList, Cardinal *);
26
static XtGeometryResult QueryGeometry(Widget, XtWidgetGeometry *,
29
static void Initialize();
30
static XtGeometryResult QueryGeometry();
33
#define superclass (&xmtLayoutGadgetClassRec)
35
externaldef(xmtlayoutspaceclassrec)
36
XmtLayoutSpaceClassRec xmtLayoutSpaceClassRec = {
37
{ /* rect_class fields */
38
/* superclass */ (WidgetClass)superclass,
39
/* class_name */ "XmtLayoutSpace",
40
/* widget_size */ sizeof(XmtLayoutSpaceRec),
41
/* class_initialize */ NULL,
42
/* class_part_initialize*/ NULL,
43
/* class_inited */ FALSE,
44
/* initialize */ Initialize,
45
/* initialize_hook */ NULL,
50
/* num_resources */ 0,
51
/* xrm_class */ NULLQUARK,
59
/* set_values */ NULL,
60
/* set_values_hook */ NULL,
61
/* set_values_almost */ XtInheritSetValuesAlmost,
62
/* get_values_hook */ NULL,
64
/* version */ XtVersion,
65
/* callback_offsets */ NULL,
67
/* query_geometry */ QueryGeometry,
71
{ /* XmtLayoutGadget field */
72
/* change_font */ NULL
74
{ /* XmtLayoutSpace fields */
79
externaldef(xmtlayoutspacegadgetclass)
80
WidgetClass xmtLayoutSpaceGadgetClass = (WidgetClass) &xmtLayoutSpaceClassRec;
83
#if NeedFunctionPrototypes
84
static void Initialize(Widget request, Widget init,
85
ArgList arglist, Cardinal *num_args)
87
static void Initialize(request, init, arglist, num_args)
94
Constraint(init, type) = XmtLayoutSpace;
98
#if NeedFunctionPrototypes
99
static XtGeometryResult QueryGeometry(Widget w,
100
XtWidgetGeometry *request,
101
XtWidgetGeometry *reply)
103
static XtGeometryResult QueryGeometry(w, request, reply)
105
XtWidgetGeometry *request;
106
XtWidgetGeometry *reply;
109
reply->request_mode = CWWidth | CWHeight;
110
reply->width = reply->height = 0;
111
return XtGeometryYes;
115
#if NeedFunctionPrototypes
116
Widget XmtCreateLayoutSpace(Widget parent, String name,
117
ArgList arglist, Cardinal num_args)
119
Widget XmtCreateLayoutSpace(parent, name, arglist, num_args)
126
return XtCreateWidget(name, xmtLayoutSpaceGadgetClass, parent,