]> git.tdb.fi Git - libs/gui.git/blob - source/gbase/drawcontext.h
1411294072bbe0625d63d63ff97b1b5114827436
[libs/gui.git] / source / gbase / drawcontext.h
1 /* $Id$
2
3 This file is part of libmspgbase
4 Copyright © 2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GBASE_DRAWCONTEXT_H_
9 #define MSP_GBASE_DRAWCONTEXT_H_
10
11 namespace Msp {
12 namespace Graphics {
13
14 class Display;
15 class Window;
16
17 class DrawContext
18 {
19 private:
20         struct Private;
21
22         Display &display;
23         Window &window;
24         Private *priv;
25
26 public:
27         DrawContext(Window &);
28         ~DrawContext();
29
30         Window &get_window() const { return window; }
31         unsigned get_depth() const;
32         unsigned char *get_data();
33         void update();
34 };
35
36 } // namespace Graphics
37 } // namespace Msp
38
39 #endif