19
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2007 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 *******************************************************************************/
|
|
11 module dwt.internal.gdip.Gdip;
|
|
12
|
|
13 import dwt.internal.Library;
|
|
14 import dwt.internal.Platform;
|
|
15
|
21
|
16 public struct RectF {
|
|
17 public float X;
|
|
18 public float Y;
|
|
19 public float Width;
|
|
20 public float Height;
|
|
21 }
|
|
22
|
|
23 public struct Rect {
|
|
24 public int X;
|
|
25 public int Y;
|
|
26 public int Width;
|
|
27 public int Height;
|
|
28 }
|
|
29 public struct PointF {
|
|
30 public float X;
|
|
31 public float Y;
|
|
32 }
|
|
33
|
|
34 public struct ColorPalette {
|
|
35 public int Flags;
|
|
36 public int Count;
|
|
37 public int[1] Entries;
|
|
38 }
|
|
39 public struct BitmapData {
|
|
40 public int Width;
|
|
41 public int Height;
|
|
42 public int Stride;
|
|
43 public int PixelFormat;
|
|
44 public void* Scan0;
|
|
45 public int Reserved;
|
|
46 }
|
|
47
|
|
48 struct Matrix{}
|
|
49
|
19
|
50
|
|
51 alias extern(Windows) void function(int level, char *message) DebugEventProc;
|
|
52 struct GdiplusStartupInput {
|
|
53 uint GdiplusVersion;
|
|
54 DebugEventProc DebugEventCallback;
|
|
55 int SuppressBackgroundThread;
|
|
56 int SuppressExternalCodecs;
|
|
57 }
|
|
58 alias extern(Windows) int function(uint* token) NotificationHookProc;
|
|
59 alias extern(Windows) void function(uint* token) NotificationUnhookProc;
|
|
60 struct GdiplusStartupOutput {
|
|
61 NotificationHookProc NotificationHook;
|
|
62 NotificationUnhookProc NotificationUnhook;
|
|
63 };
|
|
64
|
|
65 struct API {
|
|
66 static extern(Windows) int GdiplusStartup(
|
|
67 uint** token,
|
|
68 GdiplusStartupInput *input,
|
|
69 GdiplusStartupOutput *output
|
|
70 );
|
|
71 static extern(Windows) void GdiplusShutdown(
|
|
72 uint** token
|
|
73 );
|
|
74
|
|
75 }
|
|
76
|
|
77
|
|
78 public class Gdip : Platform {
|
|
79
|
|
80 /** GdiPlus constants */
|
|
81 public static const int BrushTypeSolidColor = 0;
|
|
82 public static const int BrushTypeHatchFill = 1;
|
|
83 public static const int BrushTypeTextureFill = 2;
|
|
84 public static const int BrushTypePathGradient = 3;
|
|
85 public static const int BrushTypeLinearGradient = 4;
|
|
86 public static const int ColorAdjustTypeBitmap = 1;
|
|
87 public static const int ColorMatrixFlagsDefault = 0;
|
|
88 public static const int CombineModeReplace = 0;
|
|
89 public static const int CombineModeIntersect = 1;
|
|
90 public static const int CombineModeUnion = 2;
|
|
91 public static const int CombineModeXor = 3;
|
|
92 public static const int CombineModeExclude = 4;
|
|
93 public static const int CombineModeComplement = 5;
|
|
94 public static const int FillModeAlternate = 0;
|
|
95 public static const int FillModeWinding = 1;
|
|
96 public static const int DashCapFlat = 0;
|
|
97 public static const int DashCapRound = 2;
|
|
98 public static const int DashCapTriangle = 3;
|
|
99 public static const int DashStyleSolid = 0;
|
|
100 public static const int DashStyleDash = 1;
|
|
101 public static const int DashStyleDot = 2;
|
|
102 public static const int DashStyleDashDot = 3;
|
|
103 public static const int DashStyleDashDotDot = 4;
|
|
104 public static const int DashStyleCustom = 5;
|
|
105 public static const int FontStyleRegular = 0;
|
|
106 public static const int FontStyleBold = 1;
|
|
107 public static const int FontStyleItalic = 2;
|
|
108 public static const int FontStyleBoldItalic = 3;
|
|
109 public static const int FontStyleUnderline = 4;
|
|
110 public static const int FontStyleStrikeout = 8;
|
|
111 public static const int PaletteFlagsHasAlpha = 0x0001;
|
|
112 public static const int FlushIntentionFlush = 0;
|
|
113 public static const int FlushIntentionSync = 1;
|
|
114 public static const int HotkeyPrefixNone = 0;
|
|
115 public static const int HotkeyPrefixShow = 1;
|
|
116 public static const int HotkeyPrefixHide = 2;
|
|
117 public static const int LineJoinMiter = 0;
|
|
118 public static const int LineJoinBevel = 1;
|
|
119 public static const int LineJoinRound = 2;
|
|
120 public static const int LineCapFlat = 0;
|
|
121 public static const int LineCapSquare = 1;
|
|
122 public static const int LineCapRound = 2;
|
|
123 public static const int MatrixOrderPrepend = 0;
|
|
124 public static const int MatrixOrderAppend = 1;
|
|
125 public static const int QualityModeDefault = 0;
|
|
126 public static const int QualityModeLow = 1;
|
|
127 public static const int QualityModeHigh = 2;
|
|
128 public static const int InterpolationModeDefault = QualityModeDefault;
|
|
129 public static const int InterpolationModeLowQuality = QualityModeLow;
|
|
130 public static const int InterpolationModeHighQuality = QualityModeHigh;
|
|
131 public static const int InterpolationModeBilinear = QualityModeHigh + 1;
|
|
132 public static const int InterpolationModeBicubic = QualityModeHigh + 2;
|
|
133 public static const int InterpolationModeNearestNeighbor = QualityModeHigh + 3;
|
|
134 public static const int InterpolationModeHighQualityBilinear = QualityModeHigh + 4;
|
|
135 public static const int InterpolationModeHighQualityBicubic = QualityModeHigh + 5;
|
|
136 public static const int PathPointTypeStart = 0;
|
|
137 public static const int PathPointTypeLine = 1;
|
|
138 public static const int PathPointTypeBezier = 3;
|
|
139 public static const int PathPointTypePathTypeMask = 0x7;
|
|
140 public static const int PathPointTypePathDashMode = 0x10;
|
|
141 public static const int PathPointTypePathMarker = 0x20;
|
|
142 public static const int PathPointTypeCloseSubpath = 0x80;
|
|
143 public static const int PathPointTypeBezier3 = 3;
|
|
144 public static const int PixelFormatIndexed = 0x00010000;
|
|
145 public static const int PixelFormatGDI = 0x00020000;
|
|
146 public static const int PixelFormatAlpha = 0x00040000;
|
|
147 public static const int PixelFormatPAlpha = 0x00080000;
|
|
148 public static const int PixelFormatExtended = 0x00100000;
|
|
149 public static const int PixelFormatCanonical = 0x00200000;
|
|
150 public static const int PixelFormat1bppIndexed = (1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI);
|
|
151 public static const int PixelFormat4bppIndexed = (2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI);
|
|
152 public static const int PixelFormat8bppIndexed = (3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI);
|
|
153 public static const int PixelFormat16bppGrayScale = (4 | (16 << 8) | PixelFormatExtended);
|
|
154 public static const int PixelFormat16bppRGB555 = (5 | (16 << 8) | PixelFormatGDI);
|
|
155 public static const int PixelFormat16bppRGB565 = (6 | (16 << 8) | PixelFormatGDI);
|
|
156 public static const int PixelFormat16bppARGB1555 = (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI);
|
|
157 public static const int PixelFormat24bppRGB = (8 | (24 << 8) | PixelFormatGDI);
|
|
158 public static const int PixelFormat32bppRGB = (9 | (32 << 8) | PixelFormatGDI);
|
|
159 public static const int PixelFormat32bppARGB = (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical);
|
|
160 public static const int PixelFormat32bppPARGB = (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI);
|
|
161 public static const int PixelFormat48bppRGB = (12 | (48 << 8) | PixelFormatExtended);
|
|
162 public static const int PixelFormat64bppARGB = (13 | (64 << 8) | PixelFormatAlpha | PixelFormatCanonical | PixelFormatExtended);
|
|
163 public static const int PixelFormat64bppPARGB = (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended);
|
|
164 public static const int PixelFormatMax = 15;
|
|
165 public static const int PixelOffsetModeNone = QualityModeHigh + 1;
|
|
166 public static const int PixelOffsetModeHalf = QualityModeHigh + 2;
|
|
167 public static const int SmoothingModeDefault = QualityModeDefault;
|
|
168 public static const int SmoothingModeHighSpeed = QualityModeLow;
|
|
169 public static const int SmoothingModeHighQuality = QualityModeHigh;
|
|
170 public static const int SmoothingModeNone = 3;
|
|
171 public static const int SmoothingModeAntiAlias8x4 = 4;
|
|
172 public static const int SmoothingModeAntiAlias = SmoothingModeAntiAlias8x4;
|
|
173 public static const int SmoothingModeAntiAlias8x8 = 5;
|
|
174 public static const int StringFormatFlagsDirectionRightToLeft = 0x00000001;
|
|
175 public static const int StringFormatFlagsDirectionVertical = 0x00000002;
|
|
176 public static const int StringFormatFlagsNoFitBlackBox = 0x00000004;
|
|
177 public static const int StringFormatFlagsDisplayFormatControl = 0x00000020;
|
|
178 public static const int StringFormatFlagsNoFontFallback = 0x00000400;
|
|
179 public static const int StringFormatFlagsMeasureTrailingSpaces = 0x00000800;
|
|
180 public static const int StringFormatFlagsNoWrap = 0x00001000;
|
|
181 public static const int StringFormatFlagsLineLimit = 0x00002000;
|
|
182 public static const int StringFormatFlagsNoClip = 0x00004000;
|
|
183 public static const int TextRenderingHintSystemDefault = 0;
|
|
184 public static const int TextRenderingHintSingleBitPerPixelGridFit = 1;
|
|
185 public static const int TextRenderingHintSingleBitPerPixel = 2;
|
|
186 public static const int TextRenderingHintAntiAliasGridFit = 3;
|
|
187 public static const int TextRenderingHintAntiAlias = 4;
|
|
188 public static const int TextRenderingHintClearTypeGridFit = 5;
|
|
189 public static const int UnitPixel = 2;
|
|
190 public static const int WrapModeTile = 0;
|
|
191 public static const int WrapModeTileFlipX = 1;
|
|
192 public static const int WrapModeTileFlipY = 2;
|
|
193 public static const int WrapModeTileFlipXY = 3;
|
|
194 public static const int WrapModeClamp = 4;
|
|
195
|
|
196
|
|
197
|
|
198 public alias API.GdiplusStartup GdiplusStartup;
|
|
199 public alias API.GdiplusShutdown GdiplusShutdown;
|
|
200
|
21
|
201 public static extern(Windows) Matrix* Matrix_new(float m11, float m12, float m21, float m22, float dx, float dy);
|
|
202 public static extern(Windows) void Matrix_delete(Matrix*);
|
|
203 public static extern(Windows) int Matrix_GetElements(Matrix*,float* m);
|
|
204 public static extern(Windows) int Matrix_Invert(Matrix*);
|
|
205 public static extern(Windows) int Matrix_IsIdentity(Matrix*);
|
|
206 public static extern(Windows) int Matrix_Multiply(Matrix*,Matrix*,int);
|
|
207 public static extern(Windows) int Matrix_Rotate(Matrix*,float,int);
|
|
208 public static extern(Windows) int Matrix_Scale(Matrix*,float,float,int);
|
|
209 public static extern(Windows) int Matrix_SetElements(Matrix*,float m11, float m12, float m21, float m22, float dx, float dy);
|
|
210 public static extern(Windows) int Matrix_TransformPoints(Matrix*,PointF*, int);
|
|
211 public static extern(Windows) int Matrix_Translate(Matrix*,float, float, float);
|
19
|
212
|
|
213 /++
|
|
214 /** 64 bit */
|
|
215 public static final native int ColorPalette_sizeof();
|
|
216 public static final native int GdiplusStartupInput_sizeof();
|
|
217
|
|
218 /** GdiPlus natives */
|
|
219 public static final native int GdiplusStartup(int /*long*/[] token, GdiplusStartupInput input, int /*long*/ output);
|
|
220 public static final native void GdiplusShutdown(int /*long*/ token);
|
|
221 public static final native int /*long*/ Bitmap_new(int /*long*/ hbm, int /*long*/ hpal);
|
|
222 public static final native int /*long*/ Bitmap_new(int /*long*/ hicon);
|
|
223 public static final native int /*long*/ Bitmap_new(int width, int height, int stride, int format, int /*long*/ scan0);
|
|
224 public static final native int /*long*/ Bitmap_new(char[] filename, bool useIcm);
|
|
225 public static final native void Bitmap_delete(int /*long*/ bitmap);
|
|
226 public static final native int Bitmap_GetHBITMAP(int /*long*/ bitmap, int /*long*/ colorBackground, int /*long*/[] hbmReturn);
|
|
227 public static final native int Bitmap_GetHICON(int /*long*/ bitmap, int /*long*/[] hicon);
|
|
228 public static final native int /*long*/ BitmapData_new();
|
|
229 public static final native void BitmapData_delete(int /*long*/ bitmapData);
|
|
230 public static final native int Bitmap_LockBits(int /*long*/ bitmap, int /*long*/ rect, int flags, int pixelFormat, int /*long*/ lockedBitmapData);
|
|
231 public static final native int Bitmap_UnlockBits(int /*long*/ bitmap, int /*long*/ lockedBitmapData);
|
|
232 public static final native int /*long*/ Brush_Clone(int /*long*/ brush);
|
|
233 public static final native int Brush_GetType(int /*long*/ brush);
|
|
234 public static final native int /*long*/ Color_new(int argb);
|
|
235 public static final native void Color_delete(int /*long*/ color);
|
|
236 public static final native int /*long*/ Font_new(int /*long*/ hdc, int /*long*/ hfont);
|
|
237 public static final native int /*long*/ Font_new(char[] familyName, float emSize, int style, int unit, int /*long*/ fontCollection);
|
|
238 public static final native void Font_delete(int /*long*/ font);
|
|
239 public static final native int Font_GetFamily(int /*long*/ font, int /*long*/ family);
|
|
240 public static final native float Font_GetSize(int /*long*/ font);
|
|
241 public static final native int Font_GetStyle(int /*long*/ font);
|
|
242 public static final native bool Font_IsAvailable(int /*long*/ font);
|
|
243 public static final native int /*long*/ FontFamily_new();
|
|
244 public static final native void FontFamily_delete(int /*long*/ family);
|
|
245 public static final native int FontFamily_GetFamilyName(int /*long*/ family, char[] name, char language);
|
|
246 public static final native int /*long*/ Graphics_new(int /*long*/ hdc);
|
|
247 public static final native void Graphics_delete(int /*long*/ graphics);
|
|
248 public static final native int Graphics_DrawArc(int /*long*/ graphics, int /*long*/ pen, int x, int y, int width, int height, float startAngle, float sweepAngle);
|
|
249 public static final native int Graphics_DrawEllipse(int /*long*/ graphics, int /*long*/ pen, int x, int y, int width, int height);
|
|
250 public static final native int Graphics_DrawImage(int /*long*/ graphics, int /*long*/ image, int x, int y);
|
|
251 public static final native int Graphics_DrawImage(int /*long*/ graphics, int /*long*/ image, Rect destRect, int srcx, int srcy, int srcwidth, int srcheight, int srcUnit, int /*long*/ imageAttributes, int /*long*/ callback, int /*long*/ callbackData);
|
|
252 public static final native int Graphics_DrawLine(int /*long*/ graphics, int /*long*/ pen, int x1, int y1, int x2, int y2);
|
|
253 public static final native int Graphics_DrawLines(int /*long*/ graphics, int /*long*/ pen, int[] points, int count);
|
|
254 public static final native int Graphics_DrawPath(int /*long*/ graphics, int /*long*/ pen, int /*long*/ path);
|
|
255 public static final native int Graphics_DrawPolygon(int /*long*/ graphics, int /*long*/ pen, int[] points, int count);
|
|
256 public static final native int Graphics_DrawRectangle(int /*long*/ graphics, int /*long*/ pen, int x, int y, int width, int height);
|
|
257 public static final native int Graphics_DrawString(int /*long*/ graphics, char[] string, int length, int /*long*/ font, PointF origin, int /*long*/ brush);
|
|
258 public static final native int Graphics_DrawString(int /*long*/ graphics, char[] string, int length, int /*long*/ font, PointF origin, int /*long*/ format, int /*long*/ brush);
|
|
259 public static final native int Graphics_FillEllipse(int /*long*/ graphics, int /*long*/ brush, int x, int y, int width, int height);
|
|
260 public static final native int Graphics_FillPath(int /*long*/ graphics, int /*long*/ brush, int /*long*/ path);
|
|
261 public static final native void Graphics_Flush(int /*long*/ graphics, int intention);
|
|
262 public static final native int Graphics_FillPie(int /*long*/ graphics, int /*long*/ brush, int x, int y, int width, int height, float startAngle, float sweepAngle);
|
|
263 public static final native int Graphics_FillPolygon(int /*long*/ graphics, int /*long*/ brush, int[] points, int count, int fillMode);
|
|
264 public static final native int Graphics_FillRectangle(int /*long*/ graphics, int /*long*/ brush, int x, int y, int width, int height);
|
|
265 public static final native int Graphics_GetClipBounds(int /*long*/ graphics, RectF rect);
|
|
266 public static final native int Graphics_GetClipBounds(int /*long*/ graphics, Rect rect);
|
|
267 public static final native int Graphics_GetClip(int /*long*/ graphics, int /*long*/ region);
|
|
268 public static final native int /*long*/ Graphics_GetHDC(int /*long*/ graphics);
|
|
269 public static final native void Graphics_ReleaseHDC(int /*long*/ graphics, int /*long*/ hdc);
|
|
270 public static final native int Graphics_GetInterpolationMode(int /*long*/ graphics);
|
|
271 public static final native int Graphics_GetSmoothingMode(int /*long*/ graphics);
|
|
272 public static final native int Graphics_GetTextRenderingHint(int /*long*/ graphics);
|
|
273 public static final native int Graphics_GetTransform(int /*long*/ graphics, int /*long*/ matrix);
|
|
274 public static final native int Graphics_GetVisibleClipBounds(int /*long*/ graphics, Rect rect);
|
|
275 public static final native int Graphics_MeasureString(int /*long*/ graphics, char[] string, int length, int /*long*/ font, PointF origin, RectF boundingBox);
|
|
276 public static final native int Graphics_MeasureString(int /*long*/ graphics, char[] string, int length, int /*long*/ font, PointF origin, int /*long*/ format, RectF boundingBox);
|
|
277 public static final native int Graphics_ResetClip(int /*long*/ graphics);
|
|
278 public static final native int Graphics_Restore(int /*long*/ graphics, int gstate);
|
|
279 public static final native int Graphics_Save(int /*long*/ graphics);
|
|
280 public static final native int Graphics_ScaleTransform(int /*long*/ graphics, float sx, float sy, int order);
|
|
281 public static final native int Graphics_SetClip(int /*long*/ graphics, int /*long*/ hrgn, int combineMode);
|
|
282 public static final native int Graphics_SetClip(int /*long*/ graphics, int /*long*/ path);
|
|
283 public static final native int Graphics_SetClip(int /*long*/ graphics, Rect rect, int combineMode);
|
|
284 public static final native int Graphics_SetCompositingQuality(int /*long*/ graphics, int compositingQuality);
|
|
285 public static final native int Graphics_SetPageUnit(int /*long*/ graphics, int unit);
|
|
286 public static final native int Graphics_SetPixelOffsetMode(int /*long*/ graphics, int pixelOffsetMode);
|
|
287 public static final native int Graphics_SetSmoothingMode(int /*long*/ graphics, int smoothingMode);
|
|
288 public static final native int Graphics_SetTransform(int /*long*/ graphics, int /*long*/ matrix);
|
|
289 public static final native int Graphics_SetInterpolationMode(int /*long*/ graphics, int mode);
|
|
290 public static final native int Graphics_SetTextRenderingHint(int /*long*/ graphics, int mode);
|
|
291 public static final native int Graphics_TranslateTransform(int /*long*/ graphics, float dx, float dy, int order);
|
|
292 public static final native int /*long*/ GraphicsPath_new(int fillMode);
|
|
293 public static final native int /*long*/ GraphicsPath_new(int[] points, byte[] types, int count, int fillMode);
|
|
294 public static final native void GraphicsPath_delete(int /*long*/ path);
|
|
295 public static final native int GraphicsPath_AddArc(int /*long*/ path, float x, float y, float width, float height, float startAngle, float sweepAngle);
|
|
296 public static final native int GraphicsPath_AddBezier(int /*long*/ path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
|
|
297 public static final native int GraphicsPath_AddLine(int /*long*/ path, float x1, float y1, float x2, float y2);
|
|
298 public static final native int GraphicsPath_AddPath(int /*long*/ path, int /*long*/ addingPath, bool connect);
|
|
299 public static final native int GraphicsPath_AddRectangle(int /*long*/ path, RectF rect);
|
|
300 public static final native int GraphicsPath_AddString(int /*long*/ path, char[] string, int length, int /*long*/ family, int style, float emSize, PointF origin, int /*long*/ format);
|
|
301 public static final native int GraphicsPath_CloseFigure(int /*long*/ path);
|
|
302 public static final native int GraphicsPath_Flatten(int /*long*/ path, int /*long*/ matrix, float flatness);
|
|
303 public static final native int GraphicsPath_GetBounds(int /*long*/ path, RectF bounds, int /*long*/ matrix, int /*long*/ pen);
|
|
304 public static final native int GraphicsPath_GetLastPoint(int /*long*/ path, PointF lastPoint);
|
|
305 public static final native int GraphicsPath_GetPathPoints(int /*long*/ path, float[] points, int count);
|
|
306 public static final native int GraphicsPath_GetPathTypes(int /*long*/ path, byte[] types, int count);
|
|
307 public static final native int GraphicsPath_GetPointCount(int /*long*/ path);
|
|
308 public static final native bool GraphicsPath_IsOutlineVisible(int /*long*/ path, float x, float y, int /*long*/ pen, int /*long*/ g);
|
|
309 public static final native bool GraphicsPath_IsVisible(int /*long*/ path, float x, float y, int /*long*/ g);
|
|
310 public static final native int GraphicsPath_SetFillMode(int /*long*/ path, int fillmode);
|
|
311 public static final native int GraphicsPath_StartFigure(int /*long*/ path);
|
|
312 public static final native int GraphicsPath_Transform(int /*long*/ path, int /*long*/ matrix);
|
|
313 public static final native int /*long*/ HatchBrush_new(int hatchStyle, int /*long*/ foreColor, int /*long*/ backColor);
|
|
314 public static final native int Image_GetLastStatus(int /*long*/ image);
|
|
315 public static final native int Image_GetPixelFormat(int /*long*/ image);
|
|
316 public static final native int Image_GetWidth(int /*long*/ image);
|
|
317 public static final native int Image_GetHeight(int /*long*/ image);
|
|
318 public static final native int Image_GetPalette(int /*long*/ image, int /*long*/ palette, int size);
|
|
319 public static final native int Image_GetPaletteSize(int /*long*/ image);
|
|
320 public static final native int /*long*/ ImageAttributes_new();
|
|
321 public static final native void ImageAttributes_delete(int /*long*/ attrib);
|
|
322 public static final native int ImageAttributes_SetWrapMode(int /*long*/ attrib, int wrap);
|
|
323 public static final native int ImageAttributes_SetColorMatrix(int /*long*/ attrib, float[] matrix, int mode, int type);
|
|
324 public static final native void HatchBrush_delete(int /*long*/ brush);
|
|
325 public static final native int /*long*/ LinearGradientBrush_new(PointF point1, PointF point2, int /*long*/ color1, int /*long*/ color2);
|
|
326 public static final native void LinearGradientBrush_delete(int /*long*/ brush);
|
|
327 public static final native int LinearGradientBrush_SetInterpolationColors(int /*long*/ brush, int /*long*/[] presetColors, float[] blendPositions, int count);
|
|
328 public static final native int LinearGradientBrush_SetWrapMode(int /*long*/ brush, int wrapMode);
|
|
329 public static final native int LinearGradientBrush_ResetTransform(int /*long*/ brush);
|
|
330 public static final native int LinearGradientBrush_ScaleTransform(int /*long*/ brush, float sx, float sy, int order);
|
|
331 public static final native int LinearGradientBrush_TranslateTransform(int /*long*/ brush, float dx, float dy, int order);
|
|
332 public static final native int /*long*/ Matrix_new(float m11, float m12, float m21, float m22, float dx, float dy);
|
|
333 public static final native void Matrix_delete(int /*long*/ matrix);
|
|
334 public static final native int Matrix_GetElements(int /*long*/ matrix, float[] m);
|
|
335 public static final native int Matrix_Invert(int /*long*/ matrix);
|
|
336 public static final native bool Matrix_IsIdentity(int /*long*/ matrix);
|
|
337 public static final native int Matrix_Multiply(int /*long*/ matrix, int /*long*/ matrix1, int order);
|
|
338 public static final native int Matrix_Rotate(int /*long*/ matrix, float angle, int order);
|
|
339 public static final native int Matrix_Scale(int /*long*/ matrix, float scaleX, float scaleY, int order);
|
|
340 public static final native int Matrix_Shear(int /*long*/ matrix, float shearX, float shearY, int order);
|
|
341 public static final native int Matrix_TransformPoints(int /*long*/ matrix, PointF pts, int count);
|
|
342 public static final native int Matrix_TransformPoints(int /*long*/ matrix, float[] pts, int count);
|
|
343 public static final native int Matrix_Translate(int /*long*/ matrix, float offsetX, float offsetY, int order);
|
|
344 public static final native int Matrix_SetElements(int /*long*/ matrix, float m11, float m12, float m21, float m22, float dx, float dy);
|
|
345 public static final native void MoveMemory(ColorPalette Destination, int /*long*/ SourcePtr, int Length);
|
|
346 public static final native void MoveMemory(BitmapData Destination, int /*long*/ SourcePtr);
|
|
347 public static final native int /*long*/ PathGradientBrush_new(int /*long*/ path);
|
|
348 public static final native void PathGradientBrush_delete(int /*long*/ brush);
|
|
349 public static final native int PathGradientBrush_SetCenterColor(int /*long*/ brush, int /*long*/ color);
|
|
350 public static final native int PathGradientBrush_SetCenterPoint(int /*long*/ brush, PointF pt);
|
|
351 public static final native int PathGradientBrush_SetSurroundColors(int /*long*/ brush, int /*long*/[] colors, int[] count);
|
|
352 public static final native int PathGradientBrush_SetGraphicsPath(int /*long*/ brush, int /*long*/ path);
|
|
353 public static final native int /*long*/ Pen_new(int /*long*/ brush, float width);
|
|
354 public static final native void Pen_delete(int /*long*/ pen);
|
|
355 public static final native int /*long*/ Pen_GetBrush(int /*long*/ pen);
|
|
356 public static final native int Pen_SetBrush(int /*long*/ pen, int /*long*/ brush);
|
|
357 public static final native int Pen_SetDashOffset(int /*long*/ pen, float dashOffset);
|
|
358 public static final native int Pen_SetDashPattern(int /*long*/ pen, float[] dashArray, int count);
|
|
359 public static final native int Pen_SetDashStyle(int /*long*/ pen, int dashStyle);
|
|
360 public static final native int Pen_SetLineCap(int /*long*/ pen, int startCap, int endCap, int dashCap);
|
|
361 public static final native int Pen_SetLineJoin(int /*long*/ pen, int lineJoin);
|
|
362 public static final native int Pen_SetMiterLimit(int /*long*/ pen, float miterLimit);
|
|
363 public static final native int Pen_SetWidth(int /*long*/ pen, float width);
|
|
364 public static final native int /*long*/ Point_new(int x, int y);
|
|
365 public static final native void Point_delete(int /*long*/ point);
|
|
366 public static final native int /*long*/ Region_new(int /*long*/ hRgn);
|
|
367 public static final native int /*long*/ Region_new();
|
|
368 public static final native void Region_delete(int /*long*/ region);
|
|
369 public static final native int /*long*/ Region_GetHRGN(int /*long*/ region, int /*long*/ graphics);
|
|
370 public static final native bool Region_IsInfinite(int /*long*/ region, int /*long*/ graphics);
|
|
371 public static final native int /*long*/ SolidBrush_new(int /*long*/ color);
|
|
372 public static final native void SolidBrush_delete(int /*long*/ brush);
|
|
373 public static final native void StringFormat_delete(int /*long*/ format);
|
|
374 public static final native int /*long*/ StringFormat_Clone(int /*long*/ format);
|
|
375 public static final native int /*long*/ StringFormat_GenericDefault();
|
|
376 public static final native int /*long*/ StringFormat_GenericTypographic();
|
|
377 public static final native int StringFormat_GetFormatFlags(int /*long*/ format);
|
|
378 public static final native int StringFormat_SetHotkeyPrefix(int /*long*/ format, int hotkeyPrefix);
|
|
379 public static final native int StringFormat_SetFormatFlags(int /*long*/ format, int flags);
|
|
380 public static final native int StringFormat_SetTabStops(int /*long*/ format, float firstTabOffset, int count, float[] tabStops);
|
|
381 public static final native int /*long*/ TextureBrush_new(int /*long*/ image, int wrapMode, float dstX, float dstY, float dstWidth, float dstHeight);
|
|
382 public static final native void TextureBrush_delete(int /*long*/ brush);
|
|
383 public static final native int TextureBrush_SetTransform(int /*long*/ brush, int /*long*/ matrix);
|
|
384 public static final native int TextureBrush_ResetTransform(int /*long*/ brush);
|
|
385 public static final native int TextureBrush_ScaleTransform(int /*long*/ brush, float sx, float sy, int order);
|
|
386 public static final native int TextureBrush_TranslateTransform(int /*long*/ brush, float dx, float dy, int order);
|
|
387 ++/
|
|
388 }
|