PageRenderTime 42ms CodeModel.GetById 27ms app.highlight 10ms RepoModel.GetById 2ms app.codeStats 0ms

/platform/unix/platform/vars/view.d

http://github.com/wilkie/djehuty
D | 58 lines | 30 code | 17 blank | 11 comment | 0 complexity | 93cc6b263e1f01e1d52b9002700ac215 MD5 | raw file
 1/*
 2 * view.d
 3 *
 4 * This module implements the platform specifics for the View class.
 5 *
 6 * Author: Dave Wilkinson
 7 * Originated: July 25th, 2009
 8 *
 9 */
10
11module platform.vars.view;
12
13import platform.vars.brush;
14import platform.vars.pen;
15
16import Cairo = binding.cairo.cairo;
17import Pango = binding.pango.pango;
18import X = binding.x.Xlib;
19
20struct ViewPlatformVars {
21	// antialias
22	bool aa;
23
24	X.Window cur_window;
25
26	X.Pixmap pixmap;
27	bool pixmap_loaded;
28
29	X.GC gc;
30
31	uint curpen;
32	uint curbrush;
33
34	PenPlatformVars curPen;
35	BrushPlatformVars curBrush;
36
37	//text
38	Cairo.cairo_t* cr;
39	Cairo.cairo_surface_t* surface;
40
41	Pango.PangoLayout* layout;
42
43	Pango.PangoAttrList* attr_list_opaque;
44	Pango.PangoAttrList* attr_list_transparent;
45
46	Pango.PangoAttribute* attr_bg;
47
48	char* data;
49
50	double textclr_red;
51	double textclr_green;
52	double textclr_blue;
53	double textclr_alpha;
54
55	int isOpaqueRendering;
56
57	ulong bits_length;
58}