summaryrefslogtreecommitdiff
path: root/otk/surface.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-08 07:33:48 +0000
committerDana Jansens <danakj@orodu.net>2003-02-08 07:33:48 +0000
commit99cd843fc6dc7a7f55b6c90fd1162f233853aad2 (patch)
tree42b25c02cbf984fe29b378e9d0dbfbca1436c87b /otk/surface.hh
parentd2df40965bbf042e062b65d6adc12bc158d503eb (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/surface.hh')
-rw-r--r--otk/surface.hh10
1 files changed, 4 insertions, 6 deletions
diff --git a/otk/surface.hh b/otk/surface.hh
index 112bb392..7a202491 100644
--- a/otk/surface.hh
+++ b/otk/surface.hh
@@ -2,7 +2,7 @@
#ifndef __surface_hh
#define __surface_hh
-#include "point.hh"
+#include "size.hh"
#include "truerendercontrol.hh"
#include "pseudorendercontrol.hh"
@@ -19,7 +19,7 @@ class RenderColor;
class Surface {
int _screen;
- Point _size;
+ Size _size;
Pixmap _pixmap;
XftDraw *_xftdraw;
@@ -31,14 +31,12 @@ protected:
void setPixmap(const RenderColor &color);
public:
- Surface(int screen, const Point &size);
+ Surface(int screen, const Size &size);
virtual ~Surface();
inline int screen(void) const { return _screen; }
- virtual const Point& size() const { return _size; }
- virtual int width() const { return _size.x(); }
- virtual int height() const { return _size.y(); }
+ virtual const Size& size() const { return _size; }
virtual Pixmap pixmap() const { return _pixmap; }