Mercurial > projects > dwt-linux
view dwt/graphics/GCData.d @ 21:4f9c0fea3440
Path
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 07 Jan 2008 09:11:15 +0100 |
parents | b73b14942338 |
children | bc06000c0816 |
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 *******************************************************************************/ module dwt.graphics.GCData; import dwt.internal.gtk.c.gdktypes; import dwt.internal.gtk.c.cairotypes; import dwt.SWT; import dwt.graphics.Device; import dwt.graphics.Pattern; import dwt.graphics.Image; /** * 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 SWT. It is marked public only so that it can be shared * within the packages provided by SWT. 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 PangoFontDescription* font; public Pattern foregroundPattern; public Pattern backgroundPattern; public int /*long*/ clipRgn; public float lineWidth; public int lineStyle = SWT.LINE_SOLID; public float[] lineDashes; public float lineDashesOffset; public float lineMiterLimit = 10; public int lineCap = SWT.CAP_FLAT; public int lineJoin = SWT.JOIN_MITER; public bool xorMode; public int alpha = 0xFF; public int interpolation = SWT.DEFAULT; public int /*long*/ context; public int /*long*/ layout; public int /*long*/ damageRgn; public Image image; public GdkDrawable* drawable; public cairo_t* cairo; public double cairoXoffset, cairoYoffset; public bool disposeCairo; public double[] clippingTransform; public char[] str; public int stringWidth = -1; public int stringHeight = -1; public int drawFlags; }