Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2006-11-17 13:06:35 -0500
committerSilenio Quarti2006-11-17 13:06:35 -0500
commit760777e09b21d1b5dd41dcc32cf0e9bd145116b0 (patch)
tree22c38f33215369d5c4a3e74861092409952bf391
parent2666a72decba4f694d1ccebe2f8b920f7e88f95b (diff)
downloadeclipse.platform.swt-760777e09b21d1b5dd41dcc32cf0e9bd145116b0.tar.gz
eclipse.platform.swt-760777e09b21d1b5dd41dcc32cf0e9bd145116b0.tar.xz
eclipse.platform.swt-760777e09b21d1b5dd41dcc32cf0e9bd145116b0.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gdip.Gdip.properties8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip.cpp24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.cpp6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.h2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/gdip/Gdip.java2
5 files changed, 40 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gdip.Gdip.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gdip.Gdip.properties
index bb6a7fa9e6..5ab5c5506f 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gdip.Gdip.properties
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gdip.Gdip.properties
@@ -663,6 +663,10 @@ Gdip_Pen_SetBrush=flags=cpp
Gdip_Pen_SetBrush_0=cast=(Pen *)
Gdip_Pen_SetBrush_1=cast=Brush *
+Gdip_Pen_SetDashOffset=flags=cpp
+Gdip_Pen_SetDashOffset_0=cast=(Pen *)
+Gdip_Pen_SetDashOffset_1=
+
Gdip_Pen_SetDashPattern=flags=cpp
Gdip_Pen_SetDashPattern_0=cast=(Pen *)
Gdip_Pen_SetDashPattern_1=cast=(REAL *)
@@ -682,6 +686,10 @@ Gdip_Pen_SetLineJoin=flags=cpp
Gdip_Pen_SetLineJoin_0=cast=(Pen *)
Gdip_Pen_SetLineJoin_1=cast=(LineJoin)
+Gdip_Pen_SetMiterLimit=flags=cpp
+Gdip_Pen_SetMiterLimit_0=cast=(Pen *)
+Gdip_Pen_SetMiterLimit_1=
+
Gdip_Pen_SetWidth=flags=cpp
Gdip_Pen_SetWidth_0=cast=(Pen *)
Gdip_Pen_SetWidth_1=cast=REAL
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip.cpp b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip.cpp
index b4139ac35f..872dba02d2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip.cpp
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip.cpp
@@ -1638,6 +1638,18 @@ JNIEXPORT jint JNICALL Gdip_NATIVE(Pen_1SetBrush)
}
#endif
+#ifndef NO_Pen_1SetDashOffset
+JNIEXPORT jint JNICALL Gdip_NATIVE(Pen_1SetDashOffset)
+ (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
+{
+ jint rc = 0;
+ Gdip_NATIVE_ENTER(env, that, Pen_1SetDashOffset_FUNC);
+ rc = (jint)((Pen *)arg0)->SetDashOffset(arg1);
+ Gdip_NATIVE_EXIT(env, that, Pen_1SetDashOffset_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_Pen_1SetDashPattern
JNIEXPORT jint JNICALL Gdip_NATIVE(Pen_1SetDashPattern)
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jint arg2)
@@ -1690,6 +1702,18 @@ JNIEXPORT jint JNICALL Gdip_NATIVE(Pen_1SetLineJoin)
}
#endif
+#ifndef NO_Pen_1SetMiterLimit
+JNIEXPORT jint JNICALL Gdip_NATIVE(Pen_1SetMiterLimit)
+ (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
+{
+ jint rc = 0;
+ Gdip_NATIVE_ENTER(env, that, Pen_1SetMiterLimit_FUNC);
+ rc = (jint)((Pen *)arg0)->SetMiterLimit(arg1);
+ Gdip_NATIVE_EXIT(env, that, Pen_1SetMiterLimit_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_Pen_1SetWidth
JNIEXPORT jint JNICALL Gdip_NATIVE(Pen_1SetWidth)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.cpp b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.cpp
index a94c2382ff..a0f1418d06 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.cpp
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.cpp
@@ -14,8 +14,8 @@
#ifdef NATIVE_STATS
-int Gdip_nativeFunctionCount = 162;
-int Gdip_nativeFunctionCallCount[162];
+int Gdip_nativeFunctionCount = 164;
+int Gdip_nativeFunctionCallCount[164];
char * Gdip_nativeFunctionNames[] = {
"BitmapData_1delete",
"BitmapData_1new",
@@ -152,10 +152,12 @@ char * Gdip_nativeFunctionNames[] = {
"PathGradientBrush_1new",
"Pen_1GetBrush",
"Pen_1SetBrush",
+ "Pen_1SetDashOffset",
"Pen_1SetDashPattern",
"Pen_1SetDashStyle",
"Pen_1SetLineCap",
"Pen_1SetLineJoin",
+ "Pen_1SetMiterLimit",
"Pen_1SetWidth",
"Pen_1delete",
"Pen_1new",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.h
index b8cee23aae..a418f867dc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/gdip_stats.h
@@ -156,10 +156,12 @@ typedef enum {
PathGradientBrush_1new_FUNC,
Pen_1GetBrush_FUNC,
Pen_1SetBrush_FUNC,
+ Pen_1SetDashOffset_FUNC,
Pen_1SetDashPattern_FUNC,
Pen_1SetDashStyle_FUNC,
Pen_1SetLineCap_FUNC,
Pen_1SetLineJoin_FUNC,
+ Pen_1SetMiterLimit_FUNC,
Pen_1SetWidth_FUNC,
Pen_1delete_FUNC,
Pen_1new_FUNC,
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/gdip/Gdip.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/gdip/Gdip.java
index 1f872699dd..b473453fe5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/gdip/Gdip.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/gdip/Gdip.java
@@ -273,10 +273,12 @@ public static final native int /*long*/ Pen_new(int /*long*/ brush, float width)
public static final native void Pen_delete(int /*long*/ pen);
public static final native int /*long*/ Pen_GetBrush(int /*long*/ pen);
public static final native int Pen_SetBrush(int /*long*/ pen, int /*long*/ brush);
+public static final native int Pen_SetDashOffset(int /*long*/ pen, float dashOffset);
public static final native int Pen_SetDashPattern(int /*long*/ pen, float[] dashArray, int count);
public static final native int Pen_SetDashStyle(int /*long*/ pen, int dashStyle);
public static final native int Pen_SetLineCap(int /*long*/ pen, int startCap, int endCap, int dashCap);
public static final native int Pen_SetLineJoin(int /*long*/ pen, int lineJoin);
+public static final native int Pen_SetMiterLimit(int /*long*/ pen, float miterLimit);
public static final native int Pen_SetWidth(int /*long*/ pen, float width);
public static final native int /*long*/ Point_new(int x, int y);
public static final native void Point_delete(int /*long*/ point);

Back to the top