Jump to content

API Panel.Graphics.DrawText: Difference between revisions

From Flowcode Help
Admin (talk | contribs)
XML import
Admin (talk | contribs)
XML import
Line 3: Line 3:


<div style="width:25%; float:right" class="toc">
<div style="width:25%; float:right" class="toc">
===Class hierarchy===[[API Panel|Panel]]
====Class hierarchy====
[[API Panel|Panel]]
:[[API Panel.Graphics|Graphics]]
:[[API Panel.Graphics|Graphics]]
::[[API Panel.Graphics|DrawText]]
::[[API Panel.Graphics|DrawText]]
Line 10: Line 11:


==Parameters==
==Parameters==
''[[Variable types|FLOAT]] X''
[[Variable types|FLOAT]] ''X''
:Initial horizontal position of text (depends on Align)
:Initial horizontal position of text (depends on Align)


''[[Variable types|FLOAT]] Y''
[[Variable types|FLOAT]] ''Y''
:Initial vertical position of text (depends on Align)
:Initial vertical position of text (depends on Align)


''[[Variable types|STRING]] Text''
[[Variable types|STRING]] ''Text''
:The text to draw, may be multiple lines
:The text to draw, may be multiple lines


''[[Variable types|BYTE]] Align''
[[Variable types|BYTE]] ''Align''
:The text alignment
:The text alignment
:''The default value for this parameter is: '''''0'''
:''The default value for this parameter is: '''''0'''
Line 38: Line 39:


==Detailed description==
==Detailed description==
''No additional information''
''<span style="color:red;">No additional information</span>''
 


==Examples==
==Examples==
===Calling in a calculation===
===Calling in a calculation===
* Add to a calculation icon: <pre class="brush:[cpp]">::Panel.Graphics.DrawText(x, y, "text", ::Panel.Graphics.Align_TopLeft)</pre>
* Add to a calculation icon: <pre class="brush:[cpp]">::Panel.Graphics.DrawText(x, y, "text", ::Panel.Graphics.Align_TopLeft)</pre>
''<span style="color:red;">No additional information</span>''

Revision as of 22:09, 11 May 2013

<sidebar>API contents</sidebar> Draws a line of text texture

Class hierarchy

Panel

Graphics
DrawText

Parameters

FLOAT X

Initial horizontal position of text (depends on Align)

FLOAT Y

Initial vertical position of text (depends on Align)

STRING Text

The text to draw, may be multiple lines

BYTE Align

The text alignment
The default value for this parameter is: 0

Typical values for this parameter:

Return value

This call does not return a value

Detailed description

No additional information


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Panel.Graphics.DrawText(x, y, "text", ::Panel.Graphics.Align_TopLeft)

No additional information