]> Dogcows Code - chaz/openbox/blob - otk/surface.hh
7289b14aaebac8bd7a1c13bc987b51f8dd298eed
[chaz/openbox] / otk / surface.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __surface_hh
3 #define __surface_hh
4
5 #include "point.hh"
6
7 extern "C" {
8 #include <X11/Xlib.h>
9 }
10
11 namespace otk {
12
13 class Surface {
14 Point _size;
15 Pixmap _pm;
16
17 protected:
18 Surface();
19 Surface(const Point &size);
20
21 virtual void setSize(int w, int h);
22
23 public:
24 virtual ~Surface();
25
26 virtual const Point& size() const { return _size; }
27 virtual int width() const { return _size.x(); }
28 virtual int height() const { return _size.y(); }
29 };
30
31 }
32
33 #endif // __surface_hh
This page took 0.034776 seconds and 4 git commands to generate.