Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtprintinfo / libUI / MotifUI / WorkAreaP.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $XConsortium: WorkAreaP.h /main/3 1995/11/06 09:45:29 rswiston $ */
24 /*                                                                      *
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.                                *
29  */
30
31 #ifndef WORKAREAP_H
32 #define WORKAREAP_H
33
34 #include <Xm/ManagerP.h>
35
36 #include "WorkArea.h"
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41  
42 typedef struct _WorkAreaClassPart {
43     int         ignore;
44 } WorkAreaClassPart;
45
46 typedef struct _WorkAreaClassRec {
47     CoreClassPart       core_class;
48     CompositeClassPart  composite_class;
49     ConstraintClassPart constraint_class;
50     XmManagerClassPart  manager_class;
51     WorkAreaClassPart     workArea_class;
52 } WorkAreaClassRec;
53
54 externalref WorkAreaClassRec workAreaClassRec;
55
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;
67     Boolean        is_list;
68
69     /* private resources */
70     Dimension      old_width;
71     Dimension      old_height;
72     Boolean        delay_layout;        /* Set with GuiWorkAreaDoLayout function */
73     GC             gc;
74     Widget         workArea_root;
75 } WorkAreaPart;
76
77 typedef struct _WorkAreaRec {
78     CorePart        core;
79     CompositePart   composite;
80     ConstraintPart  constraint;
81     XmManagerPart   manager;
82     WorkAreaPart        workArea;
83 }  WorkAreaRec;
84
85 typedef struct _WorkAreaConstraintsPart {
86     /* public resources */
87     Widget        super_node;
88     Boolean       is_workArea;
89     unsigned char orientation;
90     unsigned char attachment;
91     Boolean       is_opened;
92     Boolean       is_transient;
93     WidgetList    sub_nodes;    /* Can only be queried.  Can be set indirectly
94                                    with the GuiWorkAreaReorderChildren function */
95     int           n_sub_nodes;
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;
100
101 typedef struct _WorkAreaConstraintsRec {
102     WorkAreaConstraintsPart workArea;
103 } WorkAreaConstraintsRec, *WorkAreaConstraints;
104
105 #define WORKAREA_CONSTRAINT(w) ((WorkAreaConstraints)((w)->core.constraints))
106
107 #ifdef __cplusplus
108 }  /* Close scope of 'extern "C"' declaration which encloses file. */
109 #endif
110
111 #endif /* WORKAREAP_H */