dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
[oweals/cde.git] / cde / lib / DtWidget / ViewP.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: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */
24 /**---------------------------------------------------------------------
25 ***     
26 ***     file:           ViewP.h
27 ***
28 ***     project:        MotifPlus Widgets
29 ***
30 ***     description:    Private include file for DtView class.
31 ***     
32 ***     
33 ***                     (c) Copyright 1990 by Hewlett-Packard Company.
34 ***
35 ***
36 ***-------------------------------------------------------------------*/
37
38
39 #ifndef _DtViewP_h
40 #define _DtViewP_h
41
42 #include <Xm/XmP.h>
43 #include <Xm/BulletinBP.h>
44 #include <Xm/FormP.h>
45 #include <Dt/View.h>
46
47
48
49 /*-------------------------------------------------------------
50 **      Class Structure
51 */
52
53 /*      Class Part
54 */
55 typedef struct _DtViewClassPart
56 {
57         caddr_t                 extension;
58 } DtViewClassPart;
59
60 /*      Full Class Record
61 */
62 typedef struct _DtViewClassRec
63 {
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;
71 } DtViewClassRec;
72
73 /*      Actual Class
74 */
75 extern DtViewClassRec dtViewClassRec;
76
77
78
79 \f
80 /*-------------------------------------------------------------
81 **      Instance Structure
82 */
83
84 /*      Instance Part
85 */
86 typedef struct _DtViewPart
87 {
88         Dimension       width_increment;
89         Dimension       height_increment;
90         Dimension       left_inset;
91         Dimension       right_inset;
92         Dimension       top_inset;
93         Dimension       bottom_inset;
94         unsigned char   box_type;
95         Boolean         subpanel_unpost_on_select;
96         Boolean         subpanel_torn;
97 } DtViewPart;
98
99 /*      Full Instance Record
100 */
101 typedef struct _DtViewRec
102 {
103         CorePart                core;
104         CompositePart           composite;
105         ConstraintPart          constraint;
106         XmManagerPart           manager;
107         XmBulletinBoardPart     bulletin_board;
108         XmFormPart              form;
109         DtViewPart              view;
110 } DtViewRec;
111
112
113 /*-------------------------------------------------------------
114 **      Constraint Structure
115 */
116
117 /*      Constraint Part
118 */
119 typedef struct _DtViewConstraintPart
120 {
121         unsigned char   foo_bar;
122 } DtViewConstraintPart, * DtViewConstraint;
123
124 /*      Full Constraint Record
125 */
126 typedef struct _DtViewConstraintRec
127 {
128         XmManagerConstraintPart         manager_constraint;
129         XmFormConstraintPart            form_constraint;
130         DtViewConstraintPart    view_constraint;
131 } DtViewConstraintRec, * DtViewConstraintPtr;
132
133
134 /*-------------------------------------------------------------
135 **      Class and Instance Macros
136 */
137
138 /*      DtView Class Macros
139 */      
140
141 /*      DtView Instance Macros
142 */
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)
154
155
156 #endif /* _DtViewP_h */
157
158 /* DON'T ADD ANYTHING AFTER THIS #endif */