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: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */
24 /**---------------------------------------------------------------------
28 *** project: MotifPlus Widgets
30 *** description: Private include file for DtView class.
33 *** (c) Copyright 1990 by Hewlett-Packard Company.
36 ***-------------------------------------------------------------------*/
43 #include <Xm/BulletinBP.h>
49 /*-------------------------------------------------------------
55 typedef struct _DtViewClassPart
62 typedef struct _DtViewClassRec
64 CoreClassPart core_class;
65 CompositeClassPart composite_class;
66 ConstraintClassPart constraint_class;
67 XmManagerClassPart manager_class;
68 XmBulletinBoardClassPart bulletin_board_class;
69 XmFormClassPart form_class;
70 DtViewClassPart view_class;
75 extern DtViewClassRec dtViewClassRec;
80 /*-------------------------------------------------------------
86 typedef struct _DtViewPart
88 Dimension width_increment;
89 Dimension height_increment;
91 Dimension right_inset;
93 Dimension bottom_inset;
94 unsigned char box_type;
95 Boolean subpanel_unpost_on_select;
96 Boolean subpanel_torn;
99 /* Full Instance Record
101 typedef struct _DtViewRec
104 CompositePart composite;
105 ConstraintPart constraint;
106 XmManagerPart manager;
107 XmBulletinBoardPart bulletin_board;
113 /*-------------------------------------------------------------
114 ** Constraint Structure
119 typedef struct _DtViewConstraintPart
121 unsigned char foo_bar;
122 } DtViewConstraintPart, * DtViewConstraint;
124 /* Full Constraint Record
126 typedef struct _DtViewConstraintRec
128 XmManagerConstraintPart manager_constraint;
129 XmFormConstraintPart form_constraint;
130 DtViewConstraintPart view_constraint;
131 } DtViewConstraintRec, * DtViewConstraintPtr;
134 /*-------------------------------------------------------------
135 ** Class and Instance Macros
138 /* DtView Class Macros
141 /* DtView Instance Macros
143 #define M_BottomShadowColor(m) (m -> manager.bottom_shadow_color)
144 #define M_TopShadowColor(m) (m -> manager.top_shadow_color)
145 #define M_HighlightColor(m) (m -> manager.highlight_color)
146 #define M_BackgroundPixmap(m) (m -> core.background_pixmap)
147 #define M_LeftInset(m) (m -> view.left_inset)
148 #define M_RightInset(m) (m -> view.right_inset)
149 #define M_TopInset(m) (m -> view.top_inset)
150 #define M_BottomInset(m) (m -> view.bottom_inset)
151 #define M_BoxType(m) (m -> view.box_type)
152 #define M_WidthIncrement(m) (m -> view.width_increment)
153 #define M_HeightIncrement(m) (m -> view.height_increment)
156 #endif /* _DtViewP_h */
158 /* DON'T ADD ANYTHING AFTER THIS #endif */