예제 #1
0
/**
 * Platform dependent implementation of stopVibrate.
 *
 * @note stop vibrate is not implemented, as planned.
 * @return KNI_FALSE: if this device does not support vibrate
 */
jboolean anc_stop_vibrate(void)
{
    REPORT_CALL_TRACE(LC_CORE, "LF:STUB:anc_stop_vibrate()\n");

    /* Not yet implemented */
    return KNI_FALSE;
}
/**
 * Renders the contents of the specified region of this
 * immutable image onto the destination specified.
 *
 * @param srcImmutableImagePtr   pointer to source image
 * @param dstMutableImagePtr    pointer to mutable destination image or
 *                            NULL for the screen
 * @param clip                pointer to structure holding the clip
 *                                [x, y, width, height]
 * @param x_dest              x-coordinate in the destination
 * @param y_dest              y-coordinate in the destination
 * @param width               width of the region
 * @param height              height of the region
 * @param x_src               x-coord of the region
 * @param y_src               y-coord of the region
 * @param transform           transform to be applied to the region
 */
void
gxpport_render_immutableregion
(gxpport_image_native_handle srcImmutableImagePtr,
 gxpport_mutableimage_native_handle dstMutableImagePtr,
 const jshort *clip,
 int x_dest, int y_dest, 
 int width, int height,
 int x_src, int y_src,
 int transform) {

    REPORT_CALL_TRACE(LC_LOWUI,
		     "LF:STUB:gxpport_render_immutableregion()\n");

    /* Suppress unused parameter warnings */
    (void)srcImmutableImagePtr;
    (void)dstMutableImagePtr;
    (void)clip;
    (void)x_dest;
    (void)y_dest;
    (void)width;
    (void)height;
    (void)x_src;
    (void)y_src;
    (void)transform;
}
예제 #3
0
/**
 * Gets a resource length for pointed reource identifier and locale.
 *
 * @param resource_id   resource identifier
 * @param locale_index  index of the locale
 * @return resource length in case successful operation and -1 if something is wrong
 */
JSR238_STATUSCODE jsr238_get_resource_length(jsize* length /* OUT */, jint resource_id, jint locale_index) {
    ResourceTableEntryType entry;
    unsigned char buf[4];
    void * handle;
    JSR238_STATUSCODE res = JSR238_STATUSCODE_FAIL;

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_get_resource_length()\n");
    if (jsr238_devresource_file_open(locale_index, &handle) >= 0)
    {
        pcsl_file_read(handle, (char*)&ResourceFileHeader, 4);
        pcsl_file_read(handle, buf, 4);
        jsr238_fillInt(&ResourceFileHeader.headerLength, buf);
        if (jsr238_seekEntry(handle, resource_id, ResourceFileHeader.headerLength / 8, &entry)){
            *length = entry.resourceOffset;
            pcsl_file_read(handle, buf, 4);
            pcsl_file_read(handle, buf, 4);
            buf[0] = 0;
            jsr238_fillInt(&entry.resourceOffset, buf);
            *length = entry.resourceOffset - *length;
            res = JSR238_STATUSCODE_OK;
        }
        pcsl_file_close(handle);
    }
    return res;
}
예제 #4
0
/**
 * Gets locale name for data formatting with the given index.
 *
 * @param locale_index of the locale. If neutral locale supported its index MUST be 0
 * @param locale_name_out buffer for the locale.
 * @param plen	in - length of output buffer,
 *				out - length of returned string in jchars including terminating zero 
 * @return JSR238_STATUSCODE_OK if all done successfuly, 
 *         JSR238 error code otherwise 
 */
JSR238_STATUSCODE jsr238_get_format_locale_name(jint index, /* OUT */ jchar* locale_name_out, /* IN|OUT */ jint* plen){
	(void)locale_index;
	(void)locale_name_out;
	(void)plen;
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_get_format_locale()\n");
    return JSR238_STATUSCODE_NOT_IMPLEMENTED;
}
/**
 * Cleans up any native resources to prepare the image to be garbage collected.
 *
 * @param immutableImagePtr pointer to the platform immutable image to destroy.
 */
void
gxpport_destroy_immutable(gxpport_image_native_handle immutableImagePtr) {

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:ImmutableImage_destroy()\n");

    /* Suppress unused parameter warning */
    (void)immutableImagePtr;
}
예제 #6
0
/**
 * Formats an integral percentage value using locale-specific rules. 
 * @param locale_index index of locale to select.
 * @param l long integer to format
 * @param res_buffer the buffer to store formatted string
 * @param pbuffer_len	in the length of buffer to store string
 *						out the length of formatted string
 * @return JSR238_STATUSCODE_OK if all done successfuly, 
 *         JSR238 error code otherwise 
 * @note If <code>res_len</code> is zero, the function returns the number 
 *       of javacall_utf16 characters required to hold the formatted number string,
 *       and the buffer is not used
 */
JSR238_STATUSCODE jsr238_format_integer_percentage(jint locale_index, jlong l,
						  /* OUT */ jchar *res_buffer,  /* IN|OUT */ jint* pbuffer_len){
	(void)locale_index;
	(void)l;
	(void)res_buffer;
	(void)pbuffer_len;
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_format_integer_percentage()\n");
    return JSR238_STATUSCODE_NOT_IMPLEMENTED;
}
예제 #7
0
/*
 * This function is called by the VM periodically. It has to check if
 * system has sent a signal to MIDP and return the result in the
 * structs given.
 *
 * Values for the <timeout> paramater:
 *  >0 = Block until a signal sent to MIDP, or until <timeout> milliseconds
 *       has elapsed.
 *   0 = Check the system for a signal but do not block. Return to the
 *       caller immediately regardless of the if a signal was sent.
 *  -1 = Do not timeout. Block until a signal is sent to MIDP.
 */
void checkForSystemSignal(MidpReentryData* pNewSignal,
                          MidpEvent* pNewMidpEvent,
                          jlong timeout) {
    /* Suppress unused parameter warning */
    (void)pNewSignal;
    (void)pNewMidpEvent;
    (void)timeout;
    
    REPORT_CALL_TRACE(LC_HIGHUI, "LF:STUB:checkForSystemSignal()\n");
}
예제 #8
0
/**
 * Formats a number string as a currency string for a specified locale.
 * 
 * @param locale index of locale to select.
 * @param d double value to format
 * @param code  the ISO 4217 currency code to use, if null default currency for locale is used
 * @param res_buffer the buffer to store formatted string
 * @param pbuffer_len	in the length of buffer to store string
 *						out the length of formatted string
 * @return JSR238_STATUSCODE_OK if all done successfuly, 
 *         JSR238 error code otherwise 
 * @note If <code>res_len</code> is zero, the function returns the number 
 *       of unicode characters required to hold the formatted currency string,
 *       and the buffer is not used
 */
JSR238_STATUSCODE jsr238_format_currency(jint locale, double d, const jchar* code, 
					/* OUT */ jchar *res_buffer,  /* IN|OUT */ jint* pbuffer_len){
	(void)locale_index;
	(void)code;
	(void)d;
	(void)res_buffer;
	(void)pbuffer_len;
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_format_currency()\n");
    return JSR238_STATUSCODE_NOT_IMPLEMENTED;
}
예제 #9
0
/**
 * Formats a double number for a specified locale.
 * 
 * @param locale_index index of locale to select.
 * @param d double number to format
 * @param decimals the number of fractional digits
 * @param res_buffer the buffer to store formatted string
 * @param pbuffer_len	in the length of buffer to store string
 *						out the length of formatted string
 * @return JSR238_STATUSCODE_OK if all done successfuly, 
 *         JSR238 error code otherwise 
 * @note If <code>res_len</code> is zero, the function returns the number 
 *       of unicode characters required to hold the formatted currency string,
 *       and the buffer is not used
 */
JSR238_STATUSCODE jsr238_format_double_number(jint locale_index, jdouble d, jint decimals,
						/* OUT */ jchar *res_buffer,  /* IN|OUT */ jint* pbuffer_len){
	(void)locale_index;
	(void)d;
	(void)decimals;
	(void)res_buffer;
	(void)pbuffer_len;
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_format_double_number()\n");
    return JSR238_STATUSCODE_NOT_IMPLEMENTED;
}
예제 #10
0
/**
 * Renders the contents of the specified mutable image
 * onto the destination specified.
 *
 * @param srcImagePtr         pointer to mutable source image
 * @param dstImagePtr         pointer to mutable destination image or
 *                            NULL for the screen
 * @param clip                pointer to structure holding the clip
 *                                [x, y, width, height]
 * @param x_dest              x-coordinate in the destination
 * @param y_dest              y-coordinate in the destination
 */
void gxpport_render_mutableimage(gxpport_mutableimage_native_handle srcImagePtr,
				 gxpport_mutableimage_native_handle dstImagePtr,
				 const jshort *clip,
				 int x_dest, int y_dest) {
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_render_mutableimage()\n");

    /* Suppress unused parameter warnings */
    (void)srcImagePtr;
    (void)dstImagePtr;
    (void)clip;
    (void)x_dest;
    (void)y_dest;
}
예제 #11
0
/**
 * Gets the number of supported locales for device resources.
 *
 * @return the number of supported locales or 0 if something is wrong
 */
jint jsr238_get_resource_locales_count() {
    int res = 0;
    void *handle;

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_get_resource_locales_count()\n");
    jsr238_file_open(JSR238_METAFILENAME, 0, &handle);
    if (handle != NULL) {
        while (jsr238_read_word(handle, NULL) >= 0) {
            res++;
        }
        pcsl_file_close(handle);
    }
    return res;
}
예제 #12
0
/**
 * Platform dependent implementation of startVibrate
 *
 * @note start vibrate is not implemented, as planned.
 * @return KNI_FALSE:  if this device does not support vibrate
 */
jboolean anc_start_vibrate()
{
    javacall_result result;

    REPORT_CALL_TRACE(LC_CORE, "LF:JAVACALL:midpLCDUIStartVibrate()\n");

    result = javacall_annunciator_vibrate(JAVACALL_TRUE);

    if (JAVACALL_SUCCEEDED(result)) {
        return KNI_TRUE;
    } else {
    return KNI_FALSE;
    }
}
예제 #13
0
/**
 * Initializes the internal members of the native image structure, as required
 * by the platform.
 *
 * @param newImagePtr structure to hold the image's native representation.
 * @param width width of the image, in pixels.
 * @param height height of the image, in pixels.
 * @param creationErrorPtr pointer for the status of the decoding
 *        process. This function sets creationErrorPtr's value.
 */
void gxpport_create_mutable(gxpport_mutableimage_native_handle *newImagePtr,
                                            int width, 
                                            int height,
                                            img_native_error_codes* 
                                            creationErrorPtr) {
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_create_mutable()\n");

    /* Suppress unused parameter warnings */
    (void)newImagePtr;
    (void)width;
    (void)height;
    
    /* Not yet implemented */
    *creationErrorPtr = IMG_NATIVE_IMAGE_UNSUPPORTED_FORMAT_ERROR;
}
예제 #14
0
/**
 * Obtains the ascent, descent and leading info for the font indicated.
 *
 * @param face The face of the font (Defined in <B>Font.java</B>)
 * @param style The style of the font (Defined in <B>Font.java</B>)
 * @param size The size of the font (Defined in <B>Font.java</B>)
 * @param ascent The font's ascent should be returned here.
 * @param descent The font's descent should be returned here.
 * @param leading The font's leading should be returned here.
 */
extern void gxpport_get_fontinfo(
  int face, int style, int size,
  int *ascent, int *descent, int *leading) {

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_getFontInfo()\n");

    /* Suppress unused parameter warnings */
    (void)face;
    (void)size;
    (void)style;

    /* Not yet implemented */
    *ascent = 0;
    *descent = 0;
    *leading = 0;
}
예제 #15
0
/**
 * Gets the advance width for the first n characters in charArray if
 * they were to be drawn in the font indicated by the parameters.
 *
 * <p>
 * <b>Reference:</b>
 * Related Java declaration:
 * <pre>
 *     charWidth(C)I
 * </pre>
 *
 * @param face The font face to be used (Defined in <B>Font.java</B>)
 * @param style The font style to be used (Defined in
 * <B>Font.java</B>)
 * @param size The font size to be used. (Defined in <B>Font.java</B>)
 * @param charArray The string to be measured
 * @param n The number of character to be measured
 * @return The total advance width in pixels (a non-negative value)
 */
extern int gxpport_get_charswidth(
  int face, int style, int size,
  const jchar *charArray, int n) {

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_charsWidth()\n");

    /* Suppress unused parameter warnings */
    (void)face;
    (void)size;
    (void)style;
    (void)charArray;
    (void)n;

    /* Not yet implemented */
    return 0;
}
예제 #16
0
/**
 * Checks if resource with given identifier exists.
 *
 * @param resource_id   resource identifier
 * @param locale_index  index of the locale
 * @return 1 if resource ID is valid and 0 if something is wrong
 */
jboolean jsr238_is_valid_resource_id(jint resource_id, jint locale_index) {
    ResourceTableEntryType entry;
    unsigned char buf[4];
    void * handle;
    jboolean res = PCSL_FALSE;

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_is_valid_resource_id()\n");
    if (jsr238_devresource_file_open(locale_index, &handle) >= 0) {
        pcsl_file_read(handle, (char*)&ResourceFileHeader, 4);
        pcsl_file_read(handle, buf, 4);
        jsr238_fillInt(&ResourceFileHeader.headerLength, buf);
        res = jsr238_seekEntry(handle, resource_id, ResourceFileHeader.headerLength / 8, &entry);
        pcsl_file_close(handle);
    }

    return res;
}
/**
 * Decodes the ARGB input data into a storage format used by immutable images.
 * The array consists of values in the form of 0xAARRGGBB.
 *  
 * @param srcBuffer input data to be decoded.
 * @param width width of the image, in pixels.
 * @param height height of the image, in pixels.
 * @param format format of the input data.
 * @param newImmutableImagePtr pointer to an allocated destination immutable
 *        image structure
 * @param creationErrorPtr pointer to the status of the decoding
 *        process. This function sets creationErrorPtr's value.
 */
void gxpport_decodeimmutable_from_argb(jint* srcBuffer,
         int width, int height, jboolean processAlpha,
         gxpport_image_native_handle *newImmutableImagePtr,
         img_native_error_codes* creationErrorPtr) {
    REPORT_CALL_TRACE(LC_LOWUI,
		      "LF:STUB:gxpport_decodeimmutable_from_argb()\n");

    /* Suppress unused parameter warnings */
    (void)srcBuffer;
    (void)width;
    (void)height;
    (void)processAlpha;
    (void)newImmutableImagePtr;

    /* Not yet implemented */
    *creationErrorPtr = IMG_NATIVE_IMAGE_UNSUPPORTED_FORMAT_ERROR;
}
예제 #18
0
/**
 * Copy from a specify region to other region
 */
extern void gxpport_copy_area(
  const jshort *clip, gxpport_mutableimage_native_handle dst,
  int x_src, int y_src, int width, int height, 
  int x_dest, int y_dest) {
    
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_copy_area()\n");

    /* Suppress unused parameter warnings */
    (void)clip;
    (void)dst;
    (void)x_src;
    (void)y_src;
    (void)width;
    (void)height;
    (void)x_dest;
    (void)y_dest;
}
예제 #19
0
/**
 * Fill a rectangle at (x,y) with the given width and height.
 */
extern void gxpport_fill_rect(
  jint pixel, const jshort *clip, 
  gxpport_mutableimage_native_handle dst,
  int dotted, int x, int y, int width, int height) {

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_fill_rect()\n");

    /* Suppress unused parameter warnings */
    (void)pixel;
    (void)clip;
    (void)dst;
    (void)dotted;
    (void)x;
    (void)y;
    (void)width;
    (void)height;
}
/**
 * Decodes the given input data into a native platform representation that can 
 * be saved.  The input data should be in a self-identifying format; that is,
 * the data must contain a description of the decoding process.
 * 
 *  @param srcBuffer input data to be decoded.
 *  @param length length of the input data.
 *  @param ret_dataBuffer pointer to the platform representation data that 
 *         be saved.
 *  @param ret_length pointer to the length of the return data.
 *  @param creationErrorPtr pointer to the status of the decoding
 *         process. This function sets creationErrorPtr's value.
 */
void
gxpport_decodeimmutable_to_platformbuffer
(unsigned char *srcBuffer, long length, 
 unsigned char **ret_dataBuffer, long* ret_length,
 img_native_error_codes* creationErrorPtr) {

    REPORT_CALL_TRACE(LC_LOWUI,
		      "LF:STUB:gxpport_decodeimmutable_to_platformbuffer()\n");

    /* Suppress unused parameter warning */
    (void)srcBuffer;
    (void)length;

    /* Not yet implemented */
    *ret_dataBuffer = 0;
    *ret_length = 0;
    *creationErrorPtr = IMG_NATIVE_IMAGE_UNSUPPORTED_FORMAT_ERROR;
}
예제 #21
0
/**
 * Draw a line between two points (x1,y1) and (x2,y2).
 */
extern void gxpport_draw_line(
  jint pixel, const jshort *clip, 
  gxpport_mutableimage_native_handle dst,
  int dotted, int x1, int y1, int x2, int y2)
{

    REPORT_CALL_TRACE(LC_LOWUI, "gxpport_draw_line()\n");

    /* Suppress unused parameter warnings */
    (void)pixel;
    (void)clip;
    (void)dst;
    (void)dotted;
    (void)x1;
    (void)y1;
    (void)x2;
    (void)y2;
}
예제 #22
0
/**
 * Formats a date as a date string for a specified locale.
 * 
 * @param locale_index index of locale to select.
 * @param year current year
 * @param month current month
 * @param dow current day of the week
 * @param dom current day of the month
 * @param hour current hour
 * @param min current minute
 * @param sec current second
 * @param style formatting style (0-5)
 * @param res_buffer the buffer to store formatted string
 * @param pbuffer_len	in the length of buffer to store string
 *						out the length of formatted string
 * @return JSR238_STATUSCODE_OK if all done successfuly, 
 *         JSR238 error code otherwise 
 * @note If <code>buffer_len</code> is zero, the function returns the number 
 *       of unicode characters required to hold the formatted currency string,
 *       and the buffer is not used
 */
JSR238_STATUSCODE jsr238_format_date_time(jint locale_index, jint year, jint month, 
						jint dow, jint dom, 
						jint hour, jint min, jint sec, 
						jint style, /* OUT */ jchar *res_buffer,
						/* IN|OUT */ jint* pbuffer_len){
	(void)locale_index;
	(void)year;
	(void)month;
	(void)dow;
	(void)dom;
	(void)hour;
	(void)min;
	(void)sec;
	(void)style;
	(void)res_buffer;
	(void)pbuffer_len;
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_format_date_time()\n");
    return JSR238_STATUSCODE_NOT_IMPLEMENTED;
}
/**
 * Gets ARGB representation of the specified immutable image.
 *
 * @param imutableImagePtr pointer to the source image
 * @param rgbBuffer     pointer to buffer to write with the ARGB data
 * @param offset        offset in the buffer at which to start writing
 * @param scanLength    the relative offset within the array
 *                      between corresponding pixels of consecutive rows
 * @param x             x-coordinate of region
 * @param y             y-coordinate of region
 * @param width         width of region
 * @param height        height of region
 * @param errorPtr Error status pointer to the status
 *                 This function sets creationErrorPtr's value.
 */
void gxpport_get_immutable_argb(gxpport_image_native_handle immutableImagePtr,
        jint* rgbBuffer, int offset, int scanLength,
        int x, int y, int width, int height,
        img_native_error_codes* errorPtr) {
    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_get_immutable_argb()\n");

    /* Suppress unused parameter warnings */
    (void)immutableImagePtr;
    (void)rgbBuffer;
    (void)offset;
    (void)scanLength;
    (void)x;
    (void)y;
    (void)width;
    (void)height;

    /* Not implemented yet */
    *errorPtr = IMG_NATIVE_IMAGE_UNSUPPORTED_FORMAT_ERROR;
}
/**
 * Decodes the given input data into a storage format used by immutable
 * images.  The input data should be in a self-identifying format; that is,
 * the data must contain a description of the decoding process.
 * 
 *  @param srcBuffer input data to be decoded.
 *  @param length length of the input data.
 *  @param ret_imgWidth pointer to the width of the decoded image when the
 *         function runs successfully. This function sets ret_imgWidth's
 *         value.
 *  @param ret_imgHeight pointer to the height of the decoded image when the
 *         function runs successfully. This function sets ret_imgHeight's
 *         value.
 *  @param newImmutableImagePtr pointer to an allocated destination immutable
 *         image structure
 *  @param creationErrorPtr pointer to the status of the decoding
 *         process. This function sets creationErrorPtr's value.
 */
void
gxpport_decodeimmutable_from_selfidentifying
(unsigned char *srcBuffer, int length, 
 int* imgWidth, int* imgHeight,
 gxpport_image_native_handle *newImmutableImagePtr,
 img_native_error_codes* creationErrorPtr) {

    REPORT_CALL_TRACE(LC_LOWUI,
        "LF:STUB:gxpport_decodeimmutable_from_selfidentifying()\n");

    /* Suppress unused parameter warnings */
    (void)srcBuffer;
    (void)length;
    (void)imgWidth;
    (void)imgHeight;
    (void)newImmutableImagePtr;

    /* Not yet implemented */
    *creationErrorPtr = IMG_NATIVE_IMAGE_UNSUPPORTED_FORMAT_ERROR;
}
예제 #25
0
/**
 * Draw image in RGB format
 */
extern void gxpport_draw_rgb(
  const jshort *clip, 
  gxpport_mutableimage_native_handle dst, jint *rgbData, 
  jint offset, jint scanlen, jint x, jint y, 
  jint width, jint height, jboolean processAlpha) {

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_drawRGB()\n");

    /* Suppress unused parameter warnings */
    (void)clip;
    (void)dst;
    (void)rgbData;
    (void)offset;
    (void)scanlen;
    (void)x;
    (void)y;
    (void)width;
    (void)height;
    (void)processAlpha;
}
예제 #26
0
/**
 * Gets a resource for pointed resource identifier and locale.
 *
 * @param resource      buffer for the resource
 * @param res_len       length of the resource buffer
 * @param resource_id   resource identifier
 * @param locale_index  index of the locale
 * @return 0 in case successful operation and -1 if something is wrong
 */
JSR238_STATUSCODE jsr238_get_resource(jbyte* resource, jint res_len, jint resource_id, jint locale_index) {
    void * handle;
    ResourceTableEntryType entry;
    unsigned char buf[4];
    int res = JSR238_STATUSCODE_FAIL;

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:jsr238_get_resource()\n");
    if (jsr238_devresource_file_open(locale_index, &handle) >= 0)
    {
        pcsl_file_read(handle, (char*)&ResourceFileHeader, 4);
        pcsl_file_read(handle, buf, 4);
        jsr238_fillInt(&ResourceFileHeader.headerLength, buf);
        if (jsr238_seekEntry(handle, resource_id, ResourceFileHeader.headerLength / 8, &entry)){
            pcsl_file_seek(handle, entry.resourceOffset, 0);
            pcsl_file_read(handle, resource, res_len);
            res = JSR238_STATUSCODE_OK;
        }
        pcsl_file_close(handle);
    }
    return res;
}
/**
 * Loads the given input data into a storage format used by immutable
 * images.  The input data should be the native platform representation.
 * 
 *  @param newImmutableImage pointer to a structure to hold the loaded image.
 *  @param srcBuffer input data to be loaded.
 *  @param length length of the input data.
 *  @param isStatic true if srcBuffer is static
 *  @param ret_imgWidth pointer to the width of the loaded image when the
 *         function runs successfully. This function sets ret_imgWidth's
 *         value.
 *  @param ret_imgHeight pointer to the height of the loaded image when the
 *         function runs successfully. This function sets ret_imgHeight's
 *         value.
 *  @param newImmutableImagePtr pointer to an allocated destination immutable
 *         image structure
 *  @param creationErrorPtr pointer to the status of the loading
 *         process. This function sets creationErrorPtr's value.
 */
void
gxpport_loadimmutable_from_platformbuffer
 (unsigned char *srcBuffer, int length, jboolean isStatic,
 int* ret_imgWidth, int* ret_imgHeight,
 gxpport_image_native_handle *newImmutableImagePtr,
 img_native_error_codes* creationErrorPtr) {

    REPORT_CALL_TRACE(LC_LOWUI,
		      "LF:STUB:gxpport_loadimmutable_from_platformbuffer()\n");

    /* Suppress unused parameter warning */
    (void)srcBuffer;
    (void)length;
    (void)isStatic;
    (void)newImmutableImagePtr;

    /* Not yet implemented */
    *ret_imgWidth = 0;
    *ret_imgHeight = 0;
    *creationErrorPtr = IMG_NATIVE_IMAGE_UNSUPPORTED_FORMAT_ERROR;
}
예제 #28
0
/**
 * Draw triangle
 *
 * @param pixel The packed pixel value
 */
extern void gxpport_fill_triangle(
  jint pixel, const jshort *clip,
  gxpport_mutableimage_native_handle dst, int dotted,
  int x1, int y1,
  int x2, int y2,
  int x3, int y3) {

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_fill_triangle()\n");

    /* Suppress unused parameter warnings */
    (void)pixel;
    (void)clip;
    (void)dst;
    (void)dotted;
    (void)x1;
    (void)y1;
    (void)x2;
    (void)y2;
    (void)x3;
    (void)y3;
}
/**
 * Creates an immutable image that is a copy of a region
 * of the specified immutable image.
 *
 * @param srcImmutableImagePtr pointer to source image
 * @param src_x                x-coord of the region
 * @param src_y                y-coord of the region
 * @param src_width            width of the region
 * @param src_height           height of the region
 * @param transform            transform to be applied to the region
 * @param newImmutableImagePtr pointer to an allocated destination immutable
 *                             image structure
 * @param creationErrorPtr     pointer to error status.
 *                             This function sets creationErrorPtr's value.
 */
void
gxpport_createimmutable_from_immutableregion
(gxpport_image_native_handle srcImmutableImagePtr,
 int src_x, int src_y, 
 int src_width, int src_height,
 int transform,
 gxpport_image_native_handle *newImmutableImagePtr,
 img_native_error_codes* creationErrorPtr) {

    REPORT_CALL_TRACE(LC_LOWUI,
        "LF:STUB:gxpport_createimmutable_from_immutableregion()\n");

    /* Suppress unused parameter warnings */
    (void)srcImmutableImagePtr;
    (void)src_x;
    (void)src_y;
    (void)src_width;
    (void)src_height;
    (void)transform;
    (void)newImmutableImagePtr;

    /* Not yet implemented */
    *creationErrorPtr = IMG_NATIVE_IMAGE_UNSUPPORTED_FORMAT_ERROR;
}
예제 #30
0
/*
 * Draws the first n characters specified using the current font,
 * color, and anchor point.
 *
 * <p>
 * <b>Reference:</b>
 * Related Java declaration:
 * <pre>
 *     drawString(Ljava/lang/String;III)V
 * </pre>
 *
 * @param pixel Device-dependent pixel value
 * @param clip Clipping information
 * @param dst Platform dependent destination information
 * @param dotted The stroke style to be used
 * @param face The font face to be used (Defined in <B>Font.java</B>)
 * @param style The font style to be used (Defined in
 * <B>Font.java</B>)
 * @param size The font size to be used. (Defined in <B>Font.java</B>)
 * @param x The x coordinate of the anchor point
 * @param y The y coordinate of the anchor point
 * @param anchor The anchor point for positioning the text
 * @param chararray Pointer to the characters to be drawn
 * @param n The number of characters to be drawn
 */
extern void gxpport_draw_chars(
  jint pixel, const jshort *clip, 
  gxpport_mutableimage_native_handle dst,
  int dotted,
  int face, int style, int size,
  int x, int y, int anchor, 
  const jchar *charArray, int n) {

    REPORT_CALL_TRACE(LC_LOWUI, "LF:STUB:gxpport_drawChars()\n");

    /* Suppress unused parameter warnings */
    (void)pixel;
    (void)clip;
    (void)dst;
    (void)dotted;
    (void)face;
    (void)size;
    (void)style;
    (void)x;
    (void)y;
    (void)anchor;
    (void)charArray;
    (void)n;
}