FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
WindowContextWin.h
1 /**********************************************************\
2  Original Author: Georg Fritzsche
3 
4  Created: Oct 23, 2010
5  License: Dual license model; choose one of two:
6  New BSD License
7  http://www.opensource.org/licenses/bsd-license.php
8  - or -
9  GNU Lesser General Public License, version 2.1
10  http://www.gnu.org/licenses/lgpl-2.1.html
11 
12  Copyright 2010 Georg Fritzsche, Firebreath development team
13  \*********************************************************
14  */
15 
16 #pragma once
17 #ifndef H_FB_WINDOWCONTEXTWIN
18 #define H_FB_WINDOWCONTEXTWIN
19 
20 #include "win_common.h"
21 #include "FBPointers.h"
22 
23 namespace FB
24 {
25  struct WindowContextWin
26  {
27  HWND handle;
28  WindowContextWin(HWND handle)
29  : handle(handle)
30  {}
31  };
32 
33  FB_FORWARD_PTR(AsyncDrawService);
34 
35  struct WindowContextWindowless
36  {
37  HDC drawable;
38  AsyncDrawServicePtr asyncDraw;
39 
40  WindowContextWindowless(HDC drawable)
41  : drawable(drawable)
42  {}
43  WindowContextWindowless(HDC drawable, AsyncDrawServicePtr p)
44  : drawable(drawable)
45  , asyncDraw(p)
46  {}
47  };
48 
49 }
50 
51 #endif
52