Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2004-11-02 17:29:47 +0000
committerSilenio Quarti2004-11-02 17:29:47 +0000
commite05e56ea382a8e2c00bc4b941ad72b0b4916589c (patch)
tree86f3c33e1f79dd6f086dfddc01bd70cc8435f695 /bundles/org.eclipse.swt/Eclipse SWT PI
parent81a3530430e0f687f318ede573143d4a43929398 (diff)
downloadeclipse.platform.swt-e05e56ea382a8e2c00bc4b941ad72b0b4916589c.tar.gz
eclipse.platform.swt-e05e56ea382a8e2c00bc4b941ad72b0b4916589c.tar.xz
eclipse.platform.swt-e05e56ea382a8e2c00bc4b941ad72b0b4916589c.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c12
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.c5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.h1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java6
4 files changed, 22 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c
index 2f66eba3d1..a5956df76c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c
@@ -791,6 +791,18 @@ failTag:
}
#endif
+#ifndef NO_PgSetStrokeJoin
+JNIEXPORT jint JNICALL OS_NATIVE(PgSetStrokeJoin)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, PgSetStrokeJoin_FUNC);
+ rc = (jint)PgSetStrokeJoin(arg0);
+ OS_NATIVE_EXIT(env, that, PgSetStrokeJoin_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_PgSetStrokeWidth
JNIEXPORT jint JNICALL OS_NATIVE(PgSetStrokeWidth)
(JNIEnv *env, jclass that, jint arg0)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.c
index 04075dbcc5..ae68c9cdce 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.c
@@ -14,8 +14,8 @@
#ifdef NATIVE_STATS
-int OS_nativeFunctionCount = 285;
-int OS_nativeFunctionCallCount[285];
+int OS_nativeFunctionCount = 286;
+int OS_nativeFunctionCallCount[286];
char * OS_nativeFunctionNames[] = {
"PfDecomposeStemToID",
"PfExtentText__Lorg_eclipse_swt_internal_photon_PhRect_1t_2Lorg_eclipse_swt_internal_photon_PhPoint_1t_2III",
@@ -68,6 +68,7 @@ char * OS_nativeFunctionNames[] = {
"PgSetStrokeCap",
"PgSetStrokeColor",
"PgSetStrokeDash",
+ "PgSetStrokeJoin",
"PgSetStrokeWidth",
"PgSetTextColor",
"PgSetTextXORColor",
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.h
index 2fa699c486..0e556013cc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os_stats.h
@@ -72,6 +72,7 @@ typedef enum {
PgSetStrokeCap_FUNC,
PgSetStrokeColor_FUNC,
PgSetStrokeDash_FUNC,
+ PgSetStrokeJoin_FUNC,
PgSetStrokeWidth_FUNC,
PgSetTextColor_FUNC,
PgSetTextXORColor_FUNC,
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java
index a0d92252da..eca219e57b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java
@@ -86,8 +86,10 @@ public class OS {
public static final int Pg_ARC = 0x2000;
public static final int Pg_ARC_PIE = 0x1000;
public static final int Pg_BACK_FILL = 0x100;
+ public static final int Pg_BEVEL_JOIN = 0x02;
public static final int Pg_BLEND_DST_ONE_MINUS_SRC_ALPHA = 0x5;
public static final int Pg_BLEND_SRC_SRC_ALPHA = 0x400;
+ public static final int Pg_BUTT_CAP = 0;
public static final int Pg_CLOSED = 0x1000;
public static final int Pg_DRAWMODE_OPAQUE = 0x0;
public static final int Pg_DRAWMODE_XOR = 0x1;
@@ -110,9 +112,12 @@ public class OS {
public static final int Pg_IMAGE_PALETTE_BYTE = 0x10;
public static final int Pg_IMAGE_PALETTE_NIBBLE = 0x11;
public static final int Pg_INDEX_COLOR = 0x2000000;
+ public static final int Pg_MITER_JOIN = 0;
public static final int Pg_PALSET_SOFT = 0x0;
public static final byte[] Pg_PAT_HALF = {(byte)0xAA, (byte)0x55, (byte)0xAA, (byte)0x55, (byte)0xAA, (byte)0x55, (byte)0xAA, (byte)0x55};
public static final int Pg_ROUND_CAP = 0x01;
+ public static final int Pg_ROUND_JOIN = 0x01;
+ public static final int Pg_SQUARE_CAP = 2;
public static final int Pg_TEXT_LEFT = 0x1000;
public static final int Pg_TEXT_TOP = 0x4000;
public static final int Pg_TRANSPARENT = 0xffffffff;
@@ -590,6 +595,7 @@ public static final native void PgSetRegion(int rid);
public static final native int PgSetStrokeCap(int cap);
public static final native int PgSetStrokeColor(int color);
public static final native void PgSetStrokeDash(byte[] DashList, int ListLen, int DashScale);
+public static final native int PgSetStrokeJoin(int join);
public static final native int PgSetStrokeWidth(int width);
public static final native int PgSetTextColor(int color);
public static final native void PgSetTextXORColor(int frgd, int bkgd);

Back to the top