0 | {- Tian Z (ecburx@burx.vip) -}
2 | ||| Data / Types
7 | {- Types -}
9 | ||| A rectangle used to determine an area.
13 | ||| @ x X coordinate of the start point.
15 | ||| @ y Y coordinate of the start point.
17 | ||| @ w The width of the rectangle area.
19 | ||| @ h The height of the rectangle area.
22 | ||| A coordinate used to determine the position.
26 | ||| @ x X coordinate of the point.
28 | ||| @ y Y coordinate of the point.
31 | {- Pinter Types -}
33 | ||| Surface.
34 | ||| A structure that contains a collection of pixels used in software blitting.
38 | ||| A wrapper of SDL_Surface pointer.
39 | ||| @ ptr The C pointer of a SDL_Surface. You should not directly operate this pointer.
42 | ||| Window.
46 | ||| A wrapper of SDL_Window pointer.
47 | ||| @ ptr The C pointer of a SDL_Window. You should not directly operate this pointer.
50 | ||| Renderer.
51 | ||| A 2D rendering context for a window.
55 | ||| A wrapper of SDL_Renderer pointer.
56 | ||| @ ptr The C pointer of a SDL_Renderer. You should not directly operate this pointer.
59 | ||| Texture.
60 | ||| A structure that contains an efficient, driver-specific representation of pixel data.
64 | ||| A wrapper of SDL_Texture pointer.
65 | ||| @ ptr The C pointer of a SDL_Texture. You should not directly operate this pointer.
68 | ||| Event.
69 | ||| A union that contains structures for the different event types.
73 | ||| A wrapper of SDL_Event pointer.
74 | ||| @ ptr The C pointer of a SDL_Event. You should not directly operate this pointer.
77 | {- Datas -}
79 | ||| Describes how IdrisGL should display its output.
85 | FullWindow
87 | ||| Font styles.
91 | ||| FreeType hinter settings.
95 | ||| Flip settings for SDL bindings.
96 | ||| Instead you should avoid to use SDL bindings.
100 | ||| 2D Picture.
103 | ||| A blank picture, with nothing in it.
105 | ||| A picture consisting of several others.
106 | ||| @ pics Other pictures.
107 | Pictures
110 | ||| A picture rotated clockwise by the given angle (in degrees) and given center.
111 | ||| @ angle Rotation angle.
112 | ||| @ center Rotation center.
113 | ||| @ pic The picture to be rotated.
114 | Rotate
120 | {-
121 | Images.
122 | -}
124 | ||| A bitmap image.
125 | ||| @ path The path of the bitmap.
126 | ||| @ rect The size and position of placed bitmap.
127 | Bitmap
131 | ||| An image in other format (PNG/JPG/WEBP/TIF).
132 | ||| @ path The path of the image.
133 | ||| @ rect The size and position of placed image.
134 | Image
139 | {-
140 | Shapes.
141 | -}
143 | ||| A pixel at given coordinate.
144 | ||| @ position The position of the pixel.
145 | ||| @ color The color of the pixel.
146 | Pixel
150 | ||| A thick line with given thickness.
151 | ||| @ start The start position.
152 | ||| @ end The end position.
153 | ||| @ color The color of line.
154 | ||| @ thickness The thickness of line.
155 | ThickLine
161 | ||| A line.
162 | ||| @ start The start position.
163 | ||| @ end The end position.
164 | ||| @ color The color of line.
165 | Line
171 | {-
172 | Rectangle
173 | -}
175 | ||| A rectangle.
176 | ||| @ rect The size of position of the rectangle.
177 | ||| @ color The color of the rectangle.
178 | ||| @ filling True if fill the rectangle.
179 | Rectangle
184 | ||| A rounded-corner rectangle.
185 | ||| @ rect The size of position of the rectangle.
186 | ||| @ color The color of the rectangle.
187 | ||| @ filling True if fill the rectangle.
188 | ||| @ radius The radius of the corner arc.
189 | R_Rectangle
196 | {-
197 | Circle
198 | -}
200 | ||| A circle.
201 | ||| @ center The center of the circle.
202 | ||| @ color The color of the circle.
203 | ||| @ filling True if fill the circle.
204 | ||| @ radius The radius of the circle.
205 | Circle
211 | ||| A circle with given thickness.
212 | ||| @ center The center of the circle.
213 | ||| @ color The color of the circle.
214 | ||| @ filling True if fill the circle.
215 | ||| @ radius The radius of the circle.
216 | ||| @ thickness The thickness of the drawing line.
217 | ThickCircle
224 | {-
225 | Misc.
226 | -}
228 | ||| A circular arc drawn counter-clockwise between two angles (in degrees).
229 | ||| @ center The center of the arc.
230 | ||| @ color The color of drawing line.
231 | ||| @ radius The radius of the arc.
232 | ||| @ start Starting radius in degrees of the arc. 0 degrees is down, increasing counterclockwise.
233 | ||| @ end Ending radius in degrees of the arc. 0 degrees is down, increasing counterclockwise.
234 | Arc
241 | ||| A pie (outline) drawn counter-clockwise between two angles (in degrees).
242 | ||| @ center The center of the pie.
243 | ||| @ color The color of drawing line.
244 | ||| @ radius The radius of the pie.
245 | ||| @ start Starting radius in degrees of the arc. 0 degrees is down, increasing counterclockwise.
246 | ||| @ end Ending radius in degrees of the arc. 0 degrees is down, increasing counterclockwise.
247 | Pie
255 | ||| An ellipse.
256 | ||| @ center The center of the ellipse.
257 | ||| @ rx Horizontal radius in pixels of the ellipse.
258 | ||| @ ry Vertical radius in pixels of the ellipse.
259 | ||| @ color The color of drawing line.
260 | ||| @ filling True if fill the ellipse.
261 | Ellipse
268 | ||| A trigon.
269 | ||| @ point1 The first point.
270 | ||| @ point2 The second point.
271 | ||| @ point3 The third point.
272 | ||| @ color The color of drawing line.
273 | ||| @ filling True if fill the trigon.
274 | Trigon
281 | ||| A polygon.
282 | ||| @ points A list of points.
283 | ||| @ color The color of drawing line.
284 | ||| @ filling True if fill the trigon.
285 | Polygon
291 | {-
292 | Text
293 | -}
295 | ||| Blended text with default settings.
296 | ||| @ text Text.
297 | ||| @ size Font size.
298 | ||| @ font Path of font file.
299 | ||| @ pos Position of text.
300 | ||| @ color The color of text.
301 | Text
308 | ||| Solid text.
309 | ||| @ text Text.
310 | ||| @ size Font size.
311 | ||| @ font Path of font file.
312 | ||| @ pos Position of text.
313 | ||| @ color The color of text.
314 | ||| @ style Font style.
315 | ||| @ hinting Hinting.
316 | ||| @ kerning Kerning.
317 | SolidText
327 | ||| Blended text.
328 | ||| @ text Text.
329 | ||| @ size Font size.
330 | ||| @ font Path of font file.
331 | ||| @ pos Position of text.
332 | ||| @ color The color of text.
333 | ||| @ style Font style.
334 | ||| @ hinting Hinting.
335 | ||| @ kerning Kerning.
336 | BlendedText
346 | ||| Shaded text. (Blended text with background color)
347 | ||| @ text Text.
348 | ||| @ size Font size.
349 | ||| @ font Path of font file.
350 | ||| @ pos Position of text.
351 | ||| @ color The color of text.
352 | ||| @ bgColor The background color.
353 | ||| @ style Font style.
354 | ||| @ hinting Hinting.
355 | ||| @ kerning Kerning.
356 | ShadedText