]> Dogcows Code - chaz/openbox/blob - otk/surface.hh
b027f7961f24346ce0d7933f3e1564af73d8466c
[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 virtual Pixmap pixmap() const { return _pm; } // TEMP
31
32 friend class TrueRenderControl;
33 };
34
35 }
36
37 #endif // __surface_hh
This page took 0.034497 seconds and 4 git commands to generate.