Mercurial > projects > dwt-linux
view dwt/graphics/GCData.d @ 240:ce446666f5a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 12 May 2008 19:13:01 +0200 |
parents | 380bad9f6852 |
children | c0d810de7093 |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 2000, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwt.graphics.GCData; import dwt.dwthelper.utils; import dwt.internal.gtk.OS; import dwt.DWT; import dwt.graphics.Device; import dwt.graphics.Pattern; import dwt.graphics.Image; import dwt.graphics.Font; /** * Instances of this class are descriptions of GCs in terms * of unallocated platform-specific data fields. * <p> * <b>IMPORTANT:</b> This class is <em>not</em> part of the public * API for DWT. It is marked public only so that it can be shared * within the packages provided by DWT. It is not available on all * platforms, and should never be called from application code. * </p> */ public final class GCData { public Device device; public int style, state = -1; public GdkColor* foreground; public GdkColor* background; public Font font; public Pattern foregroundPattern; public Pattern backgroundPattern; public GdkRegion* clipRgn; public float lineWidth; public int lineStyle = DWT.LINE_SOLID; public float[] lineDashes; public float lineDashesOffset; public float lineMiterLimit = 10; public int lineCap = DWT.CAP_FLAT; public int lineJoin = DWT.JOIN_MITER; public bool xorMode; public int alpha = 0xFF; public int interpolation = DWT.DEFAULT; public PangoContext* context; public PangoLayout* layout; public GdkRegion* damageRgn; public Image image; public GdkDrawable* drawable; public cairo_t* cairo; public double cairoXoffset, cairoYoffset; public bool disposeCairo; public double[] clippingTransform; public String str; public int stringWidth = -1; public int stringHeight = -1; public int drawFlags; public bool realDrawable; public int width = -1, height = -1; }