summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
diff options
context:
space:
mode:
authorCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2012-09-25 15:46:28 -0400
committerCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2012-09-25 15:46:50 -0400
commit05c887919544ccf27afaeeb5b3a5c559f5613418 (patch)
treea340aab36769ce874be04dc3f728110bd222a0b4 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
parent68e400860ef8feede1c82a2608170599975d3704 (diff)
downloadeclipse.platform.swt-05c887919544ccf27afaeeb5b3a5c559f5613418.tar.gz
eclipse.platform.swt-05c887919544ccf27afaeeb5b3a5c559f5613418.tar.xz
eclipse.platform.swt-05c887919544ccf27afaeeb5b3a5c559f5613418.zip
Bug 377107 - no 32bits vm for JDK7
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
index ac7c944e7b..d1963ec87a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
@@ -194,6 +194,23 @@ static int checkStyle (int style) {
return style & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT);
}
+/**
+ * Invokes platform specific functionality to wrap a graphics context.
+ * <p>
+ * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
+ * API for <code>GC</code>. 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>
+ *
+ * @param handle the handle to the OS device context
+ * @param data the data for the receiver.
+ *
+ * @return a new <code>GC</code>
+ *
+ * @noreference This method is not intended to be referenced by clients.
+ */
public static GC gtk_new(long /*int*/ handle, GCData data) {
GC gc = new GC();
gc.device = data.device;
@@ -201,6 +218,23 @@ public static GC gtk_new(long /*int*/ handle, GCData data) {
return gc;
}
+/**
+ * Invokes platform specific functionality to allocate a new graphics context.
+ * <p>
+ * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
+ * API for <code>GC</code>. 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>
+ *
+ * @param drawable the Drawable for the receiver.
+ * @param data the data for the receiver.
+ *
+ * @return a new <code>GC</code>
+ *
+ * @noreference This method is not intended to be referenced by clients.
+ */
public static GC gtk_new(Drawable drawable, GCData data) {
GC gc = new GC();
long /*int*/ gdkGC = drawable.internal_new_GC(data);