[go: up one dir, main page]

Menu

[2e2bd2]: / src / wmswitch.h  Maximize  Restore  History

Download this file

62 lines (42 with data), 1.3 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
#ifndef __SWITCH_H
#define __SWITCH_H
#include "ymenu.h"
class YFrameWindow;
class SwitchWindow: public YPopupWindow {
public:
SwitchWindow(YWindow *parent = 0);
virtual ~SwitchWindow();
virtual void paint(Graphics &g, int x, int y, unsigned int width, unsigned int height);
YFrameWindow *nextWindow(YFrameWindow *from, bool zdown, bool next);
void begin(bool zdown, int mods);
virtual void activatePopup();
virtual void deactivatePopup();
virtual bool handleKey(const XKeyEvent &key);
virtual void handleButton(const XButtonEvent &button);
void destroyedFrame(YFrameWindow *frame);
void cancel();
void accept();
void displayFocus(YFrameWindow *frame);
private:
YFrameWindow *fActiveWindow;
YFrameWindow *fLastWindow;
int fIconCount, fIconOffset;
#ifdef CONFIG_GRADIENTS
class YPixbuf * fGradient;
#endif
static YColor *switchFg;
static YColor *switchBg;
static YColor *switchHl;
static YFont *switchFont;
int modsDown;
bool isUp;
bool modDown(int m);
bool isModKey(KeyCode c);
void resize();
};
extern SwitchWindow * switchWindow;
extern YPixmap * switchbackPixmap;
#ifdef CONFIG_GRADIENTS
extern class YPixbuf * switchbackPixbuf;
#endif
#endif