dtcm: Coverity 89287
[oweals/cde.git] / cde / programs / dtwm / PanelSP.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 libraries 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
24 #ifndef _DtPanelShellP_h
25 #define _DtPanelShellP_h
26
27 #include <Xm/XmP.h>
28 #include <X11/ShellP.h>
29 #include "PanelS.h"
30
31
32 typedef struct _DtPanelShellClassPart
33     {
34     XtPointer           extension;
35     }   DtPanelShellClassPart;
36
37 typedef struct _DtPanelShellClassRec
38     {
39     CoreClassPart       core_class;
40     CompositeClassPart  composite_class;
41     ShellClassPart      shell_class;
42     WMShellClassPart    wm_shell_class;
43     VendorShellClassPart        vendor_shell_class;
44     TopLevelShellClassPart      top_level_shell_class;
45     DtPanelShellClassPart       application_shell_class;
46     }   DtPanelShellClassRec;
47
48 extern DtPanelShellClassRec dtPanelShellClassRec;
49
50
51 typedef struct _DtPanelShellPart
52     {
53     XmFontList          high_res_font_list;
54     XmFontList          medium_res_font_list;
55     XmFontList          low_res_font_list;
56     Dimension           resolution;
57     }   DtPanelShellPart;
58
59 typedef struct _DtPanelShellRec
60     {
61     CorePart            core;
62     CompositePart       composite;
63     ShellPart           shell;
64     WMShellPart         wm;
65     VendorShellPart     vendor;
66     TopLevelShellPart   topLevel;
67     DtPanelShellPart    panel;
68     }   DtPanelShellRec;
69
70
71 /*-------------------------------------------------------------
72 **      Class and Instance Macros
73 */
74
75 /*      DtPanelShell Class Macros
76 */      
77
78 /*      DtPanelShell Instance Macros
79 */
80 #define S_Resolution(s)         (s -> panel.resolution)
81 #define S_HighResFontList(s)    (s -> panel.high_res_font_list)
82 #define S_MediumResFontList(s)  (s -> panel.medium_res_font_list)
83 #define S_LowResFontList(s)     (s -> panel.low_res_font_list)
84
85
86 #endif /* _DtPanelShellP_h */