Difference between revisions of "API Panel.Graphics"
From Flowcode Help
Jump to navigationJump to search (XML import API auto-gen) |
(XML import) |
||
| Line 2: | Line 2: | ||
Direct drawing routines for a single frame | Direct drawing routines for a single frame | ||
| − | ===Functions provided for this class | + | ==Sub-classes provided for this class== |
| − | {||-|[[API Panel.Graphics.Redraw|Redraw]]|Sends a redraw request to the given component|-|[[API Panel.Graphics.SetColor|SetColor]]|Sets the draw colour for and subsequent graphics objects|-|[[API Panel.Graphics.SetColorRGB|SetColorRGB]]|Sets the draw colour for and subsequent graphics objects|-|[[API Panel.Graphics.SetTextFont|SetTextFont]]|Sets the text font for subsequent text objects|-|[[API Panel.Graphics.SetTextScale|SetTextScale]]|Sets the text scale for subsequent text objects|-|[[API Panel.Graphics.DrawCreate|DrawCreate]]|Creates a drawing area on a shape|-|[[API Panel.Graphics.DrawBegin|DrawBegin]]|Begins drawing on a given shape|-|[[API Panel.Graphics.DrawEnd|DrawEnd]]|Ends drawing started with DrawBegin()|-|[[API Panel.Graphics.DrawDelete|DrawDelete]]|Deletes a drawing area for a shape|-|[[API Panel.Graphics.DrawText|DrawText]]|Draws a line of text texture|-|[[API Panel.Graphics.DrawPoint|DrawPoint]]|Draws a point on a texture|-|[[API Panel.Graphics.DrawLine|DrawLine]]|Draws a line on a texture|-|[[API Panel.Graphics.DrawRect|DrawRect]]|Draws a rectangle on a texture|-|[[API Panel.Graphics.DrawCircle|DrawCircle]]|Draws a circle on a texture | + | {| |
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.Shape|Shape]] | ||
| + | |Routines to change the last drawn shape | ||
| + | |} | ||
| + | |||
| + | |||
| + | ==Functions provided for this class== | ||
| + | {| | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.Redraw|Redraw]] | ||
| + | |Sends a redraw request to the given component | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.SetColor|SetColor]] | ||
| + | |Sets the draw colour for and subsequent graphics objects | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.SetColorRGB|SetColorRGB]] | ||
| + | |Sets the draw colour for and subsequent graphics objects | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.SetTextFont|SetTextFont]] | ||
| + | |Sets the text font for subsequent text objects | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.SetTextScale|SetTextScale]] | ||
| + | |Sets the text scale for subsequent text objects | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawCreate|DrawCreate]] | ||
| + | |Creates a drawing area on a shape | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawBegin|DrawBegin]] | ||
| + | |Begins drawing on a given shape | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawEnd|DrawEnd]] | ||
| + | |Ends drawing started with DrawBegin() | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawDelete|DrawDelete]] | ||
| + | |Deletes a drawing area for a shape | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawText|DrawText]] | ||
| + | |Draws a line of text texture | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawPoint|DrawPoint]] | ||
| + | |Draws a point on a texture | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawLine|DrawLine]] | ||
| + | |Draws a line on a texture | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawRect|DrawRect]] | ||
| + | |Draws a rectangle on a texture | ||
| + | |- | ||
| + | |width="35%"|[[API Panel.Graphics.DrawCircle|DrawCircle]] | ||
| + | |Draws a circle on a texture | ||
| + | |} | ||
| − | + | ||
| − | {| class="wikitable" |+width="20%"|Type|width="30%"|Name |width="40%"|Value|-LONG|Align_TopLeft|0 | + | ==Constants provided for this class== |
| − | |-LONG|Align_TopCenter|1 | + | {| class="wikitable" |+width="20%"|Type|width="30%"|Name |width="40%"|Value|- |
| − | |-LONG|Align_TopRight|2 | + | |LONG |
| − | |-LONG|Align_CenterLeft|4 | + | |Align_TopLeft|0 |
| − | |-LONG|Align_Center|5 | + | |- |
| − | |-LONG|Align_CenterRight|6 | + | |LONG |
| − | |-LONG|Align_BottomLeft|8 | + | |Align_TopCenter|1 |
| − | |-LONG|Align_BottomCenter|9 | + | |- |
| − | |-LONG|Align_BottomRight|10 | + | |LONG |
| + | |Align_TopRight|2 | ||
| + | |- | ||
| + | |LONG | ||
| + | |Align_CenterLeft|4 | ||
| + | |- | ||
| + | |LONG | ||
| + | |Align_Center|5 | ||
| + | |- | ||
| + | |LONG | ||
| + | |Align_CenterRight|6 | ||
| + | |- | ||
| + | |LONG | ||
| + | |Align_BottomLeft|8 | ||
| + | |- | ||
| + | |LONG | ||
| + | |Align_BottomCenter|9 | ||
| + | |- | ||
| + | |LONG | ||
| + | |Align_BottomRight|10 | ||
|} | |} | ||
| − | + | ||
| + | ==Examples== | ||
| + | ''No examples available'' | ||
Revision as of 16:30, 11 May 2013
<sidebar>API contents</sidebar> Direct drawing routines for a single frame
Contents
Sub-classes provided for this class
| Shape | Routines to change the last drawn shape |
Functions provided for this class
| Redraw | Sends a redraw request to the given component |
| SetColor | Sets the draw colour for and subsequent graphics objects |
| SetColorRGB | Sets the draw colour for and subsequent graphics objects |
| SetTextFont | Sets the text font for subsequent text objects |
| SetTextScale | Sets the text scale for subsequent text objects |
| DrawCreate | Creates a drawing area on a shape |
| DrawBegin | Begins drawing on a given shape |
| DrawEnd | Ends drawing started with DrawBegin() |
| DrawDelete | Deletes a drawing area for a shape |
| DrawText | Draws a line of text texture |
| DrawPoint | Draws a point on a texture |
| DrawLine | Draws a line on a texture |
| DrawRect | Draws a rectangle on a texture |
| DrawCircle | Draws a circle on a texture |
Constants provided for this class
| LONG | 0 |
| LONG | 1 |
| LONG | 2 |
| LONG | 4 |
| LONG | 5 |
| LONG | 6 |
| LONG | 8 |
| LONG | 9 |
| LONG | 10 |
Examples
No examples available