FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kGraphic.h
Go to the documentation of this file.
1 
8 #ifndef K_FIRESYNC_GRAPHIC_H
9 #define K_FIRESYNC_GRAPHIC_H
10 
11 #include <kFireSync/Data/kColor.h>
12 
19 
26 
33 
40 
47 //typedef kObject kGraphic; --forward-declared in kFsDef.x.h
48 
49 #include <kFireSync/Data/kGraphic.x.h>
50 
59 kFsFx(kStatus) kGraphic_Construct(kGraphic* graphic, kObject allocator);
60 
70 
80 kFsFx(kGraphicPen) kGraphic_AddPen(kGraphic graphic, kColor color, k32f width);
81 
92 kFsFx(kGraphicFont) kGraphic_AddFont(kGraphic graphic, kFontFamily family, kFontStyle style, k32f height);
93 
103 kFsFx(kGraphicMarker) kGraphic_AddMarker(kGraphic graphic, kMarkerShape shape, k32f size);
104 
117 kFsFx(kPoint32s*) kGraphic_DrawPolyline32s(kGraphic graphic, kGraphicPen pen, const kPoint32s* points, kSize count);
118 
131 kFsFx(kPoint32f*) kGraphic_DrawPolyline32f(kGraphic graphic, kGraphicPen pen, const kPoint32f* points, kSize count);
132 
146 kFsFx(kPoint32s*) kGraphic_DrawPolygon32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kPoint32s* points, kSize count);
147 
161 kFsFx(kPoint32f*) kGraphic_DrawPolygon32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kPoint32f* points, kSize count);
162 
176 kFsFx(kRect32s*) kGraphic_DrawRects32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32s* rects, kSize count);
177 
191 kFsFx(kRect32f*) kGraphic_DrawRects32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32f* rects, kSize count);
192 
206 kFsFx(kRect32s*) kGraphic_DrawEllipses32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32s* rects, kSize count);
207 
221 kFsFx(kRect32f*) kGraphic_DrawEllipses32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32f* rects, kSize count);
222 
237 
252 
267 kFsFx(kPoint32s*) kGraphic_DrawPoints32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, kGraphicMarker marker, const kPoint32s* points, kSize count);
268 
283 kFsFx(kPoint32f*) kGraphic_DrawPoints32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, kGraphicMarker marker, const kPoint32f* points, kSize count);
284 
298 kFsFx(kChar*) kGraphic_DrawString32s(kGraphic graphic, kGraphicFont font, kGraphicBrush brush, kPoint32s location, k32s angle, kAlignment alignment, const kChar* text);
299 
313 kFsFx(kChar*) kGraphic_DrawString32f(kGraphic graphic, kGraphicFont font, kGraphicBrush brush, kPoint32f location, k32f angle, kAlignment alignment, const kChar* text);
314 
326 kFsFx(void*) kGraphic_DrawImage32s(kGraphic graphic, kImage image, kRect32s dest);
327 
339 kFsFx(void*) kGraphic_DrawImage32f(kGraphic graphic, kImage image, kRect32f dest);
340 
341 #endif
kRotatedRect32s * kGraphic_DrawRotatedRects32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRotatedRect32s *rects, kSize count)
Draws a set of rotated rectangles.
kStatus kGraphic_Construct(kGraphic *graphic, kObject allocator)
Constructs a graphic object.
void * kGraphic_DrawImage32f(kGraphic graphic, kImage image, kRect32f dest)
Draws an image.
kPoint32f * kGraphic_DrawPolyline32f(kGraphic graphic, kGraphicPen pen, const kPoint32f *points, kSize count)
Draws connected line segments.
kGraphicFont kGraphic_AddFont(kGraphic graphic, kFontFamily family, kFontStyle style, k32f height)
Adds a font that can be used for drawing operations.
Represents alignment within a 3x3 grid.
kPoint32s * kGraphic_DrawPolygon32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kPoint32s *points, kSize count)
Draws a polygon.
Represents font family values.
Represents a collection of vector graphics.
kPointer kGraphicBrush
Represents a graphic brush.
Definition: kGraphic.h:18
Color as an integer with 8-bit alpha, red, green, and blue components.
kChar * kGraphic_DrawString32s(kGraphic graphic, kGraphicFont font, kGraphicBrush brush, kPoint32s location, k32s angle, kAlignment alignment, const kChar *text)
Draws a string.
kRect32s * kGraphic_DrawRects32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32s *rects, kSize count)
Draws a set of rectangles.
kGraphicPen kGraphic_AddPen(kGraphic graphic, kColor color, k32f width)
Adds a pen that can be used for drawing operations.
kPointer kGraphicFont
Represents a graphic font.
Definition: kGraphic.h:32
kPointer kGraphicPen
Represents a graphic pen.
Definition: kGraphic.h:25
kGraphicBrush kGraphic_AddSolidBrush(kGraphic graphic, kColor color)
Adds a solid brush that can be used for drawing operations.
kPoint32f * kGraphic_DrawPolygon32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kPoint32f *points, kSize count)
Draws a polygon.
void * kGraphic_DrawImage32s(kGraphic graphic, kImage image, kRect32s dest)
Draws an image.
kPointer kGraphicMarker
Represents a graphic marker.
Definition: kGraphic.h:39
Represents font style values.
kRect32s * kGraphic_DrawEllipses32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32s *rects, kSize count)
Draws a set of ellipses.
kPoint32s * kGraphic_DrawPoints32s(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, kGraphicMarker marker, const kPoint32s *points, kSize count)
Draws a set of points using a pre-define shape.
kChar * kGraphic_DrawString32f(kGraphic graphic, kGraphicFont font, kGraphicBrush brush, kPoint32f location, k32f angle, kAlignment alignment, const kChar *text)
Draws a string.
kRect32f * kGraphic_DrawEllipses32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32f *rects, kSize count)
Draws a set of ellipses.
kRotatedRect32f * kGraphic_DrawRotatedRects32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRotatedRect32f *rects, kSize count)
Draws a set of rotated rectangles.
Graphic marker shape enumeration.
kPoint32s * kGraphic_DrawPolyline32s(kGraphic graphic, kGraphicPen pen, const kPoint32s *points, kSize count)
Draws connected line segments.
kPoint32f * kGraphic_DrawPoints32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, kGraphicMarker marker, const kPoint32f *points, kSize count)
Draws a set of points using a pre-define shape.
kGraphicMarker kGraphic_AddMarker(kGraphic graphic, kMarkerShape shape, k32f size)
Adds a marker shape that can be used for drawing operations.
kRect32f * kGraphic_DrawRects32f(kGraphic graphic, kGraphicPen pen, kGraphicBrush brush, const kRect32f *rects, kSize count)
Draws a set of rectangles.
Declares the kColor type.