comparison Android/java/org/madbutterfly/_jni.java @ 493:1b6228092a57 Android_Skia

Java code for MadButterfly JNI. This is Java code that access MadButterfly JNI interface.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 26 Nov 2009 15:02:51 +0800
parents
children c468e397614d
comparison
equal deleted inserted replaced
492:e95598916dfb 493:1b6228092a57
1 package org.madbutterfly;
2 import android.graphics.Canvas;
3
4 class _jni {
5 native static int redraw_man_new(Canvas cr, Canvas backend);
6 native static void redraw_man_free(int rdman);
7 native static int rdman_add_shape(int rdman, int shape, int coord);
8 native static int rdman_get_root(int rdman);
9 native static int rdman_redraw_all(int rdman);
10 native static int rdman_redraw_changed(int rdman);
11 native static int rdman_redraw_area(int rdman, float x, float y,
12 float w, float h);
13 native static void rdman_paint_fill(int rdman, int paint, int shape);
14 native static void rdman_paint_stroke(int rdman, int paint, int shape);
15
16 /* coord_t */
17 native static int rdman_coord_new(int rdman, int parent);
18 native static void rdman_coord_free(int rdman, int coord);
19 native static void rdman_coord_subtree_free(int rdman, int coord);
20 native static void rdman_coord_changed(int rdman, int coord);
21
22 /* shape_t */
23 native static void rdman_shape_changed(int rdman, int shape);
24 native static void rdman_shape_free(int rdman, int shape);
25 native static int rdman_shape_path_new(int rdman, String data);
26
27 /* paint_t */
28 native static int rdman_paint_color_new(int rdman, float r, float g,
29 float b, float a);
30 native static int rdman_paint_free(int rdman, int paint);
31 native static void paint_color_set(int paint, float r, float g,
32 float b, float a);
33 native static float[] paint_color_get(int paint);
34 native static int rdman_paint_linear_new(int rdman,
35 float x1, float y1,
36 float x2, float y2);
37 native static int paint_linear_stops(int paint, int n_stops, int stops);
38 native static int rdman_paint_radial_new(int rdman, float cx, float cy,
39 float r);
40 native static int paint_radial_stops(int paint, int n_stops, int stops);
41 native static int paint_create_stops(float stops[][]);
42 native static int paint_free_stops(int stops);
43
44 static {
45 System.loadLibrary("mbfly-jni");
46 }
47 }