blob: 1d2d5a3f46e13e2f8cbd5971c1182dc93a6d3f19 [file] [log] [blame]
/*
* (c) Copyright IBM Corp., 2000, 2001
* All Rights Reserved.
*/
/**
* SWT OS natives implementation.
*/
// #define PRINT_FAILED_RCODES
#define NDEBUG
#include "swt.h"
#include "structs.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <malloc.h>
JNIEXPORT int JNICALL Java_org_eclipse_swt_internal_photon_OS_getSharedLibraryMajorVersionNumber
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "getSharedLibraryMajorVersionNumber\n");
#endif
return SWT_VERSION / 1000;
}
JNIEXPORT int JNICALL Java_org_eclipse_swt_internal_photon_OS_getSharedLibraryMinorVersionNumber
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "getSharedLibraryMinorVersionNumber\n");
#endif
return SWT_VERSION % 1000;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWindow
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWindow
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWindow\n");
#endif
return (jint)PtWindow;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtList
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtList
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtList\n");
#endif
return (jint)PtList;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtLabel
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtLabel
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtLabel\n");
#endif
return (jint)PtLabel;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtInit
* Signature: ([B)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtInit
(JNIEnv *env, jobject that, jbyteArray name)
{
char *name1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtInit\n");
#endif
if (name)
name1 = (char *)(*env)->GetByteArrayElements(env, name, NULL);
result = (jint)PtInit(name1);
if (name)
(*env)->ReleaseByteArrayElements(env, name, (jbyte *)name1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtCreateWidget
* Signature: (III[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtCreateWidget
(JNIEnv *env, jobject that, jint clazz, jint parent, jint n_args, jintArray args)
{
PtArg_t *args1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtCreateWidget\n");
#endif
if (args)
args1 = (PtArg_t *)(*env)->GetIntArrayElements(env, args, NULL);
result = (jint)PtCreateWidget((PtWidgetClassRef_t *)clazz, (PtWidget_t *)parent, n_args, args1);
if (args)
(*env)->ReleaseIntArrayElements(env, args, (jint *)args1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtSetResources
* Signature: (II[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtSetResources
(JNIEnv *env, jobject that, jint widget, jint n_args, jintArray args)
{
jint *args1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtSetResources\n");
#endif
if (args)
args1 = (*env)->GetIntArrayElements(env, args, NULL);
result = (jint)PtSetResources((PtWidget_t *)widget, n_args, (PtArg_t *)args1);
if (args)
(*env)->ReleaseIntArrayElements(env, args, args1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtRealizeWidget
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtRealizeWidget
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtRealizeWidget\n");
#endif
return (jint)PtRealizeWidget((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtAddEventHandler
* Signature: (IIII)I
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PtAddEventHandler
(JNIEnv *env, jobject that, jint widget, jint event_mask, jint callback, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtAddEventHandler\n");
#endif
PtAddEventHandler((PtWidget_t *)widget, (unsigned long)event_mask, (PtCallbackF_t *)callback, (void *)data);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetRid
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetRid
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetRid\n");
#endif
return (jint)PtWidgetRid((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtMainLoop
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PtMainLoop
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtMainLoop\n");
#endif
PtMainLoop();
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgFlush
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgFlush
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgFlush\n");
#endif
return (jint)PgFlush();
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgCreateGC
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgCreateGC
(JNIEnv *env, jobject that, jint size)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgCreateGC\n");
#endif
return (jint)PgCreateGC(size);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetGC
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetGC
(JNIEnv *env, jobject that, jint GC)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetGC\n");
#endif
return (jint)PgSetGC((PhGC_t *)GC);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetRegion
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetRegion
(JNIEnv *env, jobject that, jint rid)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetRegion\n");
#endif
PgSetRegion(rid);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetFillColor
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetFillColor
(JNIEnv *env, jobject that, jint color)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetFillColor\n");
#endif
return (jint)PgSetFillColor(color);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetStrokeColor
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetStrokeColor
(JNIEnv *env, jobject that, jint color)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetStrokeColor\n");
#endif
return (jint)PgSetStrokeColor(color);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetTextColor
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetTextColor
(JNIEnv *env, jobject that, jint color)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetTextColor\n");
#endif
return (jint)PgSetTextColor(color);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetFont
* Signature: ([B)I
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetFont
(JNIEnv *env, jobject that, jbyteArray ff)
{
jbyte *ff1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetFont\n");
#endif
if (ff)
ff1 = (*env)->GetByteArrayElements(env, ff, NULL);
PgSetFont(ff1);
if (ff)
(*env)->ReleaseByteArrayElements(env, ff, ff1, JNI_ABORT);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetStrokeDash
* Signature: ([BII)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetStrokeDash
(JNIEnv *env, jobject that, jbyteArray DashList, jint ListLen, jint DashScale)
{
jbyte *DashList1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetStrokeDash\n");
#endif
if (DashList)
DashList1 = (*env)->GetByteArrayElements(env, DashList, NULL);
PgSetStrokeDash(DashList1, ListLen, DashScale);
if (DashList)
(*env)->ReleaseByteArrayElements(env, DashList, DashList1, JNI_ABORT);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetStrokeWidth
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetStrokeWidth
(JNIEnv *env, jobject that, jint width)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetStrokeWidth\n");
#endif
return (jint)PgSetStrokeWidth(width);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetDrawMode
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetDrawMode
(JNIEnv *env, jobject that, jint mode)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetDrawMode\n");
#endif
return (jint)PgSetDrawMode(mode);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetClipping
* Signature: (SI)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetClipping
(JNIEnv *env, jobject that, jshort n, jint rects)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetClipping\n");
#endif
PgSetClipping(n, (PhRect_t *)rects);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetPalette
* Signature: (IISSII)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetPalette
(JNIEnv *env, jobject that, jint palette, jint palette_id, jshort first_color, jshort num_colors, jint flags, jint tag)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetPalette\n");
#endif
return (jint)PgSetPalette((PgColor_t *)palette, palette_id, first_color, num_colors, flags, tag);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawArc
* Signature: (Lorg/eclipse/swt/photon/PhPoint_t;Lorg/eclipse/swt/photon/PhPoint_t;III)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawArc
(JNIEnv *env, jobject that, jobject center, jobject radii, jint start, jint end, jint flags)
{
DECL_GLOB(pGlob)
PhPoint_t center1, *lpCenter1=NULL, radii1, *lpRadii1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawArc\n");
#endif
if (center) {
lpCenter1 = &center1;
cachePhPoint_tFids(env, center, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, center, lpCenter1, &PGLOB(PhPoint_tFc));
}
if (radii) {
lpRadii1 = &radii1;
cachePhPoint_tFids(env, radii, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, radii, lpRadii1, &PGLOB(PhPoint_tFc));
}
return (jint) PgDrawArc(lpCenter1, lpRadii1, start, end, flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawEllipse
* Signature: (Lorg/eclipse/swt/photon/PhPoint_t;Lorg/eclipse/swt/photon/PhPoint_t;I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawEllipse
(JNIEnv *env, jobject that, jobject center, jobject radii, jint flags)
{
DECL_GLOB(pGlob)
PhPoint_t center1, *lpCenter1=NULL, radii1, *lpRadii1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawEllipse\n");
#endif
if (center) {
lpCenter1 = &center1;
cachePhPoint_tFids(env, center, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, center, lpCenter1, &PGLOB(PhPoint_tFc));
}
if (radii) {
lpRadii1 = &radii1;
cachePhPoint_tFids(env, radii, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, radii, lpRadii1, &PGLOB(PhPoint_tFc));
}
return (jint) PgDrawEllipse(lpCenter1, lpRadii1, flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawGradient
* Signature: (Lorg/eclipse/swt/photon/PhPoint_t;Lorg/eclipse/swt/photon/PhPoint_t;IIIIIIII[B)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawGradient
(JNIEnv *env, jobject that, jobject ul, jobject lr, jint gradient_type, jint transition_type, jint num_color_pts, jint color1, jint color2, jint color3, jint color4, jint table_size, jbyteArray transition_table)
{
DECL_GLOB(pGlob)
jbyte *transition_table1=NULL;
PhPoint_t ul1, *lpUl1 = NULL, lr1, *lpLr1 = NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawGradient\n");
#endif
if (ul) {
lpUl1 = &ul1;
cachePhPoint_tFids(env, ul, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, ul, lpUl1, &PGLOB(PhPoint_tFc));
}
if (lr) {
lpLr1 = &lr1;
cachePhPoint_tFids(env, ul, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, lr, lpLr1, &PGLOB(PhPoint_tFc));
}
if (transition_table)
transition_table1 = (*env)->GetByteArrayElements(env, transition_table, NULL);
result = (jint) PgDrawGradient(lpUl1, lpLr1,
(unsigned long) gradient_type, (unsigned long) transition_type, (unsigned long) num_color_pts,
(PgColor_t) color1, (PgColor_t) color2, (PgColor_t) color3, (PgColor_t) color4,
(unsigned long) table_size, (unsigned char*) transition_table1);
if (transition_table)
(*env)->ReleaseByteArrayElements(env, transition_table, transition_table1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawRoundRect
* Signature: (Lorg/eclipse/swt/photon/PhRect_t;Lorg/eclipse/swt/photon/PhPoint_t;I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawRoundRect
(JNIEnv *env, jobject that, jobject rect, jobject radii, jint flags)
{
DECL_GLOB(pGlob)
PhRect_t rect1, *lpRect1=NULL;
PhPoint_t radii1, *lpRadii1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawRoundRect\n");
#endif
if (rect) {
lpRect1 = &rect1;
cachePhRect_tFids(env, rect, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, rect, lpRect1, &PGLOB(PhRect_tFc));
}
if (radii) {
lpRadii1 = &radii1;
cachePhPoint_tFids(env, radii, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, radii, lpRadii1, &PGLOB(PhPoint_tFc));
}
return (jint) PgDrawRoundRect(lpRect1, lpRadii1, flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawPolygon
* Signature: ([SI;Lorg/eclipse/swt/photon/PhPoint_t;I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawPolygon
(JNIEnv *env, jobject that, jshortArray ptr, jint num, jobject pos, jint flags)
{
DECL_GLOB(pGlob)
jshort *ptr1=NULL;
PhPoint_t pos1, *lpPos1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawPolygon\n");
#endif
if (ptr)
ptr1 = (*env)->GetShortArrayElements(env, ptr, NULL);
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
result = (jint) PgDrawPolygon((PhPoint_t *)ptr1, num, lpPos1, flags);
if (ptr)
(*env)->ReleaseShortArrayElements(env, ptr, ptr1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawILine
* Signature: (IIII)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawILine
(JNIEnv *env, jobject that, jint x1, jint y1, jint x2, jint y2)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawILine\n");
#endif
return (jint)PgDrawILine(x1, y1, x2, y2);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawIRect
* Signature: (IIIII)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawIRect
(JNIEnv *env, jobject that, jint ulx, jint uly, jint lrx, jint lry, jint flags)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawIRect\n");
#endif
return (jint)PgDrawIRect(ulx, uly, lrx, lry, flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetMultiClip
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetMultiClip
(JNIEnv *env, jobject that, jint num, jint clip_list)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetMultiClip\n");
#endif
return (jint)PgSetMultiClip(num, (PhRect_t *)clip_list);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetUserClip
* Signature: (I)I
*/
/*
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetUserClip__I
(JNIEnv *env, jobject that, jint ClipRect)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetUserClip\n");
#endif
PgSetUserClip((PhRect_t *)ClipRect);
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetUserClip
* Signature: (Lorg/eclipse/swt/internal/photon/PhRect_t;)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetUserClip__Lorg_eclipse_swt_internal_photon_PhRect_1t_2
(JNIEnv *env, jobject that, jobject ClipRect)
{
DECL_GLOB(pGlob)
PhRect_t ClipRect1, *lpClipRect1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetUserClip\n");
#endif
if (ClipRect) {
lpClipRect1 = &ClipRect1;
cachePhRect_tFids(env, ClipRect, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, ClipRect, lpClipRect1, &PGLOB(PhRect_tFc));
}
PgSetUserClip(lpClipRect1);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgSetDrawBufferSize
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgSetDrawBufferSize
(JNIEnv *env, jobject that, jint cmd_buf_len)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgSetDrawBufferSize\n");
#endif
return (jint)PgSetDrawBufferSize(cmd_buf_len);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDestroyGC
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDestroyGC
(JNIEnv *env, jobject that, jint GC)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDestroyGC\n");
#endif
PgDestroyGC((PhGC_t *)GC);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawImage
* Signature: (IILorg/eclipse/swt/photon/PhPoint_t;Lorg/eclipse/swt/photon/PhDim_t;II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawImage
(JNIEnv *env, jobject that, jint ptr, jint type, jobject pos, jobject size, jint bpl, jint tag)
{
DECL_GLOB(pGlob)
PhPoint_t pos1, *lpPos1=NULL;
PhDim_t size1, *lpSize1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawImage\n");
#endif
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (size) {
lpSize1 = &size1;
cachePhDim_tFids(env, size, &PGLOB(PhDim_tFc));
getPhDim_tFields(env, size, lpSize1, &PGLOB(PhDim_tFc));
}
return (jint) PgDrawImage((void *)ptr, type, lpPos1, lpSize1, bpl, tag);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawTImage
* Signature: (IILorg/eclipse/swt/photon/PhPoint_t;Lorg/eclipse/swt/photon/PhDim_t;IIII)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawTImage
(JNIEnv *env, jobject that, jint ptr, jint type, jobject pos, jobject size, jint bpl, jint tag, jint TransPtr, jint TransBPL)
{
DECL_GLOB(pGlob)
PhPoint_t pos1, *lpPos1=NULL;
PhDim_t size1, *lpSize1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawTImage\n");
#endif
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (size) {
lpSize1 = &size1;
cachePhDim_tFids(env, size, &PGLOB(PhDim_tFc));
getPhDim_tFields(env, size, lpSize1, &PGLOB(PhDim_tFc));
}
return (jint) PgDrawTImage((void *)ptr, type, lpPos1, lpSize1, bpl, tag, (void *)TransPtr, TransBPL);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PiCropImage
* Signature: (ILorg/eclipse/swt/photon/PhRect_t;I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PiCropImage
(JNIEnv *env, jobject that, jint image, jobject bounds, jint flags)
{
DECL_GLOB(pGlob)
PhRect_t bounds1, *lpBounds1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PiCropImage\n");
#endif
if (bounds) {
lpBounds1 = &bounds1;
cachePhRect_tFids(env, bounds, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, bounds, lpBounds1, &PGLOB(PhRect_tFc));
}
return (jint) PiCropImage((PhImage_t *)image, lpBounds1, flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawBitmap
* Signature: (IILorg/eclipse/swt/photon/PhPoint_t;Lorg/eclipse/swt/photon/PhDim_t;II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawBitmap
(JNIEnv *env, jobject that, jint ptr, jint flags, jobject pos, jobject size, jint bpl, jint tag)
{
DECL_GLOB(pGlob)
PhPoint_t pos1, *lpPos1=NULL;
PhDim_t size1, *lpSize1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawBitmap\n");
#endif
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (size) {
lpSize1 = &size1;
cachePhDim_tFids(env, size, &PGLOB(PhDim_tFc));
getPhDim_tFields(env, size, lpSize1, &PGLOB(PhDim_tFc));
}
return (jint) PgDrawBitmap((void *)ptr, flags, lpPos1, (PhPoint_t *)lpSize1, bpl, tag);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawPhImageRectmx
* Signature: (Lorg/eclipse/swt/photon/PhPoint_t;ILorg/eclipse/swt/photon/PhRect_t;I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawPhImageRectmx
(JNIEnv *env, jobject that, jobject pos, int image, jobject rect, jint flags)
{
DECL_GLOB(pGlob)
PhPoint_t pos1, *lpPos1=NULL;
PhRect_t rect1, *lpRect1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawPhImageRectmx\n");
#endif
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (rect) {
lpRect1 = &rect1;
cachePhRect_tFids(env, rect, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, rect, lpRect1, &PGLOB(PhRect_tFc));
}
return (jint) PgDrawPhImageRectmx(lpPos1, (PhImage_t *)image, lpRect1, flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawPhImagemx
* Signature: (Lorg/eclipse/swt/photon/PhPoint_t;ILorg/eclipse/swt/photon/PhRect_t;I)I
*/
/*
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawPhImagemx
(JNIEnv *env, jobject that, jobject pos, int image, jint flags)
{
DECL_GLOB(pGlob)
PhPoint_t pos1, *lpPos1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawPhImagemx\n");
#endif
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
return (jint) PgDrawPhImagemx(lpPos1, (PhImage_t *)image, flags);
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhBlit
* Signature: (ILorg/eclipse/swt/photon/PhRect_t;ILorg/eclipse/swt/photon/PhPoint_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhBlit
(JNIEnv *env, jobject that, jint rid, jobject rect, jobject offset)
{
DECL_GLOB(pGlob)
PhRect_t rect1, *lpRect1=NULL;
PhPoint_t offset1, *lpOffset1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhBlit\n");
#endif
if (rect) {
lpRect1 = &rect1;
cachePhRect_tFids(env, rect, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, rect, lpRect1, &PGLOB(PhRect_tFc));
}
if (offset) {
lpOffset1 = &offset1;
cachePhPoint_tFids(env, offset, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, offset, lpOffset1, &PGLOB(PhPoint_tFc));
}
return (jint) PhBlit((PhRid_t)rid, lpRect1, lpOffset1);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhMakeTransBitmap
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhMakeTransBitmap
(JNIEnv *env, jobject that, jint image, jint trans_color)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhMakeTransBitmap\n");
#endif
return (jint) PhMakeTransBitmap((PhImage_t *)image, (PgColor_t)trans_color);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtEnter
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtEnter
(JNIEnv *env, jobject that, jint flags)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtEnter\n");
#endif
return (jint)PtEnter(flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtLeave
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtLeave
(JNIEnv *env, jobject that, jint flags)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtLeave\n");
#endif
return (jint)PtLeave(flags);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtGetResources
* Signature: (II[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtGetResources
(JNIEnv *env, jobject that, jint widget, jint n_args, jintArray args)
{
jint *args1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtGetResources\n");
#endif
if (args)
args1 = (*env)->GetIntArrayElements(env, args, NULL);
result = (jint)PtGetResources((PtWidget_t *)widget, n_args, (PtArg_t *)args1);
if (args)
(*env)->ReleaseIntArrayElements(env, args, args1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtDestroyWidget
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtDestroyWidget
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtDestroyWidget\n");
#endif
return (jint)PtDestroyWidget((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhEventPeek
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhEventPeek
(JNIEnv *env, jobject that, jint buffer, jint size)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhEventPeek\n");
#endif
return (jint)PhEventPeek((void *)buffer, size);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhEventNext
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhEventNext
(JNIEnv *env, jobject that, jint buffer, jint size)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhEventNext\n");
#endif
return (jint)PhEventNext((void *)buffer, size);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhGetMsgSize
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhGetMsgSize
(JNIEnv *env, jobject that, jint event_buf)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhGetMsgSize\n");
#endif
return (jint)PhGetMsgSize((PhEvent_t *)event_buf);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhGetTile
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhGetTile
(JNIEnv *env, jobject that)
{
PhTile_t *tile;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhGetTile\n");
#endif
tile = PhGetTile();
memset(tile, 0, sizeof(PhTile_t));
return (jint)tile;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhTranslateTiles
* Signature: (ILorg/eclipse/swt/internal/photon/PhPoint_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhTranslateTiles
(JNIEnv *env, jobject that, jint tile, jobject point_add)
{
DECL_GLOB(pGlob)
PhPoint_t point_add1, *lpPoint_add1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhTranslateTiles\n");
#endif
if (point_add) {
lpPoint_add1= &point_add1;
cachePhPoint_tFids(env, point_add, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, point_add, lpPoint_add1, &PGLOB(PhPoint_tFc));
}
result = (jint)PhTranslateTiles((PhTile_t *)tile, lpPoint_add1);
if (point_add) {
setPhPoint_tFields(env, point_add, lpPoint_add1, &PGLOB(PhPoint_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhDeTranslateTiles
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhDeTranslateTiles
(JNIEnv *env, jobject that, jint tile, jint point_sutract)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhDeTranslateTiles\n");
#endif
return (jint)PhDeTranslateTiles((PhTile_t *)tile, (PhPoint_t *)point_sutract);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhAddMergeTiles
* Signature: (II[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhAddMergeTiles
(JNIEnv *env, jobject that, jint tiles, jint add_tiles, jintArray added)
{
jint *added1 = NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhAddMergeTiles\n");
#endif
if (added)
added1 = (*env)->GetIntArrayElements(env, added, NULL);
result = (jint)PhAddMergeTiles((PhTile_t *)tiles, (PhTile_t *)add_tiles, added1);
if (added)
(*env)->ReleaseIntArrayElements(env, added, added1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhIntersectTilings
* Signature: (II[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhIntersectTilings
(JNIEnv *env, jobject that, jint tile1, jint tile2, jshortArray num_intersect_tiles)
{
jshort *num_intersect_tiles1 = NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhIntersectTilings\n");
#endif
if (num_intersect_tiles)
num_intersect_tiles1 = (*env)->GetShortArrayElements(env, num_intersect_tiles, NULL);
result = (jint)PhIntersectTilings((PhTile_t *)tile1, (PhTile_t *)tile2, num_intersect_tiles1);
if (num_intersect_tiles)
(*env)->ReleaseShortArrayElements(env, num_intersect_tiles, num_intersect_tiles1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhCoalesceTiles
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhCoalesceTiles
(JNIEnv *env, jobject that, jint tiles)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhCoalesceTiles\n");
#endif
return (jint)PhCoalesceTiles((PhTile_t *)tiles);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhMergeTiles
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhMergeTiles
(JNIEnv *env, jobject that, jint tiles)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhMergeTiles\n");
#endif
return (jint)PhMergeTiles((PhTile_t *)tiles);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhRectUnion
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhRectUnion__II
(JNIEnv *env, jobject that, jint rect1, jint rect2)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhRectUnion__II\n");
#endif
return (jint)PhRectUnion((PhRect_t *)rect1, (PhRect_t *)rect2);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhRectIntersect
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhRectIntersect
(JNIEnv *env, jobject that, jint rect1, jint rect2)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhRectIntersect\n");
#endif
return (jint)PhRectIntersect((PhRect_t *)rect1, (PhRect_t *)rect2);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhClipTilings
* Signature: (II[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhClipTilings
(JNIEnv *env, jobject that, jint tiles, jint clip_tiles, jintArray intersection)
{
jint *intersection1 = NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhClipTilings\n");
#endif
if (intersection)
intersection1 = (*env)->GetIntArrayElements(env, intersection, NULL);
result = (jint)PhClipTilings((PhTile_t *)tiles, (PhTile_t *)clip_tiles, (PhTile_t **)intersection1);
if (intersection)
(*env)->ReleaseIntArrayElements(env, intersection, intersection1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhTilesToRects
* Signature: (I[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhTilesToRects
(JNIEnv *env, jobject that, jint tiles, jintArray num_rects)
{
jint *num_rects1 = NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhTilesToRects\n");
#endif
if (num_rects)
num_rects1 = (*env)->GetIntArrayElements(env, num_rects, NULL);
result = (jint)PhTilesToRects((PhTile_t *)tiles, (int *)num_rects1);
if (num_rects)
(*env)->ReleaseIntArrayElements(env, num_rects, num_rects1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhRectsToTiles
* Signature: (I[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhRectsToTiles
(JNIEnv *env, jobject that, jint rects, jint num_rects)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhRectsToTiles\n");
#endif
return (jint)PhRectsToTiles((PhRect_t *)rects, num_rects);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhFreeTiles
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PhFreeTiles
(JNIEnv *env, jobject that, jint tiles)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhFreeTiles\n");
#endif
PhFreeTiles((PhTile_t *)tiles);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhCopyTiles
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhCopyTiles
(JNIEnv *env, jobject that, jint tile)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhCopyTiles\n");
#endif
return (jint) PhCopyTiles((PhTile_t *)tile);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtEventHandler
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtEventHandler
(JNIEnv *env, jobject that, jint event)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtEventHandler\n");
#endif
return (jint)PtEventHandler((PhEvent_t *)event);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: malloc
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_malloc
(JNIEnv *env, jclass that, jint size)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "malloc\n");
#endif
return (jint)calloc(1, (size_t)size);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: free
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_free
(JNIEnv *env, jclass that, jint ptr)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "free\n");
#endif
free((void *)ptr);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (ILorg/eclipse/swt/internal/photon/PhPoint_t;I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__ILorg_eclipse_swt_internal_photon_PhPoint_1t_2I
(JNIEnv *env, jobject that, jint dest, jobject src, jint count)
{
DECL_GLOB(pGlob)
PhPoint_t object, *src1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_photon_PhPoint_1t_2I\n");
#endif
if (src) {
src1=&object;
cachePhPoint_tFids(env, src, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, src, src1, &PGLOB(PhPoint_tFc));
}
memmove((void *)dest, (void *)src1, count);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (Lorg/eclipse/swt/internal/photon/PhPoint_t;II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__Lorg_eclipse_swt_internal_photon_PhPoint_1t_2II
(JNIEnv *env, jobject that, jobject dest, jint src, jint count)
{
DECL_GLOB(pGlob)
PhPoint_t object, *dest1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_photon_PhPoint_1t_2II\n");
#endif
memmove((void *)&object, (void *)src, count);
if (dest) {
dest1=&object;
cachePhPoint_tFids(env, dest, &PGLOB(PhPoint_tFc));
setPhPoint_tFields(env, dest, dest1, &PGLOB(PhPoint_tFc));
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhWindowQueryVisible
* Signature: (IIILorg/eclipse/swt/internal/photon/PhRect_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhWindowQueryVisible
(JNIEnv *env, jobject that, jint flag, jint rid, jint input_group, jobject rectangle)
{
DECL_GLOB(pGlob)
int result;
PhRect_t rect, *lpRect=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhWindowQueryVisible\n");
#endif
if (rectangle) {
lpRect = &rect;
cachePhRect_tFids(env, rectangle, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, rectangle, lpRect, &PGLOB(PhRect_tFc));
}
result =PhWindowQueryVisible(flag, rid, input_group, lpRect);
if (rectangle) {
setPhRect_tFields(env, rectangle, lpRect, &PGLOB(PhRect_tFc));
}
return (jint) result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (I[II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__I_3II
(JNIEnv *env, jclass that, jint dest, jintArray src, jint count)
{
jint *src1;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__I_3II\n");
#endif
/* don't do anything if src pointer is NULL */
if (src) {
src1 = (*env)->GetIntArrayElements(env, src, NULL);
memmove((void *)dest, (void *)src1, count);
(*env)->ReleaseIntArrayElements(env, src, src1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: ([III)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove___3III
(JNIEnv *env, jclass that, jintArray dest, jint src, jint count)
{
jint *dest1;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove___3III\n");
#endif
/* don't do anything if dest pointer is NULL */
if (dest) {
dest1 = (*env)->GetIntArrayElements(env, dest, NULL);
memmove((void *)dest1, (void *)src, count);
(*env)->ReleaseIntArrayElements(env, dest, dest1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawText
* Signature: ([CISSI)I
*/
/*
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawText
(JNIEnv *env, jclass that, jcharArray ptr, jint len, jshort x, jshort y, jint flags)
{
jint result = 0;
jchar * ptr1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawText\n");
#endif
if (ptr) {
PhPoint_t pos;
pos.x = x;
pos.y = y;
ptr1 = (*env)->GetCharArrayElements(env, ptr, NULL);
result = (jint)PgDrawText((char *)ptr1, len, &pos, (int)flags);
(*env)->ReleaseCharArrayElements(env, ptr, ptr1, JNI_ABORT);
}
return result;
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawText
* Signature: ([BISSI)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawText
(JNIEnv *env, jclass that, jbyteArray ptr, jint len, jshort x, jshort y, jint flags)
{
jint result = 0;
jbyte * ptr1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawText\n");
#endif
/* don't do anything if ptr is NULL */
if (ptr) {
PhPoint_t pos;
pos.x = x;
pos.y = y;
ptr1 = (*env)->GetByteArrayElements(env, ptr, NULL);
result = (jint)PgDrawText((char *)ptr1, len, &pos, (int)flags);
(*env)->ReleaseByteArrayElements(env, ptr, ptr1, JNI_ABORT);
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgDrawMultiTextArea
* Signature: ([BILorg/eclipse/swt/photon/PhRect_t;III)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PgDrawMultiTextArea
(JNIEnv *env, jclass that, jbyteArray ptr, jint len, jobject canvas, jint text_flags, jint canvas_flags, int linespacing)
{
DECL_GLOB(pGlob)
jint result = 0;
jbyte * ptr1 = NULL;
PhRect_t canvas1, *lpCanvas1;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgDrawMultiTextArea\n");
#endif
/* don't do anything if ptr is NULL */
if (!ptr) return 0;
if (canvas) {
lpCanvas1 = &canvas1;
cachePhRect_tFids(env, canvas, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, canvas, lpCanvas1, &PGLOB(PhRect_tFc));
}
ptr1 = (*env)->GetByteArrayElements(env, ptr, NULL);
result = (jint)PgDrawMultiTextArea((char *)ptr1, len, lpCanvas1, text_flags, canvas_flags, linespacing);
(*env)->ReleaseByteArrayElements(env, ptr, ptr1, JNI_ABORT);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetExtent
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetExtent__II
(JNIEnv *env, jobject that, jint widget, jint extent)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetExtent\n");
#endif
return (jint)PtWidgetExtent((PtWidget_t *)widget, (PhRect_t *)extent);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetChildBack
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetChildBack
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetChildBack\n");
#endif
return (jint)PtWidgetChildBack((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetIsRealized
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetIsRealized
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetIsRealized\n");
#endif
return (jint)PtWidgetIsRealized((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetBrotherInFront
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetBrotherInFront
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetBrotherInFront\n");
#endif
return (jint)PtWidgetBrotherInFront((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetParent
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetParent
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetParent\n");
#endif
return (jint)PtWidgetParent((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (ILorg/eclipse/swt/internal/photon/PhTile_t;I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__ILorg_eclipse_swt_internal_photon_PhTile_1t_2I
(JNIEnv *env, jobject that, jint dest, jobject src, jint count)
{
DECL_GLOB(pGlob)
PhTile_t object, *src1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_photon_PhTile_1t_2I\n");
#endif
if (src) {
src1=&object;
cachePhTile_tFids(env, src, &PGLOB(PhTile_tFc));
getPhTile_tFields(env, src, src1, &PGLOB(PhTile_tFc));
}
memmove((void *)dest, (void *)src1, count);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (Lorg/eclipse/swt/internal/photon/PhTile_t;II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__Lorg_eclipse_swt_internal_photon_PhTile_1t_2II
(JNIEnv *env, jobject that, jobject dest, jint src, jint count)
{
DECL_GLOB(pGlob)
PhTile_t object, *dest1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_photon_PhTile_1t_2II\n");
#endif
memmove((void *)&object, (void *)src, count);
if (dest) {
dest1=&object;
cachePhTile_tFids(env, dest, &PGLOB(PhTile_tFc));
setPhTile_tFields(env, dest, dest1, &PGLOB(PhTile_tFc));
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (ILorg/eclipse/swt/internal/photon/PtCallbackInfo_t;I)V
*/
/*
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__ILorg_eclipse_swt_internal_photon_PtCallbackInfo_1t_2I
(JNIEnv *env, jobject that, jint dest, jobject src, jint count)
{
DECL_GLOB(pGlob)
PtCallbackInfo_t object, *src1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_photon_PtCallbackInfo_1t_2I\n");
#endif
if (src) {
src1=&object;
cachePtCallbackInfo_tFids(env, src, &PGLOB(PtCallbackInfo_tFc));
getPtCallbackInfo_tFields(env, src, src1, &PGLOB(PtCallbackInfo_tFc));
}
memmove((void *)dest, (void *)src1, count);
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (Lorg/eclipse/swt/internal/photon/PtCallbackInfo_t;II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__Lorg_eclipse_swt_internal_photon_PtCallbackInfo_1t_2II
(JNIEnv *env, jobject that, jobject dest, jint src, jint count)
{
DECL_GLOB(pGlob)
PtCallbackInfo_t object, *dest1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_photon_PtCallbackInfo_1t_2II\n");
#endif
memmove((void *)&object, (void *)src, count);
if (dest) {
dest1=&object;
cachePtCallbackInfo_tFids(env, dest, &PGLOB(PtCallbackInfo_tFc));
setPtCallbackInfo_tFields(env, dest, dest1, &PGLOB(PtCallbackInfo_tFc));
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (ILorg/eclipse/swt/internal/photon/PhWindowEvent_t;I)V
*/
/*
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__ILorg_eclipse_swt_internal_photon_PhWindowEvent_1t_2I
(JNIEnv *env, jobject that, jint dest, jobject src, jint count)
{
DECL_GLOB(pGlob)
PhWindowEvent_t object, *src1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_photon_PhWindowEvent_1t_2I\n");
#endif
if (src) {
src1=&object;
cachePhWindowEvent_tFids(env, src, &PGLOB(PhWindowEvent_tFc));
getPhWindowEvent_tFields(env, src, src1, &PGLOB(PhWindowEvent_tFc));
}
memmove((void *)dest, (void *)src1, count);
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (Lorg/eclipse/swt/internal/photon/PhWindowEvent_t;II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__Lorg_eclipse_swt_internal_photon_PhWindowEvent_1t_2II
(JNIEnv *env, jobject that, jobject dest, jint src, jint count)
{
DECL_GLOB(pGlob)
PhWindowEvent_t object, *dest1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_photon_PhWindowEvent_1t_2II\n");
#endif
memmove((void *)&object, (void *)src, count);
if (dest) {
dest1=&object;
cachePhWindowEvent_tFids(env, dest, &PGLOB(PhWindowEvent_tFc));
setPhWindowEvent_tFields(env, dest, dest1, &PGLOB(PhWindowEvent_tFc));
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtAddCallback
* Signature: (IIII)I
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PtAddCallback
(JNIEnv *env, jobject that, jint widget, jint callback_type, jint callback, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtAddEventHandler\n");
#endif
PtAddCallback((PtWidget_t *)widget, (unsigned long)callback_type, (PtCallbackF_t *)callback, (void *)data);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetChildFront
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetChildFront
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetChildFront\n");
#endif
return (jint) PtWidgetChildFront((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetBrotherBehind
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetBrotherBehind
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetBrotherBehind\n");
#endif
return (jint) PtWidgetBrotherBehind((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (I[BI)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__I_3BI
(JNIEnv *env, jclass that, jint dest, jbyteArray src, jint count)
{
jbyte *src1;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__I_3BI\n");
#endif
/* don't do anything if src pointer is NULL */
if (src) {
src1 = (*env)->GetByteArrayElements(env, src, NULL);
memmove((void *)dest, (void *)src1, count);
(*env)->ReleaseByteArrayElements(env, src, src1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: ([BII)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove___3BII
(JNIEnv *env, jclass that, jbyteArray dest, jint src, jint count)
{
jbyte *dest1;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove___3BII\n");
#endif
/* don't do anything if dest pointer is NULL */
if (dest) {
dest1 = (*env)->GetByteArrayElements(env, dest, NULL);
memmove((void *)dest1, (void *)src, count);
(*env)->ReleaseByteArrayElements(env, dest, dest1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWindow
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtButton
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtButton\n");
#endif
return (jint)PtButton;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (ILorg/eclipse/swt/internal/photon/PhRect_t;I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__ILorg_eclipse_swt_internal_photon_PhRect_1t_2I
(JNIEnv *env, jobject that, jint dest, jobject src, jint count)
{
DECL_GLOB(pGlob)
PhRect_t object, *src1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_photon_PhPoint_1t_2I\n");
#endif
if (src) {
src1=&object;
cachePhRect_tFids(env, src, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, src, src1, &PGLOB(PhRect_tFc));
}
memmove((void *)dest, (void *)src1, count);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (Lorg/eclipse/swt/internal/photon/PhRect_t;II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__Lorg_eclipse_swt_internal_photon_PhRect_1t_2II
(JNIEnv *env, jobject that, jobject dest, jint src, jint count)
{
DECL_GLOB(pGlob)
PhRect_t object, *dest1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_photon_PhPoint_1t_2II\n");
#endif
memmove((void *)&object, (void *)src, count);
if (dest) {
dest1=&object;
cachePhRect_tFids(env, dest, &PGLOB(PhRect_tFc));
setPhRect_tFields(env, dest, dest1, &PGLOB(PhRect_tFc));
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtUnrealizeWidget
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtUnrealizeWidget
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtUnrealizeWidget\n");
#endif
return (jint)PtUnrealizeWidget((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtSyncWidget
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtSyncWidget
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtSyncWidget\n");
#endif
return (jint)PtSyncWidget((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtFlush
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtFlush
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtFlush\n");
#endif
return (jint)PtFlush();
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtContainerGiveFocus
* Signature: (ILorg/eclipse/swt/internal/photon/PhEvent_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtContainerGiveFocus
(JNIEnv *env, jobject that, jint widget, jobject event)
{
DECL_GLOB(pGlob)
jint result;
PhEvent_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtContainerGiveFocus\n");
#endif
if (event) {
lpObject = &object;
cachePhEvent_tFids(env, event, &PGLOB(PhEvent_tFc));
getPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
result = (jint) PtContainerGiveFocus((PtWidget_t *)widget, lpObject);
if (event) {
setPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtContainerFocusNext
* Signature: (ILorg/eclipse/swt/internal/photon/PhEvent_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtContainerFocusNext
(JNIEnv *env, jobject that, jint widget, jobject event)
{
DECL_GLOB(pGlob)
jint result;
PhEvent_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtContainerFocusNext\n");
#endif
if (event) {
lpObject = &object;
cachePhEvent_tFids(env, event, &PGLOB(PhEvent_tFc));
getPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
result = (jint) PtContainerFocusNext((PtWidget_t *)widget, lpObject);
if (event) {
setPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtContainerFocusPrev
* Signature: (ILorg/eclipse/swt/internal/photon/PhEvent_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtContainerFocusPrev
(JNIEnv *env, jobject that, jint widget, jobject event)
{
DECL_GLOB(pGlob)
jint result;
PhEvent_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtContainerFocusPrev\n");
#endif
if (event) {
lpObject = &object;
cachePhEvent_tFids(env, event, &PGLOB(PhEvent_tFc));
getPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
result = (jint) PtContainerFocusPrev((PtWidget_t *)widget, lpObject);
if (event) {
setPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtGlobalFocusNext
* Signature: (ILorg/eclipse/swt/internal/photon/PhEvent_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtGlobalFocusNext
(JNIEnv *env, jobject that, jint widget, jobject event)
{
DECL_GLOB(pGlob)
jint result;
PhEvent_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtGlobalFocusNext\n");
#endif
if (event) {
lpObject = &object;
cachePhEvent_tFids(env, event, &PGLOB(PhEvent_tFc));
getPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
result = (jint) PtGlobalFocusNext((PtWidget_t *)widget, lpObject);
if (event) {
setPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtGlobalFocusPrev
* Signature: (ILorg/eclipse/swt/internal/photon/PhEvent_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtGlobalFocusPrev
(JNIEnv *env, jobject that, jint widget, jobject event)
{
DECL_GLOB(pGlob)
jint result;
PhEvent_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtGlobalFocusPrev\n");
#endif
if (event) {
lpObject = &object;
cachePhEvent_tFids(env, event, &PGLOB(PhEvent_tFc));
getPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
result = (jint) PtGlobalFocusPrev((PtWidget_t *)widget, lpObject);
if (event) {
setPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtGlobalFocusNextContainer
* Signature: (ILorg/eclipse/swt/internal/photon/PhEvent_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtGlobalFocusNextContainer
(JNIEnv *env, jobject that, jint widget, jobject event)
{
DECL_GLOB(pGlob)
jint result;
PhEvent_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtGlobalFocusNextContainer\n");
#endif
if (event) {
lpObject = &object;
cachePhEvent_tFids(env, event, &PGLOB(PhEvent_tFc));
getPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
result = (jint) PtGlobalFocusNextContainer((PtWidget_t *)widget, lpObject);
if (event) {
setPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtGlobalFocusPrevContainer
* Signature: (ILorg/eclipse/swt/internal/photon/PhEvent_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtGlobalFocusPrevContainer
(JNIEnv *env, jobject that, jint widget, jobject event)
{
DECL_GLOB(pGlob)
jint result;
PhEvent_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtGlobalFocusPrevContainer\n");
#endif
if (event) {
lpObject = &object;
cachePhEvent_tFids(env, event, &PGLOB(PhEvent_tFc));
getPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
result = (jint) PtGlobalFocusPrevContainer((PtWidget_t *)widget, lpObject);
if (event) {
setPhEvent_tFields(env, event, lpObject, &PGLOB(PhEvent_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetToFront
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetToFront
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetToFront\n");
#endif
return (jint) PtWidgetToFront((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetToBack
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetToBack
(JNIEnv *env, jobject that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetToBack\n");
#endif
return (jint) PtWidgetToBack((PtWidget_t *)widget);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtWidgetInsert
* Signature: (III)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtWidgetInsert
(JNIEnv *env, jobject that, jint widget, jint new_sibling, jint behind)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtWidgetInsert\n");
#endif
return (jint) PtWidgetInsert((PtWidget_t *)widget, (PtWidget_t *)new_sibling, behind);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtDamageExtent
* Signature: (ILorg/eclipse/swt/internal/photon/PhRect_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtDamageExtent
(JNIEnv *env, jobject that, jint widget, jobject extent)
{
DECL_GLOB(pGlob)
jint result;
PhRect_t object, *lpObject=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtContainerGiveFocus\n");
#endif
if (extent) {
lpObject = &object;
cachePhRect_tFids(env, extent, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, extent, lpObject, &PGLOB(PhRect_tFc));
}
result = (jint) PtDamageExtent((PtWidget_t *)widget, lpObject);
if (extent) {
setPhRect_tFields(env, extent, lpObject, &PGLOB(PhRect_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (III)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__III
(JNIEnv *env, jobject that, jint dest, jint src, jint size)
{
return (jint)memmove((void *)dest, (void *)src, size);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PfQueryFontInfo
* Signature: ([BLorg/eclipse/swt/internal/photon/FontQueryInfo;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PfQueryFontInfo
(JNIEnv *env, jobject that, jbyteArray font, jobject info)
{
DECL_GLOB(pGlob)
jbyte *font1=NULL;
FontQueryInfo info1, *lpInfo1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PfQueryFontInfo\n");
#endif
if (font)
font1 = (*env)->GetByteArrayElements(env, font, NULL);
if (info) {
lpInfo1 = &info1;
cacheFontQueryInfoFids(env, info, &PGLOB(FontQueryInfoFc));
getFontQueryInfoFields(env, info, lpInfo1, &PGLOB(FontQueryInfoFc));
}
result = (jint)PfQueryFontInfo(font1, lpInfo1);
if (font)
(*env)->ReleaseByteArrayElements(env, font, font1, JNI_ABORT);
if (info) {
setFontQueryInfoFields(env, info, lpInfo1, &PGLOB(FontQueryInfoFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PfQueryFonts
* Signature: (IIII)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PfQueryFonts
(JNIEnv *env, jobject that, jint symbol, jint flags, jint list, jint n)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PfQueryFonts\n");
#endif
return (jint)PfQueryFonts(symbol, flags, (FontDetails *)list, n);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PfExtentWideText
* Signature: (Lorg/eclipse/swt/internal/photon/PhRect_t;Lorg/eclipse/swt/internal/photon/PhPoint_t;[B[CI)Lorg/eclipse/swt/internal/photon/PhRect_t;
*/
JNIEXPORT jobject JNICALL Java_org_eclipse_swt_internal_photon_OS_PfExtentWideText
(JNIEnv *env, jobject that, jobject extent, jobject pos, jbyteArray font, jcharArray str, jint len)
{
DECL_GLOB(pGlob)
PhRect_t extent1, *lpExtent1=NULL;
PhPoint_t pos1, *lpPos1=NULL;
jbyte *font1=NULL;
jchar *str1=NULL;
PhRect_t * result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PfExtentWideText\n");
#endif
if (extent) {
lpExtent1 = &extent1;
cachePhRect_tFids(env, extent, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (font)
font1 = (*env)->GetByteArrayElements(env, font, NULL);
if (str)
str1 = (*env)->GetCharArrayElements(env, str, NULL);
result = PfExtentWideText(lpExtent1, lpPos1, font1, str1, len);
if (extent) {
setPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
setPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (font)
(*env)->ReleaseByteArrayElements(env, font, font1, JNI_ABORT);
if (str)
(*env)->ReleaseCharArrayElements(env, str, str1, JNI_ABORT);
return result != NULL ? extent : NULL;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PgExtentMultiText
* Signature: (Lorg/eclipse/swt/internal/photon/PhRect_t;Lorg/eclipse/swt/internal/photon/PhPoint_t;[B[BII)Lorg/eclipse/swt/internal/photon/PhRect_t;
*/
JNIEXPORT jobject JNICALL Java_org_eclipse_swt_internal_photon_OS_PgExtentMultiText
(JNIEnv *env, jobject that, jobject extent, jobject pos, jbyteArray font, jbyteArray str, jint n, int linespacing)
{
DECL_GLOB(pGlob)
PhRect_t extent1, *lpExtent1=NULL;
PhPoint_t pos1, *lpPos1=NULL;
jbyte *font1=NULL;
jbyte *str1=NULL;
PhRect_t * result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PgExtentMultiText\n");
#endif
if (extent) {
lpExtent1 = &extent1;
cachePhRect_tFids(env, extent, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (font)
font1 = (*env)->GetByteArrayElements(env, font, NULL);
if (str)
str1 = (*env)->GetByteArrayElements(env, str, NULL);
result = PgExtentMultiText(lpExtent1, lpPos1, font1, str1, n, linespacing);
if (extent) {
setPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
setPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (font)
(*env)->ReleaseByteArrayElements(env, font, font1, JNI_ABORT);
if (str)
(*env)->ReleaseByteArrayElements(env, str, str1, JNI_ABORT);
return result != NULL ? extent : NULL;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PfExtentText
* Signature: (Lorg/eclipse/swt/internal/photon/PhRect_t;Lorg/eclipse/swt/internal/photon/PhPoint_t;[B[BI)Lorg/eclipse/swt/internal/photon/PhRect_t;
*/
JNIEXPORT jobject JNICALL Java_org_eclipse_swt_internal_photon_OS_PfExtentText__Lorg_eclipse_swt_internal_photon_PhRect_1t_2Lorg_eclipse_swt_internal_photon_PhPoint_1t_2_3B_3BI
(JNIEnv *env, jclass that, jobject extent, jobject pos, jbyteArray font, jbyteArray str, jint len)
{
DECL_GLOB(pGlob)
PhRect_t extent1, *lpExtent1=NULL;
PhPoint_t pos1, *lpPos1=NULL;
jbyte *str1=NULL;
jbyte *font1=NULL;
PhRect_t * result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PfExtentText\n");
#endif
if (extent) {
lpExtent1 = &extent1;
cachePhRect_tFids(env, extent, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (font)
font1 = (*env)->GetByteArrayElements(env, font, NULL);
if (str)
str1 = (*env)->GetByteArrayElements(env, str, NULL);
result = PfExtentText(lpExtent1, lpPos1, font1, str1, len);
if (extent) {
setPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
setPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
if (font)
(*env)->ReleaseByteArrayElements(env, font, font1, JNI_ABORT);
if (str)
(*env)->ReleaseByteArrayElements(env, str, str1, JNI_ABORT);
return result != NULL ? extent : NULL;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PfExtentText
* Signature: (Lorg/eclipse/swt/internal/photon/PhRect_t;Lorg/eclipse/swt/internal/photon/PhPoint_t;III)Lorg/eclipse/swt/internal/photon/PhRect_t;
*/
JNIEXPORT jobject JNICALL Java_org_eclipse_swt_internal_photon_OS_PfExtentText__Lorg_eclipse_swt_internal_photon_PhRect_1t_2Lorg_eclipse_swt_internal_photon_PhPoint_1t_2III
(JNIEnv *env, jclass that, jobject extent, jobject pos, jint font, jint str, jint len)
{
DECL_GLOB(pGlob)
PhRect_t extent1, *lpExtent1=NULL;
PhPoint_t pos1, *lpPos1=NULL;
PhRect_t * result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PfExtentText\n");
#endif
if (extent) {
lpExtent1 = &extent1;
cachePhRect_tFids(env, extent, &PGLOB(PhRect_tFc));
getPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
lpPos1 = &pos1;
cachePhPoint_tFids(env, pos, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
result = PfExtentText(lpExtent1, lpPos1, (char *)font, (char *)str, len);
if (extent) {
setPhRect_tFields(env, extent, lpExtent1, &PGLOB(PhRect_tFc));
}
if (pos) {
setPhPoint_tFields(env, pos, lpPos1, &PGLOB(PhPoint_tFc));
}
return result != NULL ? extent : NULL;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (ILorg/eclipse/swt/internal/photon/PhDim_t;I)V
*/
/*
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__ILorg_eclipse_swt_internal_photon_PhDim_1t_2I
(JNIEnv *env, jobject that, jint dest, jobject src, jint count)
{
DECL_GLOB(pGlob)
PhDim_t object, *src1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_photon_PhDim_1t_2I\n");
#endif
if (src) {
src1=&object;
cachePhDim_tFids(env, src, &PGLOB(PhDim_tFc));
getPhDim_tFields(env, src, src1, &PGLOB(PhDim_tFc));
}
memmove((void *)dest, (void *)src1, count);
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (Lorg/eclipse/swt/internal/photon/PhDim_t;II)V
*/
/*
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__Lorg_eclipse_swt_internal_photon_PhDim_1t_2II
(JNIEnv *env, jobject that, jobject dest, jint src, jint count)
{
DECL_GLOB(pGlob)
PhDim_t object, *dest1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_photon_PhDim_1t_2II\n");
#endif
memmove((void *)&object, (void *)src, count);
if (dest) {
dest1=&object;
cachePhDim_tFids(env, dest, &PGLOB(PhDim_tFc));
setPhDim_tFields(env, dest, dest1, &PGLOB(PhDim_tFc));
}
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (ILorg/eclipse/swt/internal/photon/PhImage_t;I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__ILorg_eclipse_swt_internal_photon_PhImage_1t_2I
(JNIEnv *env, jobject that, jint dest, jobject src, jint count)
{
DECL_GLOB(pGlob)
PhImage_t object, *src1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_photon_PhImage_1t_2I\n");
#endif
if (src) {
src1=&object;
cachePhImage_tFids(env, src, &PGLOB(PhImage_tFc));
getPhImage_tFields(env, src, src1, &PGLOB(PhImage_tFc));
}
memmove((void *)dest, (void *)src1, count);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: memmove
* Signature: (Lorg/eclipse/swt/internal/photon/PhImage_t;II)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_memmove__Lorg_eclipse_swt_internal_photon_PhImage_1t_2II
(JNIEnv *env, jobject that, jobject dest, jint src, jint count)
{
DECL_GLOB(pGlob)
PhImage_t object, *dest1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_photon_PhImage_1t_2II\n");
#endif
memmove((void *)&object, (void *)src, count);
if (dest) {
dest1=&object;
cachePhImage_tFids(env, dest, &PGLOB(PhImage_tFc));
setPhImage_tFields(env, dest, dest1, &PGLOB(PhImage_tFc));
}
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhCreateImage
* Signature: (Lorg/eclipse/swt/photon/PhImage_t;SSI[III)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhCreateImage__Lorg_eclipse_swt_internal_photon_PhImage_1t_2SSI_3III
(JNIEnv *env, jobject that, jobject buffer, jshort width, jshort height, jint type, jintArray palette, jint ncolors, jint tag)
{
DECL_GLOB(pGlob)
jint result;
jint *palette1 = NULL;
PhImage_t buffer1, *lpBuffer1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhCreateImage\n");
#endif
if (buffer) {
lpBuffer1 = &buffer1;
cachePhImage_tFids(env, buffer, &PGLOB(PhImage_tFc));
getPhImage_tFields(env, buffer, lpBuffer1, &PGLOB(PhImage_tFc));
}
if (palette)
palette1 = (*env)->GetIntArrayElements(env, palette, NULL);
result = (jint)PhCreateImage(lpBuffer1, width, height, type, (PgColor_t *)palette1, ncolors, tag);
if (buffer) {
setPhImage_tFields(env, buffer, lpBuffer1, &PGLOB(PhImage_tFc));
}
if (palette)
(*env)->ReleaseIntArrayElements(env, palette, palette1, JNI_ABORT);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhCreateImage
* Signature: (Lorg/eclipse/swt/photon/PhImage_t;SSIIII)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhCreateImage__Lorg_eclipse_swt_internal_photon_PhImage_1t_2SSIIII
(JNIEnv *env, jobject that, jobject buffer, jshort width, jshort height, jint type, jint palette, jint ncolors, jint tag)
{
DECL_GLOB(pGlob)
jint result;
PhImage_t buffer1, *lpBuffer1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhCreateImage\n");
#endif
if (buffer) {
lpBuffer1 = &buffer1;
cachePhImage_tFids(env, buffer, &PGLOB(PhImage_tFc));
getPhImage_tFields(env, buffer, lpBuffer1, &PGLOB(PhImage_tFc));
}
result = (jint)PhCreateImage(lpBuffer1, width, height, type, (PgColor_t *)palette, ncolors, tag);
if (buffer) {
setPhImage_tFields(env, buffer, lpBuffer1, &PGLOB(PhImage_tFc));
}
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PhReleaseImage
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PhReleaseImage
(JNIEnv *env, jobject that, jint image)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PhReleaseImage\n");
#endif
PhReleaseImage((PhImage_t *)image);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PmMemCreateMC
* Signature: (ILorg/eclipse/swt/photon/PhDim_t;Lorg/eclipse/swt/photon/PhPoint_t;)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PmMemCreateMC
(JNIEnv *env, jobject that, jint image, jobject dim, jobject translation)
{
DECL_GLOB(pGlob)
PhDim_t dim1, *lpDim1=NULL;
PhPoint_t translation1, *lpTranslation1=NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PmMemCreateMC\n");
#endif
if (dim) {
lpDim1 = &dim1;
cachePhDim_tFids(env, dim, &PGLOB(PhDim_tFc));
getPhDim_tFields(env, dim, lpDim1, &PGLOB(PhDim_tFc));
}
if (translation) {
lpTranslation1 = &translation1;
cachePhPoint_tFids(env, translation, &PGLOB(PhPoint_tFc));
getPhPoint_tFields(env, translation, lpTranslation1, &PGLOB(PhPoint_tFc));
}
return (jint) PmMemCreateMC((PhImage_t *)image, lpDim1, lpTranslation1);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PmMemReleaseMC
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PmMemReleaseMC
(JNIEnv *env, jobject that, jint mc)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PmMemReleaseMC\n");
#endif
PmMemReleaseMC((PmMemoryContext_t *)mc);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PmMemStart
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PmMemStart
(JNIEnv *env, jobject that, jint mc)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PmMemStart\n");
#endif
return (jint)PmMemStart((PmMemoryContext_t *)mc);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PmMemStop
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PmMemStop
(JNIEnv *env, jobject that, jint mc)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PmMemStop\n");
#endif
return (jint)PmMemStop((PmMemoryContext_t *)mc);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PmMemFlush
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PmMemFlush
(JNIEnv *env, jobject that, jint mc, jint image)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PmMemFlush\n");
#endif
return (jint)PmMemFlush((PmMemoryContext_t *)mc, (PhImage_t *)image);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtCreateWidgetClass
* Signature: (III[I)I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtCreateWidgetClass
(JNIEnv *env, jobject that, jint superclass_ref, jint size, jint n_args, jintArray args)
{
jint *args1=NULL;
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtCreateWidgetClass\n");
#endif
if (args)
args1 = (*env)->GetIntArrayElements(env, args, NULL);
result = (jint)PtCreateWidgetClass((PtWidgetClassRef_t *)superclass_ref, size, n_args, (PtArg_t *)args1);
if (args)
(*env)->ReleaseIntArrayElements(env, args, args1, 0);
return result;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtSuperClassDraw
* Signature: (III)V
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_photon_OS_PtSuperClassDraw
(JNIEnv *env, jobject that, jint wc_ref, jint widget, jint damage)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtSuperClassDraw\n");
#endif
PtSuperClassDraw((PtWidgetClassRef_t *) wc_ref, (PtWidget_t *)widget, (PhTile_t *)damage);
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtToggleButton
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtToggleButton
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtToggleButton\n");
#endif
return (jint)PtToggleButton;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtOnOffButton
* Signature: ()I
*/
/*
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtOnOffButton
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtOnOffButton\n");
#endif
return (jint)PtOnOffButton;
}
*/
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtOnOffButton
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtComboBox
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtComboBox\n");
#endif
return (jint)PtComboBox;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtText
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtText
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtText\n");
#endif
return (jint)PtText;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtMultiText
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtMultiText
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtMultiText\n");
#endif
return (jint)PtMultiText;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtMenu
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtMenu
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtMenu\n");
#endif
return (jint)PtMenu;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtMenuBar
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtMenuBar
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtMenuBar\n");
#endif
return (jint)PtMenuBar;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtMenuButton
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtMenuButton
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtMenuButton\n");
#endif
return (jint)PtMenuButton;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtScrollbar
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtScrollbar
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtScrollbar\n");
#endif
return (jint)PtScrollbar;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtSeparator
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PtSeparator
(JNIEnv *env, jobject that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "PtSeparator\n");
#endif
return (jint)PtSeparator;
}
/*
* Class: org_eclipse_swt_internal_photon_OS
* Method: PtListAddItems
* Signature: (I[III)I