[go: up one dir, main page]

Menu

[e0151d]: / src / aworkspaces.h  Maximize  Restore  History

Download this file

56 lines (41 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
#ifndef AWORKSPACES_H_
#define AWORKSPACES_H_
#include "ywindow.h"
#include "ybutton.h"
#include "ytimer.h"
class WorkspaceButton: public YButton, public YTimerListener {
public:
WorkspaceButton(long workspace, YWindow *parent);
virtual void handleClick(const XButtonEvent &up, int count);
virtual void handleDNDEnter();
virtual void handleDNDLeave();
virtual bool handleTimer(YTimer *t);
virtual void actionPerformed(YAction *button, unsigned int modifiers);
virtual YFont * getFont();
virtual YColor * getColor();
virtual YSurface getSurface();
private:
static YTimer *fRaiseTimer;
long fWorkspace;
static YColor * normalButtonBg;
static YColor * normalButtonFg;
static YColor * activeButtonBg;
static YColor * activeButtonFg;
static YFont * normalButtonFont;
static YFont * activeButtonFont;
};
class WorkspacesPane: public YWindow {
public:
WorkspacesPane(YWindow *parent);
~WorkspacesPane();
WorkspaceButton *workspaceButton(long n);
private:
WorkspaceButton **fWorkspaceButton;
};
extern YPixmap *workspacebuttonPixmap;
extern YPixmap *workspacebuttonactivePixmap;
#ifdef CONFIG_GRADIENTS
extern class YPixbuf *workspacebuttonPixbuf;
extern class YPixbuf *workspacebuttonactivePixbuf;
#endif
#endif