diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-08 07:33:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-08 07:33:48 +0000 |
| commit | 99cd843fc6dc7a7f55b6c90fd1162f233853aad2 (patch) | |
| tree | 42b25c02cbf984fe29b378e9d0dbfbca1436c87b /otk/screeninfo.hh | |
| parent | d2df40965bbf042e062b65d6adc12bc158d503eb (diff) | |
Brand spankin new widgets for otk (Label and Button).
Add a new Size class.
Rect, Point, and Size are immutable classes.
Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that.
Diffstat (limited to 'otk/screeninfo.hh')
| -rw-r--r-- | otk/screeninfo.hh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/otk/screeninfo.hh b/otk/screeninfo.hh index f523d23b..440573aa 100644 --- a/otk/screeninfo.hh +++ b/otk/screeninfo.hh @@ -2,6 +2,7 @@ #ifndef __screeninfo_hh #define __screeninfo_hh +#include "size.hh" #include "rect.hh" extern "C" { @@ -9,6 +10,7 @@ extern "C" { } #include <string> +#include <vector> namespace otk { @@ -21,9 +23,9 @@ private: int _depth; unsigned int _screen; std::string _display_string; - Rect _rect; + Size _size; #ifdef XINERAMA - RectList _xinerama_areas; + std::vector<Rect> _xinerama_areas; bool _xinerama_active; #endif @@ -35,12 +37,11 @@ public: inline Colormap colormap() const { return _colormap; } inline int depth() const { return _depth; } inline unsigned int screen() const { return _screen; } - inline const Rect& rect() const { return _rect; } - inline unsigned int width() const { return _rect.width(); } - inline unsigned int height() const { return _rect.height(); } + inline const Size& size() const { return _size; } inline const std::string& displayString() const { return _display_string; } #ifdef XINERAMA - inline const RectList &xineramaAreas() const { return _xinerama_areas; } + inline const std::vector<Rect> &xineramaAreas() const + { return _xinerama_areas; } inline bool isXineramaActive() const { return _xinerama_active; } #endif }; |
