]>
Dogcows Code - chaz/openbox/blob - surface.hh
40dfbf84cee43747b433e1ebbc7604978a116a63
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
9 #define _XFT_NO_COMPAT_ // no Xft 1 API
10 #include <X11/Xft/Xft.h>
15 # ifdef HAVE_SYS_TYPES_H
16 # include <sys/types.h>
26 class TrueRenderControl
;
27 class PseudoRenderControl
;
30 typedef uint32_t pixel32
;
31 typedef uint16_t pixel16
;
33 typedef u_int32_t pixel32
;
34 typedef u_int16_t pixel16
;
35 #endif /* HAVE_STDINT_H */
46 void destroyObjects();
48 void setPixmap(XImage
*image
);
49 void setPixmap(const RenderColor
&color
);
52 Surface(int screen
, const Size
&size
);
55 inline int screen(void) const { return _screen
; }
57 const Size
& size() const { return _size
; }
59 Pixmap
pixmap() const { return _pixmap
; }
61 pixel32
*pixelData() { return _pixel_data
; }
63 // The RenderControl classes use the internal objects in this class to render
64 // to it. Noone else needs them tho, so they are private.
65 friend class RenderControl
;
66 friend class TrueRenderControl
;
67 friend class PseudoRenderControl
;
72 #endif // __surface_hh
This page took 0.034641 seconds and 3 git commands to generate.