Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtWidget / TitleBoxP.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: TitleBoxP.h /main/3 1995/10/26 09:34:57 rswiston $ */
24 /**---------------------------------------------------------------------
25 ***     
26 ***     file:           TitleBoxP.h
27 ***
28 ***     project:        MotifPlus Widgets
29 ***
30 ***     description:    Private include file for DtTitleBox class.
31 ***     
32 ***     
33 ***                     (c) Copyright 1990 by Hewlett-Packard Company.
34 ***
35 ***
36 ***-------------------------------------------------------------------*/
37
38
39 #ifndef _DtTitleBoxP_h
40 #define _DtTitleBoxP_h
41
42 #include <Xm/XmP.h>
43 #include <Dt/TitleBox.h>
44
45
46
47 /*-------------------------------------------------------------
48 **      Class Structure
49 */
50
51 /*      Class Part
52 */
53 typedef struct _DtTitleBoxClassPart
54 {
55         caddr_t extension;
56 } DtTitleBoxClassPart;
57
58 /*      Full Class Record
59 */
60 typedef struct _DtTitleBoxClassRec
61 {
62         CoreClassPart           core_class;
63         CompositeClassPart      composite_class;
64         ConstraintClassPart     constraint_class;
65         XmManagerClassPart      manager_class;
66         DtTitleBoxClassPart     title_box_class;
67 } DtTitleBoxClassRec;
68
69 /*      Actual Class
70 */
71 extern DtTitleBoxClassRec dtTitleBoxClassRec;
72
73
74
75 \f
76 /*-------------------------------------------------------------
77 **      Instance Structure
78 */
79
80 /*      Instance Part
81 */
82 typedef struct _DtTitleBoxPart
83 {
84         Widget          work_area;
85         Widget          title_area;
86         XmString        title_string;
87         XmFontList      font_list;
88         Dimension       margin_width;
89         Dimension       margin_height;
90         Dimension       old_width;
91         Dimension       old_height;
92         Dimension       old_shadow_thickness;
93         Dimension       title_spacing;
94         unsigned char   title_position;
95         unsigned char   title_alignment;
96         unsigned char   shadow_type;
97 } DtTitleBoxPart;
98
99 /*      Full Instance Record
100 */
101 typedef struct _DtTitleBoxRec
102 {
103         CorePart                core;
104         CompositePart           composite;
105         ConstraintPart          constraint;
106         XmManagerPart           manager;
107         DtTitleBoxPart          title_box;
108 } DtTitleBoxRec;
109
110
111
112 /*-------------------------------------------------------------
113 **      Constraint Structure
114 */
115
116 /*      Constraint Part
117 */
118 typedef struct _DtTitleBoxConstraintPart
119 {
120         unsigned char   child_type;
121 } DtTitleBoxConstraintPart, * DtTitleBoxConstraint;
122
123 /*      Full Constraint Record
124 */
125 typedef struct _DtTitleBoxConstraintRec
126 {
127         XmManagerConstraintPart         manager_constraint;
128         DtTitleBoxConstraintPart        title_box_constraint;
129 } DtTitleBoxConstraintRec, * DtTitleBoxConstraintPtr;
130
131
132 /*-------------------------------------------------------------
133 **      Class and Instance Macros
134 */
135
136 /*      DtTitleBox Class Macros
137 */
138
139 /*      DtTitleBox Instance Macros
140 */
141 #define M_TitleBoxConstraint(w) \
142         (&((DtTitleBoxConstraintPtr) (w)->core.constraints)->title_box_constraint)
143 #define M_WorkArea(m)           (m -> title_box.work_area)
144 #define M_TitleArea(m)          (m -> title_box.title_area)
145 #define M_TitleString(m)        (m -> title_box.title_string)
146 #define M_TitleSpacing(m)       (m -> title_box.title_spacing)
147 #define M_TitlePosition(m)      (m -> title_box.title_position)
148 #define M_TitleAlignment(m)     (m -> title_box.title_alignment)
149 #define M_FontList(m)           (m -> title_box.font_list)
150 #define M_ShadowType(m)         (m -> title_box.shadow_type)
151 #define M_MarginWidth(m)        (m -> title_box.margin_width)
152 #define M_MarginHeight(m)       (m -> title_box.margin_height)
153 #define M_OldWidth(m)           (m -> title_box.old_width)
154 #define M_OldHeight(m)          (m -> title_box.old_height)
155 #define M_OldShadowThickness(m) (m -> title_box.old_shadow_thickness)
156
157
158 #endif /* _DtTitleBoxP_h */
159 /* DON'T ADD ANYTHING AFTER THIS #endif */