]> Dogcows Code - chaz/openbox/blob - otk/surface.hh
0c64c6f5b3eed1ab8f2229ca4f1f8807a5f1e1e4
[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 #include "truerendercontrol.hh"
7
8 extern "C" {
9 #include <X11/Xlib.h>
10 }
11
12 namespace otk {
13
14 class Surface {
15 Point _size;
16 Pixmap _pm;
17
18 protected:
19 Surface();
20 Surface(const Point &size);
21
22 virtual void setSize(int w, int h);
23
24 public:
25 virtual ~Surface();
26
27 virtual const Point& size() const { return _size; }
28 virtual int width() const { return _size.x(); }
29 virtual int height() const { return _size.y(); }
30
31 friend class TrueRenderControl;
32 };
33
34 }
35
36 #endif // __surface_hh
This page took 0.038782 seconds and 4 git commands to generate.