#include "LinkedList.h"
#include "Timer.h"
+#include "Geometry.h"
#define AttribShaded (1l << 0)
#define AttribMaxHoriz (1l << 1)
public:
- BaseDisplay(char *, char * = 0);
+ BaseDisplay(const char *, char * = 0);
virtual ~BaseDisplay(void);
inline const Atom &getWMChangeStateAtom(void) const
class ScreenInfo {
private:
- BaseDisplay *basedisplay;
+ BaseDisplay &basedisplay;
Visual *visual;
Window root_window;
Colormap colormap;
int depth, screen_number;
- unsigned int width, height;
+ Size m_size;
public:
- ScreenInfo(BaseDisplay *, int);
+ ScreenInfo(BaseDisplay &, int);
- inline BaseDisplay *getBaseDisplay(void) { return basedisplay; }
+ inline BaseDisplay &getBaseDisplay(void) { return basedisplay; }
inline Visual *getVisual(void) { return visual; }
inline const Window &getRootWindow(void) const { return root_window; }
inline const int &getDepth(void) const { return depth; }
inline const int &getScreenNumber(void) const { return screen_number; }
- inline const unsigned int &getWidth(void) const { return width; }
- inline const unsigned int &getHeight(void) const { return height; }
+// inline const unsigned int &getWidth(void) const { return width; }
+// inline const unsigned int &getHeight(void) const { return height; }
+ inline const Size &size() const { return m_size; }
};