1/*
2 * Copyright 1992 Claude Lecommandeur.
3 */
4
5#ifndef _CTWM_WORKMGR_H
6#define _CTWM_WORKMGR_H
7
8/* General creation/WSM drawing */
9void InitWorkSpaceManagerContext(void);
10void ConfigureWorkSpaceManager(ScreenInfo *scr);
11void CreateWorkSpaceManager(void);
12void PaintWorkSpaceManager(VirtualScreen *vs);
13void WMgrHandleExposeEvent(VirtualScreen *vs, XEvent *event);
14
15void WMgrToggleState(VirtualScreen *vs);
16void WMgrSetMapState(VirtualScreen *vs);
17void WMgrSetButtonsState(VirtualScreen *vs);
18
19/* Events */
20void WMgrHandleKeyReleaseEvent(VirtualScreen *vs, XEvent *event);
21void WMgrHandleKeyPressEvent(VirtualScreen *vs, XEvent *event);
22void WMgrHandleButtonEvent(VirtualScreen *vs, XEvent *event);
23
24/* Map state handling bits */
25void WMapMapWindow(TwmWindow *win);
26void WMapDeIconify(TwmWindow *win);
27void WMapIconify(TwmWindow *win);
28void WMapSetupWindow(TwmWindow *win, int x, int y, int w, int h);
29void WMapRaiseLower(TwmWindow *win);
30void WMapLower(TwmWindow *win);
31void WMapRaise(TwmWindow *win);
32void WMapRestack(WorkSpace *ws);
33
34/* Map state drawing / state */
35void WMapUpdateIconName(TwmWindow *win);
36void WMapRedrawName(VirtualScreen *vs, WinList *wl);
37
38void WMapAddWindow(TwmWindow *win);
39void WMapAddWindowToWorkspace(TwmWindow *win, WorkSpace *ws);
40void WMapRemoveWindow(TwmWindow *win);
41void WMapRemoveWindowFromWorkspace(TwmWindow *win, WorkSpace *ws);
42
43/* Util */
44bool WMapWindowMayBeAdded(TwmWindow *win);
45
46#endif /* _CTWM_WORKMGR_H */
47