Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
-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
4 files changed, 32 insertions, 2 deletions
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