| /******************************************************************************* |
| * Copyright (c) 2000, 2008 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 |
| *******************************************************************************/ |
| package org.eclipse.swt.graphics; |
| |
| |
| import org.eclipse.swt.*; |
| import org.eclipse.swt.internal.motif.*; |
| |
| /** |
| * 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> |
| * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
| */ |
| public final class GCData { |
| public Device device; |
| public int style, state = -1; |
| public XColor foreground; |
| public XColor background; |
| public Pattern foregroundPattern; |
| public Pattern backgroundPattern; |
| public Font font; |
| public int clipRgn; |
| public int lineStyle = SWT.LINE_SOLID; |
| public float lineWidth; |
| public int lineCap = SWT.CAP_FLAT; |
| public int lineJoin = SWT.JOIN_MITER; |
| public float[] lineDashes; |
| public float lineDashesOffset; |
| public float lineMiterLimit = 10; |
| public int alpha = 0xFF; |
| public int interpolation = SWT.DEFAULT; |
| |
| public int renderTable; |
| public int damageRgn; |
| public int colormap; |
| public Image backgroundImage; |
| public Image image; |
| public int display; |
| public int drawable; |
| public int /*long*/ cairo; |
| public double cairoXoffset, cairoYoffset; |
| public double[] clippingTransform; |
| public String string; |
| public int stringWidth = -1; |
| public int stringHeight = -1; |
| public int xmString; |
| public String text; |
| public int textWidth = -1; |
| public int textHeight = -1; |
| public int xmText, xmMnemonic; |
| public int drawFlags; |
| } |