c483a90681d57c63ec75a645afa92ee076246c2a
[uwplayer.git] / application / SidebarP.h
1 /*
2  * Copyright 2022 Olaf Wintermann
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a 
5  * copy of this software and associated documentation files (the "Software"), 
6  * to deal in the Software without restriction, including without limitation 
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
8  * and/or sell copies of the Software, and to permit persons to whom the 
9  * Software is furnished to do so, subject to the following conditions:
10  * 
11  * The above copyright notice and this permission notice shall be included in 
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
20  * DEALINGS IN THE SOFTWARE.
21  */
22
23
24 #ifndef SIDEBARP_H
25 #define SIDEBARP_H
26
27
28 #include <Xm/XmP.h>
29 #include <Xm/PrimitiveP.h>
30 #include <Xm/ManagerP.h>
31 #include <Xm/FormP.h>
32 #include <X11/Intrinsic.h>
33 #include <Xm/PrimitiveP.h>
34 #include "nfont.h"
35
36 #include "window.h"
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42     
43 typedef struct SidebarClassPart {
44     int unused;
45 } SidebarClassPart;
46
47 typedef struct SidebarClassRec {
48     CoreClassPart             core_class;
49     CompositeClassPart        composite_class;
50     ConstraintClassPart       constraint_class;
51     XmManagerClassPart        manager_class;
52     SidebarClassPart          sidebar_class;
53 } SidebarClassRec;
54
55 typedef struct SidebarPart {
56     XftDraw *d;
57     NFont *font;
58     XftColor fg;
59     XftColor bg;
60     
61     int elmHeight;
62     
63     MainWindow *window;
64 } SidebarPart;
65
66 typedef struct SidebarRec {
67    CorePart             core;
68    CompositePart        composite;
69    ConstraintPart       constraint;
70    XmManagerPart        manager;
71    SidebarPart          sidebar;
72 } SidebarRec;
73
74 typedef struct SidebarRec *Sidebar;
75
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* SIDEBARP_H */
82