Difference between revisions of "Dimension2d"
From King Arthur's Gold Wiki
(Created page with "<onlyinclude> The Dimension2d types are used for positioning elements such as GUI elements. It is similar to the Vec2f but takes unsigned integers. </onlyinclude> {| class="wik...") |
m |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
| − | The Dimension2d | + | The Dimension2d type is used for setting the dimensions of things such as GUI elements. |
</onlyinclude> | </onlyinclude> | ||
| − | + | <syntaxhighlight lang="cpp"> | |
| − | + | dimension2di dim ( const uint, const uint ) | |
| − | + | </syntaxhighlight> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
'''Example''' | '''Example''' | ||
| Line 20: | Line 11: | ||
GUI::DrawWindow(recti(position2di(pos.x, pos.y), dimension2di(50, 70))); | GUI::DrawWindow(recti(position2di(pos.x, pos.y), dimension2di(50, 70))); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | [[Category:Scripting]] | ||
Latest revision as of 16:12, 16 December 2012
The Dimension2d type is used for setting the dimensions of things such as GUI elements.
dimension2di dim ( const uint, const uint )
Example
GUI::DrawWindow(recti(position2di(pos.x, pos.y), dimension2di(50, 70)));