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: TitleBoxP.h /main/3 1995/10/26 09:34:57 rswiston $ */
24 /**---------------------------------------------------------------------
28 *** project: MotifPlus Widgets
30 *** description: Private include file for DtTitleBox class.
33 *** (c) Copyright 1990 by Hewlett-Packard Company.
36 ***-------------------------------------------------------------------*/
39 #ifndef _DtTitleBoxP_h
40 #define _DtTitleBoxP_h
43 #include <Dt/TitleBox.h>
47 /*-------------------------------------------------------------
53 typedef struct _DtTitleBoxClassPart
56 } DtTitleBoxClassPart;
60 typedef struct _DtTitleBoxClassRec
62 CoreClassPart core_class;
63 CompositeClassPart composite_class;
64 ConstraintClassPart constraint_class;
65 XmManagerClassPart manager_class;
66 DtTitleBoxClassPart title_box_class;
71 extern DtTitleBoxClassRec dtTitleBoxClassRec;
76 /*-------------------------------------------------------------
82 typedef struct _DtTitleBoxPart
86 XmString title_string;
88 Dimension margin_width;
89 Dimension margin_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;
99 /* Full Instance Record
101 typedef struct _DtTitleBoxRec
104 CompositePart composite;
105 ConstraintPart constraint;
106 XmManagerPart manager;
107 DtTitleBoxPart title_box;
112 /*-------------------------------------------------------------
113 ** Constraint Structure
118 typedef struct _DtTitleBoxConstraintPart
120 unsigned char child_type;
121 } DtTitleBoxConstraintPart, * DtTitleBoxConstraint;
123 /* Full Constraint Record
125 typedef struct _DtTitleBoxConstraintRec
127 XmManagerConstraintPart manager_constraint;
128 DtTitleBoxConstraintPart title_box_constraint;
129 } DtTitleBoxConstraintRec, * DtTitleBoxConstraintPtr;
132 /*-------------------------------------------------------------
133 ** Class and Instance Macros
136 /* DtTitleBox Class Macros
139 /* DtTitleBox Instance Macros
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)
158 #endif /* _DtTitleBoxP_h */
159 /* DON'T ADD ANYTHING AFTER THIS #endif */