Difference between revisions of "Rect"
From King Arthur's Gold Wiki
m |
|||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
Method one uses a position2di and dimension2di argument. The dimension2di argument represents the width and the height; | Method one uses a position2di and dimension2di argument. The dimension2di argument represents the width and the height; | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
− | recti rect (position2di | + | recti rect ( position2di, dimension2di); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 12: | Line 12: | ||
Method two uses two position2di arguments. The first being the upper left hand corner and the second being the lower right hand corner. ( needs clarification. ) | Method two uses two position2di arguments. The first being the upper left hand corner and the second being the lower right hand corner. ( needs clarification. ) | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
− | recti rect (position2di | + | recti rect ( position2di, position2di); |
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | [[Category:Scripting]] |
Latest revision as of 17:35, 16 December 2012
The recti type is used to create GUI elements among other things. There are two variances.
Method one uses a position2di and dimension2di argument. The dimension2di argument represents the width and the height;
recti rect ( position2di, dimension2di);
Method two uses two position2di arguments. The first being the upper left hand corner and the second being the lower right hand corner. ( needs clarification. )
recti rect ( position2di, position2di);