PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/platform/unix/platform/vars/window.d

http://github.com/wilkie/djehuty
D | 32 lines | 11 code | 8 blank | 13 comment | 0 complexity | bf1e96e13ae37c6c0f6f330ba19bfb67 MD5 | raw file
 1/*
 2 * window.d
 3 *
 4 * This module implements the platform specifics for the Window class.
 5 *
 6 * Author: Dave Wilkinson
 7 * Originated: July 25th, 2009
 8 *
 9 */
10
11module platform.vars.window;
12
13import X = binding.x.Xlib;
14
15struct WindowPlatformVars {
16	// required parameters:
17
18	bool _hasGL;		// is a GLWindow
19	bool _hasView;		// is a Window
20
21	// -----
22
23	X.Window window;
24	X.Window wm_parent;
25	int wm_x;
26	int wm_y;
27
28	//GLXContext ctx;
29
30	//to handle sync issues
31	bool destroy_called = false;		//true, when window is to be destroyed
32}