[go: up one dir, main page]

Menu

[3cb4b9]: / src / wmswitch.h  Maximize  Restore  History

Download this file

79 lines (58 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef __SWITCH_H
#define __SWITCH_H
#include "ymenu.h"
class YFrameWindow;
class YWindowManager;
class SwitchWindow: public YPopupWindow {
public:
SwitchWindow(YWindow *parent = 0);
virtual ~SwitchWindow();
virtual void paint(Graphics &g, const YRect &r);
void begin(bool zdown, int mods);
virtual void activatePopup(int flags);
virtual void deactivatePopup();
virtual bool handleKey(const XKeyEvent &key);
virtual void handleButton(const XButtonEvent &button);
void destroyedFrame(YFrameWindow *frame);
private:
YWindowManager *fRoot;
YFrameWindow *fActiveWindow;
YFrameWindow *fLastWindow;
#ifdef CONFIG_GRADIENTS
ref<YPixbuf> fGradient;
#endif
static YColor *switchFg;
static YColor *switchBg;
static YColor *switchHl;
static YColor *switchMbg;
static YColor *switchMfg;
static ref<YFont> switchFont;
int modsDown;
bool isUp;
bool modDown(int m);
bool isModKey(KeyCode c);
void resize(int xiscreen);
int getZListCount();
int getZList(YFrameWindow **list, int max);
int GetZListWorkspace(YFrameWindow **list, int max,
bool workspaceOnly, int workspace);
void updateZList();
void freeZList();
int zCount;
int zTarget;
YFrameWindow **zList;
void cancel();
void accept();
void displayFocus(YFrameWindow *frame);
//YFrameWindow *nextWindow(YFrameWindow *from, bool zdown, bool next);
YFrameWindow *nextWindow(bool zdown);
private: // not-used
SwitchWindow(const SwitchWindow &);
SwitchWindow &operator=(const SwitchWindow &);
};
extern SwitchWindow * switchWindow;
extern ref<YPixmap> switchbackPixmap;
#ifdef CONFIG_GRADIENTS
extern ref<YPixbuf> switchbackPixbuf;
#endif
#endif