/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
- /*
- * view.d
- *
- * This module implements the platform specifics for the View class.
- *
- * Author: Dave Wilkinson
- * Originated: July 25th, 2009
- *
- */
- module platform.vars.view;
- import platform.vars.brush;
- import platform.vars.pen;
- import Cairo = binding.cairo.cairo;
- import Pango = binding.pango.pango;
- import X = binding.x.Xlib;
- struct ViewPlatformVars {
- // antialias
- bool aa;
- X.Window cur_window;
- X.Pixmap pixmap;
- bool pixmap_loaded;
- X.GC gc;
- uint curpen;
- uint curbrush;
- PenPlatformVars curPen;
- BrushPlatformVars curBrush;
- //text
- Cairo.cairo_t* cr;
- Cairo.cairo_surface_t* surface;
- Pango.PangoLayout* layout;
- Pango.PangoAttrList* attr_list_opaque;
- Pango.PangoAttrList* attr_list_transparent;
- Pango.PangoAttribute* attr_bg;
- char* data;
- double textclr_red;
- double textclr_green;
- double textclr_blue;
- double textclr_alpha;
- int isOpaqueRendering;
- ulong bits_length;
- }