]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/drawcontext.h
Correct the offset of function keys in the X11 keymap
[libs/gui.git] / source / graphics / drawcontext.h
1 #ifndef MSP_GRAPHICS_DRAWCONTEXT_H_
2 #define MSP_GRAPHICS_DRAWCONTEXT_H_
3
4 namespace Msp {
5 namespace Graphics {
6
7 class Display;
8 class Window;
9
10 class DrawContext
11 {
12 private:
13         struct Private;
14
15         Display &display;
16         Window &window;
17         Private *priv;
18
19 public:
20         DrawContext(Window &);
21         ~DrawContext();
22
23         Window &get_window() const { return window; }
24         unsigned get_depth() const;
25         unsigned char *get_data();
26         void update();
27 };
28
29 } // namespace Graphics
30 } // namespace Msp
31
32 #endif