1 /*******************************************************************************
2  * Copyright (c) 2000, 2012 IBM Corporation and others.
3  *
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/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.internal.gdip;
15 
16 import org.eclipse.swt.internal.*;
17 
18 /** @jniclass flags=cpp */
19 public class Gdip extends Platform {
20 	static {
21 		Library.loadLibrary ("swt-gdip"); //$NON-NLS-1$
22 	}
23 
24 	/** GdiPlus constants */
25 	public static final float FlatnessDefault = 0.25f;
26 	public static final int BrushTypeSolidColor = 0;
27 	public static final int BrushTypeHatchFill = 1;
28 	public static final int BrushTypeTextureFill = 2;
29 	public static final int BrushTypePathGradient = 3;
30 	public static final int BrushTypeLinearGradient = 4;
31 	public static final int ColorAdjustTypeBitmap = 1;
32 	public static final int ColorMatrixFlagsDefault = 0;
33 	public static final int CombineModeReplace = 0;
34 	public static final int CombineModeIntersect = 1;
35 	public static final int CombineModeUnion = 2;
36 	public static final int CombineModeXor = 3;
37 	public static final int CombineModeExclude = 4;
38 	public static final int CombineModeComplement = 5;
39 	public static final int FillModeAlternate = 0;
40 	public static final int FillModeWinding = 1;
41 	public static final int DashCapFlat = 0;
42 	public static final int DashCapRound = 2;
43 	public static final int DashCapTriangle = 3;
44 	public static final int DashStyleSolid = 0;
45 	public static final int DashStyleDash = 1;
46 	public static final int DashStyleDot = 2;
47 	public static final int DashStyleDashDot = 3;
48 	public static final int DashStyleDashDotDot = 4;
49 	public static final int DashStyleCustom = 5;
50 	public static final int DriverStringOptionsRealizedAdvance = 4;
51 	public static final int FontStyleRegular = 0;
52 	public static final int FontStyleBold = 1;
53 	public static final int FontStyleItalic = 2;
54 	public static final int FontStyleBoldItalic = 3;
55 	public static final int FontStyleUnderline = 4;
56 	public static final int FontStyleStrikeout = 8;
57 	public static final int PaletteFlagsHasAlpha = 0x0001;
58 	public static final int FlushIntentionFlush = 0;
59 	public static final int FlushIntentionSync = 1;
60 	public static final int HotkeyPrefixNone = 0;
61 	public static final int HotkeyPrefixShow = 1;
62 	public static final int HotkeyPrefixHide = 2;
63 	public static final int LineJoinMiter = 0;
64 	public static final int LineJoinBevel = 1;
65 	public static final int LineJoinRound = 2;
66 	public static final int LineCapFlat = 0;
67 	public static final int LineCapSquare = 1;
68 	public static final int LineCapRound = 2;
69 	public static final int MatrixOrderPrepend = 0;
70 	public static final int MatrixOrderAppend = 1;
71 	public static final int QualityModeDefault = 0;
72 	public static final int QualityModeLow = 1;
73 	public static final int QualityModeHigh = 2;
74 	public static final int InterpolationModeDefault = QualityModeDefault;
75 	public static final int InterpolationModeLowQuality = QualityModeLow;
76 	public static final int InterpolationModeHighQuality = QualityModeHigh;
77 	public static final int InterpolationModeBilinear = QualityModeHigh + 1;
78 	public static final int InterpolationModeBicubic = QualityModeHigh + 2;
79 	public static final int InterpolationModeNearestNeighbor = QualityModeHigh + 3;
80 	public static final int InterpolationModeHighQualityBilinear = QualityModeHigh + 4;
81 	public static final int InterpolationModeHighQualityBicubic = QualityModeHigh + 5;
82 	public static final int PathPointTypeStart = 0;
83 	public static final int PathPointTypeLine = 1;
84 	public static final int PathPointTypeBezier = 3;
85 	public static final int PathPointTypePathTypeMask = 0x7;
86 	public static final int PathPointTypePathDashMode = 0x10;
87 	public static final int PathPointTypePathMarker = 0x20;
88 	public static final int PathPointTypeCloseSubpath = 0x80;
89 	public static final int PathPointTypeBezier3 = 3;
90 	public static final int PixelFormatIndexed = 0x00010000;
91 	public static final int PixelFormatGDI = 0x00020000;
92 	public static final int PixelFormatAlpha = 0x00040000;
93 	public static final int PixelFormatPAlpha = 0x00080000;
94 	public static final int PixelFormatExtended = 0x00100000;
95 	public static final int PixelFormatCanonical = 0x00200000;
96 	public static final int PixelFormat1bppIndexed = (1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI);
97 	public static final int PixelFormat4bppIndexed = (2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI);
98 	public static final int PixelFormat8bppIndexed = (3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI);
99 	public static final int PixelFormat16bppGrayScale = (4 | (16 << 8) | PixelFormatExtended);
100 	public static final int PixelFormat16bppRGB555 = (5 | (16 << 8) | PixelFormatGDI);
101 	public static final int PixelFormat16bppRGB565 = (6 | (16 << 8) | PixelFormatGDI);
102 	public static final int PixelFormat16bppARGB1555 = (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI);
103 	public static final int PixelFormat24bppRGB = (8 | (24 << 8) | PixelFormatGDI);
104 	public static final int PixelFormat32bppRGB = (9 | (32 << 8) | PixelFormatGDI);
105 	public static final int PixelFormat32bppARGB = (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical);
106 	public static final int PixelFormat32bppPARGB = (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI);
107 	public static final int PixelFormat48bppRGB = (12 | (48 << 8) | PixelFormatExtended);
108 	public static final int PixelFormat64bppARGB = (13 | (64 << 8) | PixelFormatAlpha  | PixelFormatCanonical | PixelFormatExtended);
109 	public static final int PixelFormat64bppPARGB = (14 | (64 << 8) | PixelFormatAlpha  | PixelFormatPAlpha | PixelFormatExtended);
110 	public static final int PixelFormat32bppCMYK = (15 | (32 << 8));
111 	public static final int PixelFormatMax = 16;
112 	public static final int PixelOffsetModeNone = QualityModeHigh + 1;
113 	public static final int PixelOffsetModeHalf = QualityModeHigh + 2;
114 	public static final int SmoothingModeDefault = QualityModeDefault;
115 	public static final int SmoothingModeHighSpeed = QualityModeLow;
116 	public static final int SmoothingModeHighQuality = QualityModeHigh;
117 	public static final int SmoothingModeNone = 3;
118 	public static final int SmoothingModeAntiAlias8x4 = 4;
119 	public static final int SmoothingModeAntiAlias = SmoothingModeAntiAlias8x4;
120 	public static final int SmoothingModeAntiAlias8x8 = 5;
121 	public static final int StringFormatFlagsDirectionRightToLeft = 0x00000001;
122 	public static final int StringFormatFlagsDirectionVertical = 0x00000002;
123 	public static final int StringFormatFlagsNoFitBlackBox = 0x00000004;
124 	public static final int StringFormatFlagsDisplayFormatControl = 0x00000020;
125 	public static final int StringFormatFlagsNoFontFallback = 0x00000400;
126 	public static final int StringFormatFlagsMeasureTrailingSpaces = 0x00000800;
127 	public static final int StringFormatFlagsNoWrap = 0x00001000;
128 	public static final int StringFormatFlagsLineLimit = 0x00002000;
129 	public static final int StringFormatFlagsNoClip = 0x00004000;
130 	public static final int TextRenderingHintSystemDefault = 0;
131 	public static final int TextRenderingHintSingleBitPerPixelGridFit = 1;
132 	public static final int TextRenderingHintSingleBitPerPixel = 2;
133 	public static final int TextRenderingHintAntiAliasGridFit = 3;
134 	public static final int TextRenderingHintAntiAlias = 4;
135 	public static final int TextRenderingHintClearTypeGridFit = 5;
136 	public static final int UnitPixel = 2;
137 	public static final int WrapModeTile = 0;
138 	public static final int WrapModeTileFlipX = 1;
139 	public static final int WrapModeTileFlipY = 2;
140 	public static final int WrapModeTileFlipXY = 3;
141 	public static final int WrapModeClamp = 4;
142 
143 /** 64 bit */
ColorPalette_sizeof()144 public static final native int ColorPalette_sizeof();
GdiplusStartupInput_sizeof()145 public static final native int GdiplusStartupInput_sizeof();
146 
147 /** GdiPlus natives */
148 
149 /**
150  * @param token cast=(ULONG_PTR *)
151  * @param input cast=(const GdiplusStartupInput *)
152  * @param output cast=(GdiplusStartupOutput *)
153  */
GdiplusStartup(long[] token, GdiplusStartupInput input, long output)154 public static final native int GdiplusStartup(long[] token, GdiplusStartupInput input, long output);
155 /** @param token cast=(ULONG_PTR) */
GdiplusShutdown(long token)156 public static final native void GdiplusShutdown(long token);
157 /**
158  * @method flags=new
159  * @param hbm cast=(HBITMAP)
160  * @param hpal cast=(HPALETTE)
161  */
Bitmap_new(long hbm, long hpal)162 public static final native long Bitmap_new(long hbm, long hpal);
163 /**
164  * @method flags=new
165  * @param hicon cast=(HICON)
166  */
Bitmap_new(long hicon)167 public static final native long Bitmap_new(long hicon);
168 /**
169  * @method flags=new
170  * @param format cast=(PixelFormat)
171  * @param scan0 cast=(BYTE *)
172  */
Bitmap_new(int width, int height, int stride, int format, long scan0)173 public static final native long Bitmap_new(int width, int height, int stride, int format, long scan0);
174 /**
175  * @method flags=new
176  * @param filename cast=(WCHAR*)
177  */
Bitmap_new(char[] filename, boolean useIcm)178 public static final native long Bitmap_new(char[] filename, boolean useIcm);
179 /** @method flags=delete */
Bitmap_delete(long bitmap)180 public static final native void Bitmap_delete(long bitmap);
181 /**
182  * @method flags=cpp
183  * @param bitmap cast=(Bitmap*)
184  * @param colorBackground cast=(Color)
185  * @param hbmReturn cast=(HBITMAP*)
186  */
Bitmap_GetHBITMAP(long bitmap, int colorBackground, long[] hbmReturn)187 public static final native int Bitmap_GetHBITMAP(long bitmap, int colorBackground, long[] hbmReturn);
188 /**
189  * @method flags=cpp
190  * @param bitmap cast=(Bitmap*)
191  * @param hicon cast=(HICON*)
192  */
Bitmap_GetHICON(long bitmap, long[] hicon)193 public static final native int Bitmap_GetHICON(long bitmap, long[] hicon);
194 /** @method flags=new */
BitmapData_new()195 public static final native long BitmapData_new();
196 /** @method flags=delete */
BitmapData_delete(long bitmapData)197 public static final native void BitmapData_delete(long bitmapData);
198 /**
199  * @method flags=cpp
200  * @param bitmap cast=(Bitmap*)
201  * @param rect cast=(Rect*)
202  * @param pixelFormat cast=(PixelFormat)
203  * @param lockedBitmapData cast=(BitmapData*)
204  */
Bitmap_LockBits(long bitmap, long rect, int flags, int pixelFormat, long lockedBitmapData)205 public static final native int Bitmap_LockBits(long bitmap, long rect, int flags, int pixelFormat, long lockedBitmapData);
206 /**
207  * @method flags=cpp
208  * @param bitmap cast=(Bitmap*)
209  * @param lockedBitmapData cast=(BitmapData*)
210  */
Bitmap_UnlockBits(long bitmap, long lockedBitmapData)211 public static final native int Bitmap_UnlockBits(long bitmap, long lockedBitmapData);
212 /**
213  * @method flags=cpp
214  * @param brush cast=(Brush *)
215  */
Brush_Clone(long brush)216 public static final native long Brush_Clone(long brush);
217 /**
218  * @method flags=cpp
219  * @param brush cast=(Brush *)
220  */
Brush_GetType(long brush)221 public static final native int Brush_GetType(long brush);
222 /** @method flags=new */
PrivateFontCollection_new()223 public static final native long PrivateFontCollection_new();
224 /** @method flags=delete */
PrivateFontCollection_delete(long collection)225 public static final native void PrivateFontCollection_delete(long collection);
226 /**
227  * @method flags=cpp
228  * @param collection cast=(PrivateFontCollection *)
229  * @param filename cast=(const WCHAR *)
230  */
PrivateFontCollection_AddFontFile(long collection, char[] filename)231 public static final native int PrivateFontCollection_AddFontFile(long collection, char[] filename);
232 /**
233  * @method flags=new
234  * @param hdc cast=(HDC)
235  * @param hfont cast=(HFONT)
236  */
Font_new(long hdc, long hfont)237 public static final native long Font_new(long hdc, long hfont);
238 /**
239  * @method flags=new
240  * @param family cast=(const FontFamily *)
241  * @param emSize cast=(REAL)
242  * @param style cast=(INT)
243  * @param unit cast=(Unit)
244  */
Font_new(long family, float emSize, int style, int unit)245 public static final native long Font_new(long family, float emSize, int style, int unit);
246 /**
247  * @method flags=new
248  * @param familyName cast=(const WCHAR *)
249  * @param emSize cast=(REAL)
250  * @param style cast=(INT)
251  * @param unit cast=(Unit)
252  * @param fontCollection cast=(const FontCollection *)
253  */
Font_new(char[] familyName, float emSize, int style, int unit, long fontCollection)254 public static final native long Font_new(char[] familyName, float emSize, int style, int unit, long fontCollection);
255 /** @method flags=delete */
Font_delete(long font)256 public static final native void Font_delete(long font);
257 /**
258  * @method flags=cpp
259  * @param font cast=(Font *)
260  * @param family cast=(FontFamily *)
261  */
Font_GetFamily(long font, long family)262 public static final native int Font_GetFamily(long font, long family);
263 /**
264  * @method flags=cpp
265  * @param font cast=(Font *)
266  */
Font_GetSize(long font)267 public static final native float Font_GetSize(long font);
268 /**
269  * @method flags=cpp
270  * @param font cast=(Font *)
271  */
Font_GetStyle(long font)272 public static final native int Font_GetStyle(long font);
273 /**
274  * @method flags=cpp
275  * @param font cast=(Font *)
276  * @param g cast=(const Graphics *)
277  * @param logfontW cast=(LOGFONTW *)
278  */
Font_GetLogFontW(long font, long g, long logfontW)279 public static final native int Font_GetLogFontW (long font, long g, long  logfontW);
280 /**
281  * @method flags=cpp
282  * @param font cast=(Font *)
283  */
Font_IsAvailable(long font)284 public static final native boolean Font_IsAvailable(long font);
285 /** @method flags=new */
FontFamily_new()286 public static final native long FontFamily_new();
287 /**
288  * @method flags=new
289  * @param name cast=(const WCHAR *)
290  * @param fontCollection cast=(const FontCollection *)
291  */
FontFamily_new(char[] name, long fontCollection)292 public static final native long FontFamily_new(char[] name, long fontCollection);
293 /** @method flags=delete */
FontFamily_delete(long family)294 public static final native void FontFamily_delete(long family);
295 /**
296  * @method flags=cpp
297  * @param family cast=(FontFamily *)
298  * @param name cast=(WCHAR *)
299  * @param language cast=(WCHAR)
300  */
FontFamily_GetFamilyName(long family, char[] name, char language)301 public static final native int FontFamily_GetFamilyName(long family, char[] name, char language);
302 /**
303  * @method flags=cpp
304  * @param family cast=(FontFamily *)
305  */
FontFamily_IsAvailable(long family)306 public static final native boolean FontFamily_IsAvailable(long family);
307 /**
308  * @method flags=new
309  * @param hdc cast=(HDC)
310  */
Graphics_new(long hdc)311 public static final native long Graphics_new(long hdc);
312 /** @method flags=delete */
Graphics_delete(long graphics)313 public static final native void Graphics_delete(long graphics);
314 /**
315  * @method flags=cpp
316  * @param graphics cast=(Graphics *)
317  * @param pen cast=(Pen *)
318  */
Graphics_DrawArc(long graphics, long pen, int x, int y, int width, int height, float startAngle, float sweepAngle)319 public static final native int Graphics_DrawArc(long graphics, long pen, int x, int y, int width, int height, float startAngle, float sweepAngle);
320 /**
321  * @method flags=cpp
322  * @param graphics cast=(Graphics *)
323  * @param text cast=(const UINT16 *)
324  * @param font cast=(const Font *)
325  * @param brush cast=(const Brush *)
326  * @param positions cast=(const PointF *)
327  * @param matrix cast=(const Matrix *)
328  */
Graphics_DrawDriverString(long graphics, long text, int length, long font, long brush, PointF positions, int flags, long matrix)329 public static final native int Graphics_DrawDriverString(long graphics, long text, int length, long font, long brush, PointF /*long*/ positions, int flags, long matrix);
330 /**
331  * @method flags=cpp
332  * @param graphics cast=(Graphics *)
333  * @param text cast=(const UINT16 *)
334  * @param font cast=(const Font *)
335  * @param brush cast=(const Brush *)
336  * @param positions cast=(const PointF *),flags=no_out
337  * @param matrix cast=(const Matrix *)
338  */
Graphics_DrawDriverString(long graphics, long text, int length, long font, long brush, float[] positions, int flags, long matrix)339 public static final native int Graphics_DrawDriverString(long graphics, long text, int length, long font, long brush, float[] positions, int flags, long matrix);
340 /**
341  * @method flags=cpp
342  * @param graphics cast=(Graphics *)
343  * @param pen cast=(Pen *)
344  */
Graphics_DrawEllipse(long graphics, long pen, int x, int y, int width, int height)345 public static final native int Graphics_DrawEllipse(long graphics, long pen, int x, int y, int width, int height);
346 /**
347  * @method flags=cpp
348  * @param graphics cast=(Graphics *)
349  * @param image cast=(Image *)
350  * @param x cast=(INT)
351  * @param y cast=(INT)
352  */
Graphics_DrawImage(long graphics, long image, int x, int y)353 public static final native int Graphics_DrawImage(long graphics, long image, int x, int y);
354 /**
355  * @method flags=cpp
356  * @param graphics cast=(Graphics *)
357  * @param image cast=(Image *)
358  * @param destRect cast=(const Rect *),flags=struct
359  * @param srcx cast=(INT)
360  * @param srcy cast=(INT)
361  * @param srcwidth cast=(INT)
362  * @param srcheight cast=(INT)
363  * @param srcUnit cast=(Unit)
364  * @param imageAttributes cast=(ImageAttributes *)
365  * @param callback cast=(DrawImageAbort)
366  * @param callbackData cast=(VOID *)
367  */
Graphics_DrawImage(long graphics, long image, Rect destRect, int srcx, int srcy, int srcwidth, int srcheight, int srcUnit, long imageAttributes, long callback, long callbackData)368 public static final native int Graphics_DrawImage(long graphics, long image, Rect destRect, int srcx, int srcy, int srcwidth, int srcheight, int srcUnit, long imageAttributes, long callback, long callbackData);
369 /**
370  * @method flags=cpp
371  * @param graphics cast=(Graphics *)
372  * @param pen cast=(Pen *)
373  */
Graphics_DrawLine(long graphics, long pen, int x1, int y1, int x2, int y2)374 public static final native int Graphics_DrawLine(long graphics, long pen, int x1, int y1, int x2, int y2);
375 /**
376  * @method flags=cpp
377  * @param graphics cast=(Graphics *)
378  * @param pen cast=(Pen *)
379  * @param points cast=(const Point *),flags=no_out
380  * @param count cast=(INT)
381  */
Graphics_DrawLines(long graphics, long pen, int[] points, int count)382 public static final native int Graphics_DrawLines(long graphics, long pen, int[] points, int count);
383 /**
384  * @method flags=cpp
385  * @param graphics cast=(Graphics *)
386  * @param pen cast=(Pen *)
387  * @param path cast=(GraphicsPath *)
388  */
Graphics_DrawPath(long graphics, long pen, long path)389 public static final native int Graphics_DrawPath(long graphics, long pen, long path);
390 /**
391  * @method flags=cpp
392  * @param graphics cast=(Graphics *)
393  * @param pen cast=(Pen *)
394  * @param points cast=(Point *)
395  * @param count cast=(INT)
396  */
Graphics_DrawPolygon(long graphics, long pen, int[] points, int count)397 public static final native int Graphics_DrawPolygon(long graphics, long pen, int[] points, int count);
398 /**
399  * @method flags=cpp
400  * @param graphics cast=(Graphics *)
401  * @param pen cast=(Pen *)
402  */
Graphics_DrawRectangle(long graphics, long pen, int x, int y, int width, int height)403 public static final native int Graphics_DrawRectangle(long graphics, long pen, int x, int y, int width, int height);
404 /**
405  * @method flags=cpp
406  * @param graphics cast=(Graphics *)
407  * @param string cast=(WCHAR *)
408  * @param length cast=(int)
409  * @param font cast=(Font *)
410  * @param origin flags=struct
411  * @param brush cast=(Brush *)
412  */
Graphics_DrawString(long graphics, char[] string, int length, long font, PointF origin, long brush)413 public static final native int Graphics_DrawString(long graphics, char[] string, int length, long font, PointF origin, long brush);
414 /**
415  * @method flags=cpp
416  * @param graphics cast=(Graphics *)
417  * @param string cast=(WCHAR *)
418  * @param length cast=(int)
419  * @param font cast=(Font *)
420  * @param origin flags=struct
421  * @param format cast=(StringFormat *)
422  * @param brush cast=(Brush *)
423  */
Graphics_DrawString(long graphics, char[] string, int length, long font, PointF origin, long format, long brush)424 public static final native int Graphics_DrawString(long graphics, char[] string, int length, long font, PointF origin, long format, long brush);
425 /**
426  * @method flags=cpp
427  * @param graphics cast=(Graphics *)
428  * @param brush cast=(Brush *)
429  * @param x cast=(INT)
430  * @param y cast=(INT)
431  * @param width cast=(INT)
432  * @param height cast=(INT)
433  */
Graphics_FillEllipse(long graphics, long brush, int x, int y, int width, int height)434 public static final native int Graphics_FillEllipse(long graphics, long brush, int x, int y, int width, int height);
435 /**
436  * @method flags=cpp
437  * @param graphics cast=(Graphics *)
438  * @param brush cast=(Brush *)
439  * @param path cast=(GraphicsPath *)
440  */
Graphics_FillPath(long graphics, long brush, long path)441 public static final native int Graphics_FillPath(long graphics, long brush, long path);
442 /**
443  * @method flags=cpp
444  * @param graphics cast=(Graphics *)
445  * @param intention cast=(FlushIntention)
446  */
Graphics_Flush(long graphics, int intention)447 public static final native void Graphics_Flush(long graphics, int intention);
448 /**
449  * @method flags=cpp
450  * @param graphics cast=(Graphics *)
451  * @param brush cast=(Brush *)
452  * @param x cast=(INT)
453  * @param y cast=(INT)
454  * @param width cast=(INT)
455  * @param height cast=(INT)
456  * @param startAngle cast=(REAL)
457  * @param sweepAngle cast=(REAL)
458  */
Graphics_FillPie(long graphics, long brush, int x, int y, int width, int height, float startAngle, float sweepAngle)459 public static final native int Graphics_FillPie(long graphics, long brush, int x, int y, int width, int height, float startAngle, float sweepAngle);
460 /**
461  * @method flags=cpp
462  * @param graphics cast=(Graphics *)
463  * @param brush cast=(Brush *)
464  * @param points cast=(const Point *),flags=no_out
465  * @param count cast=(INT)
466  * @param fillMode cast=(FillMode)
467  */
Graphics_FillPolygon(long graphics, long brush, int[] points, int count, int fillMode)468 public static final native int Graphics_FillPolygon(long graphics, long brush, int[] points, int count, int fillMode);
469 /**
470  * @method flags=cpp
471  * @param graphics cast=(Graphics *)
472  * @param brush cast=(Brush *)
473  * @param x cast=(INT)
474  * @param y cast=(INT)
475  * @param width cast=(INT)
476  * @param height cast=(INT)
477  */
Graphics_FillRectangle(long graphics, long brush, int x, int y, int width, int height)478 public static final native int Graphics_FillRectangle(long graphics, long brush, int x, int y, int width, int height);
479 /**
480  * @method flags=cpp
481  * @param graphics cast=(Graphics *)
482  */
Graphics_GetClipBounds(long graphics, RectF rect)483 public static final native int Graphics_GetClipBounds(long graphics, RectF rect);
484 /**
485  * @method flags=cpp
486  * @param graphics cast=(Graphics *)
487  */
Graphics_GetClipBounds(long graphics, Rect rect)488 public static final native int Graphics_GetClipBounds(long graphics, Rect rect);
489 /**
490  * @method flags=cpp
491  * @param graphics cast=(Graphics *)
492  * @param region cast=(Region *)
493  */
Graphics_GetClip(long graphics, long region)494 public static final native int Graphics_GetClip(long graphics, long region);
495 /**
496  * @method flags=cpp
497  * @param graphics cast=(Graphics *)
498  */
Graphics_GetHDC(long graphics)499 public static final native long Graphics_GetHDC(long graphics);
500 /**
501  * @method flags=cpp
502  * @param graphics cast=(Graphics *)
503  * @param hdc cast=(HDC)
504  */
Graphics_ReleaseHDC(long graphics, long hdc)505 public static final native void Graphics_ReleaseHDC(long graphics, long hdc);
506 /**
507  * @method flags=cpp
508  * @param graphics cast=(Graphics *)
509  */
Graphics_GetInterpolationMode(long graphics)510 public static final native int Graphics_GetInterpolationMode(long graphics);
511 /**
512  * @method flags=cpp
513  * @param graphics cast=(Graphics *)
514  */
Graphics_GetSmoothingMode(long graphics)515 public static final native int Graphics_GetSmoothingMode(long graphics);
516 /**
517  * @method flags=cpp
518  * @param graphics cast=(Graphics *)
519  */
Graphics_GetTextRenderingHint(long graphics)520 public static final native int Graphics_GetTextRenderingHint(long graphics);
521 /**
522  * @method flags=cpp
523  * @param graphics cast=(Graphics *)
524  * @param matrix cast=(Matrix *)
525  */
Graphics_GetTransform(long graphics, long matrix)526 public static final native int Graphics_GetTransform(long graphics, long matrix);
527 /**
528  * @method flags=cpp
529  * @param graphics cast=(Graphics *)
530  */
Graphics_GetVisibleClipBounds(long graphics, Rect rect)531 public static final native int Graphics_GetVisibleClipBounds(long graphics, Rect rect);
532 /**
533  * @method flags=cpp
534  * @param graphics cast=(Graphics *)
535  * @param text cast=(const UINT16 *)
536  * @param font cast=(Font *)
537  * @param positions cast=(const PointF *),flags=no_out
538  * @param matrix cast=(const Matrix *)
539  */
Graphics_MeasureDriverString(long graphics, long text, int length, long font, float[] positions, int flags, long matrix, RectF boundingBox)540 public static final native int Graphics_MeasureDriverString(long graphics, long text, int length, long font, float[] positions, int flags, long matrix, RectF boundingBox);
541 /**
542  * @method flags=cpp
543  * @param graphics cast=(Graphics *)
544  * @param string cast=(const WCHAR *)
545  * @param length cast=(INT)
546  * @param font cast=(const Font *)
547  * @param origin cast=(const PointF *),flags=struct
548  * @param boundingBox cast=(RectF *)
549  */
Graphics_MeasureString(long graphics, char[] string, int length, long font, PointF origin, RectF boundingBox)550 public static final native int Graphics_MeasureString(long graphics, char[] string, int length, long font, PointF origin, RectF boundingBox);
551 /**
552  * @method flags=cpp
553  * @param graphics cast=(Graphics *)
554  * @param string cast=(const WCHAR *)
555  * @param length cast=(INT)
556  * @param font cast=(const Font *)
557  * @param origin cast=(const PointF *),flags=struct
558  * @param format cast=(StringFormat *)
559  */
Graphics_MeasureString(long graphics, char[] string, int length, long font, PointF origin, long format, RectF boundingBox)560 public static final native int Graphics_MeasureString(long graphics, char[] string, int length, long font, PointF origin, long format, RectF boundingBox);
561 /**
562  * @method flags=cpp
563  * @param graphics cast=(Graphics *)
564  */
Graphics_ResetClip(long graphics)565 public static final native int Graphics_ResetClip(long graphics);
566 /**
567  * @method flags=cpp
568  * @param graphics cast=(Graphics *)
569  * @param gstate cast=(GraphicsState)
570  */
Graphics_Restore(long graphics, int gstate)571 public static final native int Graphics_Restore(long graphics, int gstate);
572 /**
573  * @method flags=cpp
574  * @param graphics cast=(Graphics *)
575  */
Graphics_Save(long graphics)576 public static final native int Graphics_Save(long graphics);
577 /**
578  * @method flags=cpp
579  * @param graphics cast=(Graphics *)
580  * @param order cast=(MatrixOrder)
581  */
Graphics_ScaleTransform(long graphics, float sx, float sy, int order)582 public static final native int Graphics_ScaleTransform(long graphics, float sx, float sy, int order);
583 /**
584  * @method flags=cpp
585  * @param graphics cast=(Graphics *)
586  * @param hrgn cast=(Region *)
587  * @param combineMode cast=(CombineMode)
588  */
Graphics_SetClip(long graphics, long hrgn, int combineMode)589 public static final native int Graphics_SetClip(long graphics, long hrgn, int combineMode);
590 /**
591  * @method flags=cpp
592  * @param graphics cast=(Graphics *)
593  * @param rect cast=(Rect *),flags=struct
594  * @param combineMode cast=(CombineMode)
595  */
Graphics_SetClip(long graphics, Rect rect, int combineMode)596 public static final native int Graphics_SetClip(long graphics, Rect rect, int combineMode);
597 /**
598  * @method accessor=SetClip,flags=cpp
599  * @param graphics cast=(Graphics *)
600  * @param path cast=(GraphicsPath *)
601  */
Graphics_SetClipPath(long graphics, long path)602 public static final native int Graphics_SetClipPath(long graphics, long path);
603 /**
604  * @method accessor=SetClip,flags=cpp
605  * @param graphics cast=(Graphics *)
606  * @param path cast=(GraphicsPath *)
607  * @param combineMode cast=(CombineMode)
608  */
Graphics_SetClipPath(long graphics, long path, int combineMode)609 public static final native int Graphics_SetClipPath(long graphics, long path, int combineMode);
610 /**
611  * @method flags=cpp
612  * @param graphics cast=(Graphics *)
613  * @param compositingQuality cast=(CompositingQuality)
614  */
Graphics_SetCompositingQuality(long graphics, int compositingQuality)615 public static final native int Graphics_SetCompositingQuality(long graphics, int compositingQuality);
616 /**
617  * @method flags=cpp
618  * @param graphics cast=(Graphics *)
619  * @param unit cast=(Unit)
620  */
Graphics_SetPageUnit(long graphics, int unit)621 public static final native int Graphics_SetPageUnit(long graphics, int unit);
622 /**
623  * @method flags=cpp
624  * @param graphics cast=(Graphics *)
625  * @param pixelOffsetMode cast=(PixelOffsetMode)
626  */
Graphics_SetPixelOffsetMode(long graphics, int pixelOffsetMode)627 public static final native int Graphics_SetPixelOffsetMode(long graphics, int pixelOffsetMode);
628 /**
629  * @method flags=cpp
630  * @param graphics cast=(Graphics *)
631  * @param smoothingMode cast=(SmoothingMode)
632  */
Graphics_SetSmoothingMode(long graphics, int smoothingMode)633 public static final native int Graphics_SetSmoothingMode(long graphics, int smoothingMode);
634 /**
635  * @method flags=cpp
636  * @param graphics cast=(Graphics *)
637  * @param matrix cast=(Matrix *)
638  */
Graphics_SetTransform(long graphics, long matrix)639 public static final native int Graphics_SetTransform(long graphics, long matrix);
640 /**
641  * @method flags=cpp
642  * @param graphics cast=(Graphics *)
643  * @param mode cast=(InterpolationMode)
644  */
Graphics_SetInterpolationMode(long graphics, int mode)645 public static final native int Graphics_SetInterpolationMode(long graphics, int mode);
646 /**
647  * @method flags=cpp
648  * @param graphics cast=(Graphics *)
649  * @param mode cast=(TextRenderingHint)
650  */
Graphics_SetTextRenderingHint(long graphics, int mode)651 public static final native int Graphics_SetTextRenderingHint(long graphics, int mode);
652 /**
653  * @method flags=cpp
654  * @param graphics cast=(Graphics *)
655  * @param order cast=(MatrixOrder)
656  */
Graphics_TranslateTransform(long graphics, float dx, float dy, int order)657 public static final native int Graphics_TranslateTransform(long graphics, float dx, float dy, int order);
658 /**
659  * @method flags=new
660  * @param fillMode cast=(FillMode)
661  */
GraphicsPath_new(int fillMode)662 public static final native long GraphicsPath_new(int fillMode);
663 /**
664  * @method flags=new
665  * @param points cast=(const Point *),flags=no_out
666  * @param types cast=(const BYTE *),flags=no_out
667  * @param fillMode cast=(FillMode)
668  */
GraphicsPath_new(int[] points, byte[] types, int count, int fillMode)669 public static final native long GraphicsPath_new(int[] points, byte[] types, int count, int fillMode);
670 /** @method flags=delete */
GraphicsPath_delete(long path)671 public static final native void GraphicsPath_delete(long path);
672 /**
673  * @method flags=cpp
674  * @param path cast=(GraphicsPath *)
675  * @param x cast=(REAL)
676  * @param y cast=(REAL)
677  * @param width cast=(REAL)
678  * @param height cast=(REAL)
679  * @param startAngle cast=(REAL)
680  * @param sweepAngle cast=(REAL)
681  */
GraphicsPath_AddArc(long path, float x, float y, float width, float height, float startAngle, float sweepAngle)682 public static final native int GraphicsPath_AddArc(long path, float x, float y, float width, float height, float startAngle, float sweepAngle);
683 /**
684  * @method flags=cpp
685  * @param path cast=(GraphicsPath *)
686  * @param x1 cast=(REAL)
687  * @param y1 cast=(REAL)
688  * @param x2 cast=(REAL)
689  * @param y2 cast=(REAL)
690  * @param x3 cast=(REAL)
691  * @param y3 cast=(REAL)
692  * @param x4 cast=(REAL)
693  * @param y4 cast=(REAL)
694  */
GraphicsPath_AddBezier(long path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)695 public static final native int GraphicsPath_AddBezier(long path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
696 /**
697  * @method flags=cpp
698  * @param path cast=(GraphicsPath *)
699  * @param x1 cast=(REAL)
700  * @param y1 cast=(REAL)
701  * @param x2 cast=(REAL)
702  * @param y2 cast=(REAL)
703  */
GraphicsPath_AddLine(long path, float x1, float y1, float x2, float y2)704 public static final native int GraphicsPath_AddLine(long path, float x1, float y1, float x2, float y2);
705 /**
706  * @method flags=cpp
707  * @param path cast=(GraphicsPath *)
708  * @param addingPath cast=(GraphicsPath *)
709  * @param connect cast=(BOOL)
710  */
GraphicsPath_AddPath(long path, long addingPath, boolean connect)711 public static final native int GraphicsPath_AddPath(long path, long addingPath, boolean connect);
712 /**
713  * @method flags=cpp
714  * @param path cast=(GraphicsPath *)
715  * @param rect flags=struct
716  */
GraphicsPath_AddRectangle(long path, RectF rect)717 public static final native int GraphicsPath_AddRectangle(long path, RectF rect);
718 /**
719  * @method flags=cpp
720  * @param path cast=(GraphicsPath *)
721  * @param string cast=(const WCHAR *)
722  * @param length cast=(INT)
723  * @param family cast=(const FontFamily *)
724  * @param style cast=(INT)
725  * @param emSize cast=(REAL)
726  * @param origin cast=(const PointF *),flags=struct
727  * @param format cast=(const StringFormat *)
728  */
GraphicsPath_AddString(long path, char[] string, int length, long family, int style, float emSize, PointF origin, long format)729 public static final native int GraphicsPath_AddString(long path, char[] string, int length, long family, int style, float emSize, PointF origin, long format);
730 /**
731  * @method flags=cpp
732  * @param path cast=(GraphicsPath *)
733  */
GraphicsPath_CloseFigure(long path)734 public static final native int GraphicsPath_CloseFigure(long path);
735 /**
736  * @method flags=cpp
737  * @param path cast=(GraphicsPath *)
738  */
GraphicsPath_Clone(long path)739 public static final native long GraphicsPath_Clone(long path);
740 /**
741  * @method flags=cpp
742  * @param path cast=(GraphicsPath *)
743  * @param matrix cast=(Matrix *)
744  */
GraphicsPath_Flatten(long path, long matrix, float flatness)745 public static final native int GraphicsPath_Flatten(long path, long matrix, float flatness);
746 /**
747  * @method flags=cpp
748  * @param path cast=(GraphicsPath *)
749  * @param matrix cast=(Matrix *)
750  * @param pen cast=(Pen *)
751  */
GraphicsPath_GetBounds(long path, RectF bounds, long matrix, long pen)752 public static final native int GraphicsPath_GetBounds(long path, RectF bounds, long matrix, long pen);
753 /**
754  * @method flags=cpp
755  * @param path cast=(GraphicsPath *)
756  * @param lastPoint cast=(PointF *)
757  */
GraphicsPath_GetLastPoint(long path, PointF lastPoint)758 public static final native int GraphicsPath_GetLastPoint(long path, PointF lastPoint);
759 /**
760  * @method flags=cpp
761  * @param path cast=(GraphicsPath *)
762  * @param points cast=(PointF *)
763  */
GraphicsPath_GetPathPoints(long path, float[] points, int count)764 public static final native int GraphicsPath_GetPathPoints(long path, float[] points, int count);
765 /**
766  * @method flags=cpp
767  * @param path cast=(GraphicsPath *)
768  * @param types cast=(BYTE *)
769  */
GraphicsPath_GetPathTypes(long path, byte[] types, int count)770 public static final native int GraphicsPath_GetPathTypes(long path, byte[] types, int count);
771 /**
772  * @method flags=cpp
773  * @param path cast=(GraphicsPath *)
774  */
GraphicsPath_GetPointCount(long path)775 public static final native int GraphicsPath_GetPointCount(long path);
776 /**
777  * @method flags=cpp
778  * @param path cast=(GraphicsPath *)
779  * @param pen cast=(const Pen *)
780  * @param g cast=(const Graphics *)
781  */
GraphicsPath_IsOutlineVisible(long path, float x, float y, long pen, long g)782 public static final native boolean GraphicsPath_IsOutlineVisible(long path, float x, float y, long pen, long g);
783 /**
784  * @method flags=cpp
785  * @param path cast=(GraphicsPath *)
786  * @param g cast=(const Graphics *)
787  */
GraphicsPath_IsVisible(long path, float x, float y, long g)788 public static final native boolean GraphicsPath_IsVisible(long path, float x, float y, long g);
789 /**
790  * @method flags=cpp
791  * @param path cast=(GraphicsPath *)
792  * @param fillmode cast=(FillMode)
793  */
GraphicsPath_SetFillMode(long path, int fillmode)794 public static final native int GraphicsPath_SetFillMode(long path, int fillmode);
795 /**
796  * @method flags=cpp
797  * @param path cast=(GraphicsPath *)
798  */
GraphicsPath_StartFigure(long path)799 public static final native int GraphicsPath_StartFigure(long path);
800 /**
801  * @method flags=cpp
802  * @param path cast=(GraphicsPath *)
803  * @param matrix cast=(Matrix *)
804  */
GraphicsPath_Transform(long path, long matrix)805 public static final native int GraphicsPath_Transform(long path, long matrix);
806 /**
807  * @method flags=new
808  * @param hatchStyle cast=(HatchStyle)
809  * @param foreColor cast=(Color)
810  * @param backColor cast=(Color)
811  */
HatchBrush_new(int hatchStyle, int foreColor, int backColor)812 public static final native long HatchBrush_new(int hatchStyle, int foreColor, int backColor);
813 /**
814  * @method flags=cpp
815  * @param image cast=(Image*)
816  */
Image_GetLastStatus(long image)817 public static final native int Image_GetLastStatus(long image);
818 /**
819  * @method flags=cpp
820  * @param image cast=(Image*)
821  */
Image_GetPixelFormat(long image)822 public static final native int Image_GetPixelFormat(long image);
823 /**
824  * @method flags=cpp
825  * @param image cast=(Image *)
826  */
Image_GetWidth(long image)827 public static final native int Image_GetWidth(long image);
828 /**
829  * @method flags=cpp
830  * @param image cast=(Image *)
831  */
Image_GetHeight(long image)832 public static final native int Image_GetHeight(long image);
833 /**
834  * @method flags=cpp
835  * @param image cast=(Image*)
836  * @param palette cast=(ColorPalette*)
837  */
Image_GetPalette(long image, long palette, int size)838 public static final native int Image_GetPalette(long image, long palette, int size);
839 /**
840  * @method flags=cpp
841  * @param image cast=(Image*)
842  */
Image_GetPaletteSize(long image)843 public static final native int Image_GetPaletteSize(long image);
844 /** @method flags=new */
ImageAttributes_new()845 public static final native long ImageAttributes_new();
846 /** @method flags=delete */
ImageAttributes_delete(long attrib)847 public static final native void ImageAttributes_delete(long attrib);
848 /**
849  * @method flags=cpp
850  * @param attrib cast=(ImageAttributes *)
851  * @param wrap cast=(WrapMode)
852  */
ImageAttributes_SetWrapMode(long attrib, int wrap)853 public static final native int ImageAttributes_SetWrapMode(long attrib, int wrap);
854 /**
855  * @method flags=cpp
856  * @param attrib cast=(ImageAttributes *)
857  * @param matrix cast=(ColorMatrix *)
858  * @param mode cast=(ColorMatrixFlags)
859  * @param type cast=(ColorAdjustType)
860  */
ImageAttributes_SetColorMatrix(long attrib, float[] matrix, int mode, int type)861 public static final native int ImageAttributes_SetColorMatrix(long attrib, float[] matrix, int mode, int type);
862 /** @method flags=delete */
HatchBrush_delete(long brush)863 public static final native void HatchBrush_delete(long brush);
864 /**
865  * @method flags=new
866  * @param point1 flags=struct
867  * @param point2 flags=struct
868  * @param color1 cast=(Color)
869  * @param color2 cast=(Color)
870  */
LinearGradientBrush_new(PointF point1, PointF point2, int color1, int color2)871 public static final native long LinearGradientBrush_new(PointF point1, PointF point2, int color1, int color2);
872 /** @method flags=delete */
LinearGradientBrush_delete(long brush)873 public static final native void LinearGradientBrush_delete(long brush);
874 /**
875  * @method flags=cpp
876  * @param brush cast=(LinearGradientBrush *)
877  * @param presetColors cast=(const Color *),flags=no_out
878  * @param blendPositions cast=(const REAL *),flags=no_out
879  */
LinearGradientBrush_SetInterpolationColors(long brush, int [] presetColors, float[] blendPositions, int count)880 public static final native int LinearGradientBrush_SetInterpolationColors(long brush, int [] presetColors, float[] blendPositions, int count);
881 /**
882  * @method flags=cpp
883  * @param brush cast=(LinearGradientBrush *)
884  * @param wrapMode cast=(WrapMode)
885  */
LinearGradientBrush_SetWrapMode(long brush, int wrapMode)886 public static final native int LinearGradientBrush_SetWrapMode(long brush, int wrapMode);
887 /**
888  * @method flags=cpp
889  * @param brush cast=(LinearGradientBrush *)
890  */
LinearGradientBrush_ResetTransform(long brush)891 public static final native int LinearGradientBrush_ResetTransform(long brush);
892 /**
893  * @method flags=cpp
894  * @param brush cast=(LinearGradientBrush *)
895  * @param order cast=(MatrixOrder)
896  */
LinearGradientBrush_ScaleTransform(long brush, float sx, float sy, int order)897 public static final native int LinearGradientBrush_ScaleTransform(long brush, float sx, float sy, int order);
898 /**
899  * @method flags=cpp
900  * @param brush cast=(LinearGradientBrush *)
901  * @param order cast=(MatrixOrder)
902  */
LinearGradientBrush_TranslateTransform(long brush, float dx, float dy, int order)903 public static final native int LinearGradientBrush_TranslateTransform(long brush, float dx, float dy, int order);
904 /**
905  * @method flags=new
906  * @param m11 cast=(REAL)
907  * @param m12 cast=(REAL)
908  * @param m21 cast=(REAL)
909  * @param m22 cast=(REAL)
910  * @param dx cast=(REAL)
911  * @param dy cast=(REAL)
912  */
Matrix_new(float m11, float m12, float m21, float m22, float dx, float dy)913 public static final native long Matrix_new(float m11, float m12, float m21, float m22, float dx, float dy);
914 /** @method flags=delete */
Matrix_delete(long matrix)915 public static final native void Matrix_delete(long matrix);
916 /**
917  * @method flags=cpp
918  * @param matrix cast=(Matrix *)
919  * @param m cast=(REAL *)
920  */
Matrix_GetElements(long matrix, float[] m)921 public static final native int Matrix_GetElements(long matrix, float[] m);
922 /**
923  * @method flags=cpp
924  * @param matrix cast=(Matrix *)
925  */
Matrix_Invert(long matrix)926 public static final native int Matrix_Invert(long matrix);
927 /**
928  * @method flags=cpp
929  * @param matrix cast=(Matrix *)
930  */
Matrix_IsIdentity(long matrix)931 public static final native boolean Matrix_IsIdentity(long matrix);
932 /**
933  * @method flags=cpp
934  * @param matrix cast=(Matrix *)
935  * @param matrix1 cast=(Matrix *)
936  * @param order cast=(MatrixOrder)
937  */
Matrix_Multiply(long matrix, long matrix1, int order)938 public static final native int Matrix_Multiply(long matrix, long matrix1, int order);
939 /**
940  * @method flags=cpp
941  * @param matrix cast=(Matrix *)
942  * @param angle cast=(REAL)
943  * @param order cast=(MatrixOrder)
944  */
Matrix_Rotate(long matrix, float angle, int order)945 public static final native int Matrix_Rotate(long matrix, float angle, int order);
946 /**
947  * @method flags=cpp
948  * @param matrix cast=(Matrix *)
949  * @param scaleX cast=(REAL)
950  * @param scaleY cast=(REAL)
951  * @param order cast=(MatrixOrder)
952  */
Matrix_Scale(long matrix, float scaleX, float scaleY, int order)953 public static final native int Matrix_Scale(long matrix, float scaleX, float scaleY, int order);
954 /**
955  * @method flags=cpp
956  * @param matrix cast=(Matrix *)
957  * @param shearX cast=(REAL)
958  * @param shearY cast=(REAL)
959  * @param order cast=(MatrixOrder)
960  */
Matrix_Shear(long matrix, float shearX, float shearY, int order)961 public static final native int Matrix_Shear(long matrix, float shearX, float shearY, int order);
962 /**
963  * @method flags=cpp
964  * @param matrix cast=(Matrix *)
965  */
Matrix_TransformPoints(long matrix, PointF pts, int count)966 public static final native int Matrix_TransformPoints(long matrix, PointF pts, int count);
967 /**
968  * @method flags=cpp
969  * @param matrix cast=(Matrix *)
970  * @param pts cast=(PointF *)
971  */
Matrix_TransformPoints(long matrix, float[] pts, int count)972 public static final native int Matrix_TransformPoints(long matrix, float[] pts, int count);
973 /**
974  * @method flags=cpp
975  * @param matrix cast=(Matrix *)
976  */
Matrix_TransformVectors(long matrix, PointF pts, int count)977 public static final native int Matrix_TransformVectors(long matrix, PointF pts, int count);
978 /**
979  * @method flags=cpp
980  * @param matrix cast=(Matrix *)
981  * @param offsetX cast=(REAL)
982  * @param offsetY cast=(REAL)
983  * @param order cast=(MatrixOrder)
984  */
Matrix_Translate(long matrix, float offsetX, float offsetY, int order)985 public static final native int Matrix_Translate(long matrix, float offsetX, float offsetY, int order);
986 /**
987  * @method flags=cpp
988  * @param matrix cast=(Matrix *)
989  * @param m11 cast=(REAL)
990  * @param m12 cast=(REAL)
991  * @param m21 cast=(REAL)
992  * @param m22 cast=(REAL)
993  * @param dx cast=(REAL)
994  * @param dy cast=(REAL)
995  */
Matrix_SetElements(long matrix, float m11, float m12, float m21, float m22, float dx, float dy)996 public static final native int Matrix_SetElements(long matrix, float m11, float m12, float m21, float m22, float dx, float dy);
997 /**
998  * @param Destination cast=(PVOID)
999  * @param SourcePtr cast=(CONST VOID*)
1000  */
MoveMemory(ColorPalette Destination, long SourcePtr, int Length)1001 public static final native void MoveMemory(ColorPalette Destination, long SourcePtr, int Length);
1002 /**
1003  * @param Destination cast=(PVOID)
1004  * @param SourcePtr cast=(CONST VOID*)
1005  */
MoveMemory(BitmapData Destination, long SourcePtr)1006 public static final native void MoveMemory(BitmapData Destination, long SourcePtr);
1007 /**
1008  * @method flags=new
1009  * @param path cast=(GraphicsPath *)
1010  */
PathGradientBrush_new(long path)1011 public static final native long PathGradientBrush_new(long path);
1012 /** @method flags=delete */
PathGradientBrush_delete(long brush)1013 public static final native void PathGradientBrush_delete(long brush);
1014 /**
1015  * @method flags=cpp
1016  * @param brush cast=(PathGradientBrush *)
1017  * @param color cast=(Color)
1018  */
PathGradientBrush_SetCenterColor(long brush, int color)1019 public static final native int PathGradientBrush_SetCenterColor(long brush, int color);
1020 /**
1021  * @method flags=cpp
1022  * @param brush cast=(PathGradientBrush *)
1023  * @param pt flags=struct
1024  */
PathGradientBrush_SetCenterPoint(long brush, PointF pt)1025 public static final native int PathGradientBrush_SetCenterPoint(long brush, PointF pt);
1026 /**
1027  * @method flags=cpp
1028  * @param brush cast=(PathGradientBrush *)
1029  * @param presetColors cast=(const Color *),flags=no_out
1030  * @param blendPositions cast=(const REAL *),flags=no_out
1031  */
PathGradientBrush_SetInterpolationColors(long brush, int [] presetColors, float[] blendPositions, int count)1032 public static final native int PathGradientBrush_SetInterpolationColors(long brush, int [] presetColors, float[] blendPositions, int count);
1033 /**
1034  * @method flags=cpp
1035  * @param brush cast=(PathGradientBrush *)
1036  * @param colors cast=(const Color *),flags=no_out
1037  * @param count cast=(INT *)
1038  */
PathGradientBrush_SetSurroundColors(long brush, int [] colors, int[] count)1039 public static final native int PathGradientBrush_SetSurroundColors(long brush, int [] colors, int[] count);
1040 /**
1041  * @method flags=cpp
1042  * @param brush cast=(PathGradientBrush *)
1043  * @param path cast=(GraphicsPath *)
1044  */
PathGradientBrush_SetGraphicsPath(long brush, long path)1045 public static final native int PathGradientBrush_SetGraphicsPath(long brush, long path);
1046 /**
1047  * @method flags=cpp
1048  * @param brush cast=(PathGradientBrush *)
1049  * @param wrapMode cast=(WrapMode)
1050  */
PathGradientBrush_SetWrapMode(long brush, int wrapMode)1051 public static final native int PathGradientBrush_SetWrapMode(long brush, int wrapMode);
1052 /**
1053  * @method flags=new
1054  * @param brush cast=(Brush *)
1055  * @param width cast=(REAL)
1056  */
Pen_new(long brush, float width)1057 public static final native long Pen_new(long brush, float width);
1058 /** @method flags=delete */
Pen_delete(long pen)1059 public static final native void Pen_delete(long pen);
1060 /**
1061  * @method flags=cpp
1062  * @param pen cast=(Pen *)
1063  */
Pen_GetBrush(long pen)1064 public static final native long Pen_GetBrush(long pen);
1065 /**
1066  * @method flags=cpp
1067  * @param pen cast=(Pen *)
1068  * @param brush cast=(Brush *)
1069  */
Pen_SetBrush(long pen, long brush)1070 public static final native int Pen_SetBrush(long pen, long brush);
1071 /**
1072  * @method flags=cpp
1073  * @param pen cast=(Pen *)
1074  */
Pen_SetDashOffset(long pen, float dashOffset)1075 public static final native int Pen_SetDashOffset(long pen, float dashOffset);
1076 /**
1077  * @method flags=cpp
1078  * @param pen cast=(Pen *)
1079  * @param dashArray cast=(REAL *)
1080  * @param count cast=(int)
1081  */
Pen_SetDashPattern(long pen, float[] dashArray, int count)1082 public static final native int Pen_SetDashPattern(long pen, float[] dashArray, int count);
1083 /**
1084  * @method flags=cpp
1085  * @param pen cast=(Pen *)
1086  * @param dashStyle cast=(DashStyle)
1087  */
Pen_SetDashStyle(long pen, int dashStyle)1088 public static final native int Pen_SetDashStyle(long pen, int dashStyle);
1089 /**
1090  * @method flags=cpp
1091  * @param pen cast=(Pen *)
1092  * @param startCap cast=(LineCap)
1093  * @param endCap cast=(LineCap)
1094  * @param dashCap cast=(DashCap)
1095  */
Pen_SetLineCap(long pen, int startCap, int endCap, int dashCap)1096 public static final native int Pen_SetLineCap(long pen, int startCap, int endCap, int dashCap);
1097 /**
1098  * @method flags=cpp
1099  * @param pen cast=(Pen *)
1100  * @param lineJoin cast=(LineJoin)
1101  */
Pen_SetLineJoin(long pen, int lineJoin)1102 public static final native int Pen_SetLineJoin(long pen, int lineJoin);
1103 /**
1104  * @method flags=cpp
1105  * @param pen cast=(Pen *)
1106  */
Pen_SetMiterLimit(long pen, float miterLimit)1107 public static final native int Pen_SetMiterLimit(long pen, float miterLimit);
1108 /**
1109  * @method flags=cpp
1110  * @param pen cast=(Pen *)
1111  * @param width cast=(REAL)
1112  */
Pen_SetWidth(long pen, float width)1113 public static final native int Pen_SetWidth(long pen, float width);
1114 /** @method flags=new */
Point_new(int x, int y)1115 public static final native long Point_new(int x, int y);
1116 /** @method flags=delete */
Point_delete(long point)1117 public static final native void Point_delete(long point);
1118 /**
1119  * @method flags=new
1120  * @param hRgn cast=(HRGN)
1121  */
Region_new(long hRgn)1122 public static final native long Region_new(long hRgn);
1123 /**
1124  * @method flags=new
1125  * @param path cast=(GraphicsPath*)
1126  */
Region_newGraphicsPath(long path)1127 public static final native long Region_newGraphicsPath(long path);
1128 /** @method flags=new */
Region_new()1129 public static final native long Region_new();
1130 /** @method flags=delete */
Region_delete(long region)1131 public static final native void Region_delete(long region);
1132 /**
1133  * @method flags=cpp
1134  * @param region cast=(Region *)
1135  * @param graphics cast=(Graphics *)
1136  */
Region_GetHRGN(long region, long graphics)1137 public static final native long Region_GetHRGN(long region, long graphics);
1138 /**
1139  * @method flags=cpp
1140  * @param region cast=(Region *)
1141  * @param graphics cast=(Graphics *)
1142  */
Region_IsInfinite(long region, long graphics)1143 public static final native boolean Region_IsInfinite(long region, long graphics);
1144 /**
1145  * @method flags=new
1146  * @param color cast=(Color)
1147  */
SolidBrush_new(int color)1148 public static final native long SolidBrush_new(int color);
1149 /** @method flags=delete */
SolidBrush_delete(long brush)1150 public static final native void SolidBrush_delete(long brush);
1151 /** @method flags=delete */
StringFormat_delete(long format)1152 public static final native void StringFormat_delete(long format);
1153 /**
1154  * @method flags=cpp
1155  * @param format cast=(StringFormat *)
1156  */
StringFormat_Clone(long format)1157 public static final native long StringFormat_Clone(long format);
1158 /** @method accessor=StringFormat::GenericDefault */
StringFormat_GenericDefault()1159 public static final native long StringFormat_GenericDefault();
1160 /** @method accessor=StringFormat::GenericTypographic */
StringFormat_GenericTypographic()1161 public static final native long StringFormat_GenericTypographic();
1162 /**
1163  * @method flags=cpp
1164  * @param format cast=(StringFormat *)
1165  */
StringFormat_GetFormatFlags(long format)1166 public static final native int StringFormat_GetFormatFlags(long format);
1167 /**
1168  * @method flags=cpp
1169  * @param format cast=(StringFormat *)
1170  * @param hotkeyPrefix cast=(HotkeyPrefix)
1171  */
StringFormat_SetHotkeyPrefix(long format, int hotkeyPrefix)1172 public static final native int StringFormat_SetHotkeyPrefix(long format, int hotkeyPrefix);
1173 /**
1174  * @method flags=cpp
1175  * @param format cast=(StringFormat *)
1176  * @param flags cast=(StringFormatFlags)
1177  */
StringFormat_SetFormatFlags(long format, int flags)1178 public static final native int StringFormat_SetFormatFlags(long format, int flags);
1179 /**
1180  * @method flags=cpp
1181  * @param format cast=(StringFormat *)
1182  */
StringFormat_SetTabStops(long format, float firstTabOffset, int count, float[] tabStops)1183 public static final native int StringFormat_SetTabStops(long format, float firstTabOffset, int count, float[] tabStops);
1184 /**
1185  * @method flags=new
1186  * @param image cast=(Image *)
1187  * @param wrapMode cast=(WrapMode)
1188  */
TextureBrush_new(long image, int wrapMode, float dstX, float dstY, float dstWidth, float dstHeight)1189 public static final native long TextureBrush_new(long image, int wrapMode, float dstX, float dstY, float dstWidth, float dstHeight);
1190 /** @method flags=delete */
TextureBrush_delete(long brush)1191 public static final native void TextureBrush_delete(long brush);
1192 /**
1193  * @method flags=cpp
1194  * @param brush cast=(TextureBrush *)
1195  * @param matrix cast=(Matrix *)
1196  */
TextureBrush_SetTransform(long brush, long matrix)1197 public static final native int TextureBrush_SetTransform(long brush, long matrix);
1198 /**
1199  * @method flags=cpp
1200  * @param brush cast=(TextureBrush *)
1201  */
TextureBrush_ResetTransform(long brush)1202 public static final native int TextureBrush_ResetTransform(long brush);
1203 /**
1204  * @method flags=cpp
1205  * @param brush cast=(TextureBrush *)
1206  * @param order cast=(MatrixOrder)
1207  */
TextureBrush_ScaleTransform(long brush, float sx, float sy, int order)1208 public static final native int TextureBrush_ScaleTransform(long brush, float sx, float sy, int order);
1209 /**
1210  * @method flags=cpp
1211  * @param brush cast=(TextureBrush *)
1212  * @param order cast=(MatrixOrder)
1213  */
TextureBrush_TranslateTransform(long brush, float dx, float dy, int order)1214 public static final native int TextureBrush_TranslateTransform(long brush, float dx, float dy, int order);
1215 }
1216