2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: WorkAreaP.h /main/3 1995/11/06 09:45:29 rswiston $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
26 * (c) Copyright 1993, 1994 International Business Machines Corp. *
27 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
28 * (c) Copyright 1993, 1994 Novell, Inc. *
34 #include <Xm/ManagerP.h>
42 typedef struct _WorkAreaClassPart {
46 typedef struct _WorkAreaClassRec {
47 CoreClassPart core_class;
48 CompositeClassPart composite_class;
49 ConstraintClassPart constraint_class;
50 XmManagerClassPart manager_class;
51 WorkAreaClassPart workArea_class;
54 externalref WorkAreaClassRec workAreaClassRec;
56 typedef struct _WorkAreaPart {
57 /* public resources */
58 Dimension horizontal_spacing;
59 Dimension vertical_spacing;
60 Dimension line_thickness;
61 Dimension line_offset;
62 Dimension node_line_length;
63 unsigned char alignment;
64 unsigned char vertical_alignment;
65 unsigned char packing;
66 Boolean auto_resize_width;
69 /* private resources */
72 Boolean delay_layout; /* Set with GuiWorkAreaDoLayout function */
77 typedef struct _WorkAreaRec {
79 CompositePart composite;
80 ConstraintPart constraint;
81 XmManagerPart manager;
82 WorkAreaPart workArea;
85 typedef struct _WorkAreaConstraintsPart {
86 /* public resources */
89 unsigned char orientation;
90 unsigned char attachment;
93 WidgetList sub_nodes; /* Can only be queried. Can be set indirectly
94 with the GuiWorkAreaReorderChildren function */
96 int n_columns; /* Used when orientation is horizontal. Zero
97 means there are infinite columns */
98 Position x, y; /* Can be set if is_transient == TRUE */
99 } WorkAreaConstraintsPart;
101 typedef struct _WorkAreaConstraintsRec {
102 WorkAreaConstraintsPart workArea;
103 } WorkAreaConstraintsRec, *WorkAreaConstraints;
105 #define WORKAREA_CONSTRAINT(w) ((WorkAreaConstraints)((w)->core.constraints))
108 } /* Close scope of 'extern "C"' declaration which encloses file. */
111 #endif /* WORKAREAP_H */