CTWM
Toggle main menu visibility
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/workspace_structs.h
Go to the documentation of this file.
1
/*
2
* Workspace-related structures and definitions
3
*/
4
5
#ifndef _CTWM_WORKSPACE_STRUCTS_H
6
#define _CTWM_WORKSPACE_STRUCTS_H
7
8
#define MAXWORKSPACE 32
9
10
typedef
enum
{
11
WMS_map
,
12
WMS_buttons
,
13
}
WMgrState
;
14
15
typedef
enum
{
16
STYLE_NORMAL
,
17
STYLE_STYLE1
,
18
STYLE_STYLE2
,
19
STYLE_STYLE3
,
20
}
ButtonStyle
;
21
22
struct
winList
{
23
struct
WorkSpace
*
wlist
;
24
Window
w
;
25
int
x
,
y
;
26
int
width
,
height
;
27
TwmWindow
*
twm_win
;
28
ColorPair
cp
;
29
MyFont
font
;
30
struct
winList
*
next
;
31
};
32
33
struct
WorkSpaceMgr
{
34
struct
WorkSpace
*
workSpaceList
;
35
struct
WorkSpaceWindow
*
workSpaceWindowList
;
36
struct
OccupyWindow
*
occupyWindow
;
37
MyFont
buttonFont
;
38
MyFont
windowFont
;
39
ColorPair
windowcp
;
40
bool
windowcpgiven
;
41
ColorPair
cp
;
42
long
count
;
43
char
*
geometry
;
44
int
lines
,
columns
;
45
bool
noshowoccupyall
;
46
WMgrState
initialstate
;
47
ButtonStyle
buttonStyle
;
48
name_list
*
windowBackgroundL
;
49
name_list
*
windowForegroundL
;
50
/* The fields below have been moved from WorkSpaceWindow */
51
ColorPair
curColors
;
52
Image
*
curImage
;
53
Pixel
curBorderColor
;
54
bool
curPaint
;
55
56
ColorPair
defColors
;
57
Image
*
defImage
;
58
Pixel
defBorderColor
;
59
int
hspace
,
vspace
;
60
char
*
name
;
61
char
*
icon_name
;
62
};
63
64
struct
WorkSpace
{
65
int
number
;
66
char
*
name
;
67
char
*
label
;
68
Image
*
image
;
69
name_list
*
clientlist
;
70
IconMgr
*
iconmgr
;
71
ColorPair
cp
;
72
ColorPair
backcp
;
73
TwmWindow
*
save_focus
;
/* Used by SaveWorkspaceFocus feature */
74
struct
WindowRegion
*
FirstWindowRegion
;
75
struct
WorkSpace
*
next
;
76
};
77
78
struct
MapSubwindow
{
79
Window
w
;
80
int
x
,
y
;
81
WinList
*
wl
;
82
};
83
84
struct
ButtonSubwindow
{
85
Window
w
;
86
};
87
88
struct
WorkSpaceWindow
{
/* There is one per virtual screen */
89
VirtualScreen
*
vs
;
90
Window
w
;
91
TwmWindow
*
twm_win
;
92
MapSubwindow
**
mswl
;
/* MapSubWindow List */
93
ButtonSubwindow
**
bswl
;
/* ButtonSubwindow List */
94
WorkSpace
*
currentwspc
;
95
96
WMgrState
state
;
97
98
int
width
,
height
;
// Window dimensions
99
int
bwidth
,
bheight
;
// Button dimensions
100
int
wwidth
,
wheight
;
// Map dimensions
101
};
102
103
#endif
/* _CTWM_WORKSPACE_STRUCTS_H */
ButtonSubwindow
Definition
workspace_structs.h:84
ButtonSubwindow::w
Window w
Definition
workspace_structs.h:85
ColorPair
Definition
ctwm.h:140
IconMgr
Definition
iconmgr.h:36
Image
Definition
image.h:9
MapSubwindow
Definition
workspace_structs.h:78
MapSubwindow::w
Window w
Definition
workspace_structs.h:79
MapSubwindow::x
int x
Definition
workspace_structs.h:80
MapSubwindow::wl
WinList * wl
Definition
workspace_structs.h:81
MapSubwindow::y
int y
Definition
workspace_structs.h:80
MyFont
Definition
ctwm.h:127
OccupyWindow
Definition
occupation.h:9
TwmWindow
Info and control for every X Window we take over.
Definition
twm_window_struct.h:34
VirtualScreen
Definition
vscreen.h:7
WindowRegion
Definition
ctwm.h:287
WorkSpaceMgr
Definition
workspace_structs.h:33
WorkSpaceMgr::curImage
Image * curImage
Definition
workspace_structs.h:52
WorkSpaceMgr::defColors
ColorPair defColors
Definition
workspace_structs.h:56
WorkSpaceMgr::cp
ColorPair cp
Definition
workspace_structs.h:41
WorkSpaceMgr::buttonFont
MyFont buttonFont
Definition
workspace_structs.h:37
WorkSpaceMgr::icon_name
char * icon_name
Definition
workspace_structs.h:61
WorkSpaceMgr::workSpaceList
struct WorkSpace * workSpaceList
Definition
workspace_structs.h:34
WorkSpaceMgr::windowcpgiven
bool windowcpgiven
Definition
workspace_structs.h:40
WorkSpaceMgr::windowForegroundL
name_list * windowForegroundL
Definition
workspace_structs.h:49
WorkSpaceMgr::geometry
char * geometry
Definition
workspace_structs.h:43
WorkSpaceMgr::windowFont
MyFont windowFont
Definition
workspace_structs.h:38
WorkSpaceMgr::defBorderColor
Pixel defBorderColor
Definition
workspace_structs.h:58
WorkSpaceMgr::vspace
int vspace
Definition
workspace_structs.h:59
WorkSpaceMgr::windowBackgroundL
name_list * windowBackgroundL
Definition
workspace_structs.h:48
WorkSpaceMgr::curPaint
bool curPaint
Definition
workspace_structs.h:54
WorkSpaceMgr::columns
int columns
Definition
workspace_structs.h:44
WorkSpaceMgr::curBorderColor
Pixel curBorderColor
Definition
workspace_structs.h:53
WorkSpaceMgr::defImage
Image * defImage
Definition
workspace_structs.h:57
WorkSpaceMgr::windowcp
ColorPair windowcp
Definition
workspace_structs.h:39
WorkSpaceMgr::count
long count
Definition
workspace_structs.h:42
WorkSpaceMgr::workSpaceWindowList
struct WorkSpaceWindow * workSpaceWindowList
Definition
workspace_structs.h:35
WorkSpaceMgr::noshowoccupyall
bool noshowoccupyall
Definition
workspace_structs.h:45
WorkSpaceMgr::lines
int lines
Definition
workspace_structs.h:44
WorkSpaceMgr::hspace
int hspace
Definition
workspace_structs.h:59
WorkSpaceMgr::occupyWindow
struct OccupyWindow * occupyWindow
Definition
workspace_structs.h:36
WorkSpaceMgr::buttonStyle
ButtonStyle buttonStyle
Definition
workspace_structs.h:47
WorkSpaceMgr::initialstate
WMgrState initialstate
Definition
workspace_structs.h:46
WorkSpaceMgr::name
char * name
Definition
workspace_structs.h:60
WorkSpaceMgr::curColors
ColorPair curColors
Definition
workspace_structs.h:51
WorkSpaceWindow
Definition
workspace_structs.h:88
WorkSpaceWindow::bheight
int bheight
Definition
workspace_structs.h:99
WorkSpaceWindow::state
WMgrState state
Definition
workspace_structs.h:96
WorkSpaceWindow::height
int height
Definition
workspace_structs.h:98
WorkSpaceWindow::wwidth
int wwidth
Definition
workspace_structs.h:100
WorkSpaceWindow::currentwspc
WorkSpace * currentwspc
Definition
workspace_structs.h:94
WorkSpaceWindow::bwidth
int bwidth
Definition
workspace_structs.h:99
WorkSpaceWindow::vs
VirtualScreen * vs
Definition
workspace_structs.h:89
WorkSpaceWindow::wheight
int wheight
Definition
workspace_structs.h:100
WorkSpaceWindow::w
Window w
Definition
workspace_structs.h:90
WorkSpaceWindow::bswl
ButtonSubwindow ** bswl
Definition
workspace_structs.h:93
WorkSpaceWindow::mswl
MapSubwindow ** mswl
Definition
workspace_structs.h:92
WorkSpaceWindow::width
int width
Definition
workspace_structs.h:98
WorkSpaceWindow::twm_win
TwmWindow * twm_win
Definition
workspace_structs.h:91
WorkSpace
Definition
workspace_structs.h:64
WorkSpace::label
char * label
Definition
workspace_structs.h:67
WorkSpace::save_focus
TwmWindow * save_focus
Definition
workspace_structs.h:73
WorkSpace::cp
ColorPair cp
Definition
workspace_structs.h:71
WorkSpace::number
int number
Definition
workspace_structs.h:65
WorkSpace::iconmgr
IconMgr * iconmgr
Definition
workspace_structs.h:70
WorkSpace::backcp
ColorPair backcp
Definition
workspace_structs.h:72
WorkSpace::FirstWindowRegion
struct WindowRegion * FirstWindowRegion
Definition
workspace_structs.h:74
WorkSpace::next
struct WorkSpace * next
Definition
workspace_structs.h:75
WorkSpace::name
char * name
Definition
workspace_structs.h:66
WorkSpace::clientlist
name_list * clientlist
Definition
workspace_structs.h:69
WorkSpace::image
Image * image
Definition
workspace_structs.h:68
name_list
Definition
list.h:20
winList
Definition
workspace_structs.h:22
winList::font
MyFont font
Definition
workspace_structs.h:29
winList::height
int height
Definition
workspace_structs.h:26
winList::width
int width
Definition
workspace_structs.h:26
winList::wlist
struct WorkSpace * wlist
Definition
workspace_structs.h:23
winList::y
int y
Definition
workspace_structs.h:25
winList::cp
ColorPair cp
Definition
workspace_structs.h:28
winList::x
int x
Definition
workspace_structs.h:25
winList::w
Window w
Definition
workspace_structs.h:24
winList::twm_win
TwmWindow * twm_win
Definition
workspace_structs.h:27
winList::next
struct winList * next
Definition
workspace_structs.h:30
WinList
struct winList WinList
Definition
types.h:54
WMgrState
WMgrState
Definition
workspace_structs.h:10
WMS_buttons
@ WMS_buttons
Definition
workspace_structs.h:12
WMS_map
@ WMS_map
Definition
workspace_structs.h:11
ButtonStyle
ButtonStyle
Definition
workspace_structs.h:15
STYLE_STYLE3
@ STYLE_STYLE3
Definition
workspace_structs.h:19
STYLE_NORMAL
@ STYLE_NORMAL
Definition
workspace_structs.h:16
STYLE_STYLE1
@ STYLE_STYLE1
Definition
workspace_structs.h:17
STYLE_STYLE2
@ STYLE_STYLE2
Definition
workspace_structs.h:18
workspace_structs.h
Generated by
1.18.0