1 /*******************************************************************************
2 * Copyright (c) 2000, 2019 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
15 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
16 /* DO NOT EDIT - your changes will be lost. */
19 #include "gdip_stats.h"
23 char * Gdip_nativeFunctionNames[] = {
37 "ColorPalette_1sizeof",
38 "FontFamily_1GetFamilyName",
39 "FontFamily_1IsAvailable",
42 "FontFamily_1new___3CJ",
54 "GdiplusStartupInput_1sizeof",
55 "GraphicsPath_1AddArc",
56 "GraphicsPath_1AddBezier",
57 "GraphicsPath_1AddLine",
58 "GraphicsPath_1AddPath",
59 "GraphicsPath_1AddRectangle",
60 "GraphicsPath_1AddString",
61 "GraphicsPath_1Clone",
62 "GraphicsPath_1CloseFigure",
63 "GraphicsPath_1Flatten",
64 "GraphicsPath_1GetBounds",
65 "GraphicsPath_1GetLastPoint",
66 "GraphicsPath_1GetPathPoints",
67 "GraphicsPath_1GetPathTypes",
68 "GraphicsPath_1GetPointCount",
69 "GraphicsPath_1IsOutlineVisible",
70 "GraphicsPath_1IsVisible",
71 "GraphicsPath_1SetFillMode",
72 "GraphicsPath_1StartFigure",
73 "GraphicsPath_1Transform",
74 "GraphicsPath_1delete",
75 "GraphicsPath_1new__I",
76 "GraphicsPath_1new___3I_3BII",
78 "Graphics_1DrawDriverString__JJIJJLorg_eclipse_swt_internal_gdip_PointF_2IJ",
79 "Graphics_1DrawDriverString__JJIJJ_3FIJ",
80 "Graphics_1DrawEllipse",
81 "Graphics_1DrawImage__JJII",
82 "Graphics_1DrawImage__JJLorg_eclipse_swt_internal_gdip_Rect_2IIIIIJJJ",
84 "Graphics_1DrawLines",
86 "Graphics_1DrawPolygon",
87 "Graphics_1DrawRectangle",
88 "Graphics_1DrawString__J_3CIJLorg_eclipse_swt_internal_gdip_PointF_2J",
89 "Graphics_1DrawString__J_3CIJLorg_eclipse_swt_internal_gdip_PointF_2JJ",
90 "Graphics_1FillEllipse",
93 "Graphics_1FillPolygon",
94 "Graphics_1FillRectangle",
97 "Graphics_1GetClipBounds__JLorg_eclipse_swt_internal_gdip_RectF_2",
98 "Graphics_1GetClipBounds__JLorg_eclipse_swt_internal_gdip_Rect_2",
100 "Graphics_1GetInterpolationMode",
101 "Graphics_1GetSmoothingMode",
102 "Graphics_1GetTextRenderingHint",
103 "Graphics_1GetTransform",
104 "Graphics_1GetVisibleClipBounds",
105 "Graphics_1MeasureDriverString",
106 "Graphics_1MeasureString__J_3CIJLorg_eclipse_swt_internal_gdip_PointF_2JLorg_eclipse_swt_internal_gdip_RectF_2",
107 "Graphics_1MeasureString__J_3CIJLorg_eclipse_swt_internal_gdip_PointF_2Lorg_eclipse_swt_internal_gdip_RectF_2",
108 "Graphics_1ReleaseHDC",
109 "Graphics_1ResetClip",
112 "Graphics_1ScaleTransform",
113 "Graphics_1SetClip__JJI",
114 "Graphics_1SetClip__JLorg_eclipse_swt_internal_gdip_Rect_2I",
115 "Graphics_1SetClipPath__JJ",
116 "Graphics_1SetClipPath__JJI",
117 "Graphics_1SetCompositingQuality",
118 "Graphics_1SetInterpolationMode",
119 "Graphics_1SetPageUnit",
120 "Graphics_1SetPixelOffsetMode",
121 "Graphics_1SetSmoothingMode",
122 "Graphics_1SetTextRenderingHint",
123 "Graphics_1SetTransform",
124 "Graphics_1TranslateTransform",
127 "HatchBrush_1delete",
129 "ImageAttributes_1SetColorMatrix",
130 "ImageAttributes_1SetWrapMode",
131 "ImageAttributes_1delete",
132 "ImageAttributes_1new",
134 "Image_1GetLastStatus",
136 "Image_1GetPaletteSize",
137 "Image_1GetPixelFormat",
139 "LinearGradientBrush_1ResetTransform",
140 "LinearGradientBrush_1ScaleTransform",
141 "LinearGradientBrush_1SetInterpolationColors",
142 "LinearGradientBrush_1SetWrapMode",
143 "LinearGradientBrush_1TranslateTransform",
144 "LinearGradientBrush_1delete",
145 "LinearGradientBrush_1new",
146 "Matrix_1GetElements",
148 "Matrix_1IsIdentity",
152 "Matrix_1SetElements",
154 "Matrix_1TransformPoints__JLorg_eclipse_swt_internal_gdip_PointF_2I",
155 "Matrix_1TransformPoints__J_3FI",
156 "Matrix_1TransformVectors",
160 "MoveMemory__Lorg_eclipse_swt_internal_gdip_BitmapData_2J",
161 "MoveMemory__Lorg_eclipse_swt_internal_gdip_ColorPalette_2JI",
162 "PathGradientBrush_1SetCenterColor",
163 "PathGradientBrush_1SetCenterPoint",
164 "PathGradientBrush_1SetGraphicsPath",
165 "PathGradientBrush_1SetInterpolationColors",
166 "PathGradientBrush_1SetSurroundColors",
167 "PathGradientBrush_1SetWrapMode",
168 "PathGradientBrush_1delete",
169 "PathGradientBrush_1new",
172 "Pen_1SetDashOffset",
173 "Pen_1SetDashPattern",
177 "Pen_1SetMiterLimit",
183 "PrivateFontCollection_1AddFontFile",
184 "PrivateFontCollection_1delete",
185 "PrivateFontCollection_1new",
187 "Region_1IsInfinite",
191 "Region_1newGraphicsPath",
192 "SolidBrush_1delete",
194 "StringFormat_1Clone",
195 "StringFormat_1GenericDefault",
196 "StringFormat_1GenericTypographic",
197 "StringFormat_1GetFormatFlags",
198 "StringFormat_1SetFormatFlags",
199 "StringFormat_1SetHotkeyPrefix",
200 "StringFormat_1SetTabStops",
201 "StringFormat_1delete",
202 "TextureBrush_1ResetTransform",
203 "TextureBrush_1ScaleTransform",
204 "TextureBrush_1SetTransform",
205 "TextureBrush_1TranslateTransform",
206 "TextureBrush_1delete",
209 #define NATIVE_FUNCTION_COUNT sizeof(Gdip_nativeFunctionNames) / sizeof(char*)
210 int Gdip_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
211 int Gdip_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
213 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
215 JNIEXPORT jint JNICALL STATS_NATIVE(Gdip_1GetFunctionCount)
216 (JNIEnv *env, jclass that)
218 return Gdip_nativeFunctionCount;
221 JNIEXPORT jstring JNICALL STATS_NATIVE(Gdip_1GetFunctionName)
222 (JNIEnv *env, jclass that, jint index)
224 return env->NewStringUTF(Gdip_nativeFunctionNames[index]);
227 JNIEXPORT jint JNICALL STATS_NATIVE(Gdip_1GetFunctionCallCount)
228 (JNIEnv *env, jclass that, jint index)
230 return Gdip_nativeFunctionCallCount[index];