Difference between revisions of "Box"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function Box(x1, y1, x2, y2: Integer): TBox; </source> ==Availability== SCAR Divi 3.26 > Current ===Aliases=== *IntToBox (SCAR...")
 
(Description)
Line 11: Line 11:
  
 
==Description==
 
==Description==
Initializes a [[TBox]] with the given coordinates ('''x1''', '''y1''') and ('''x2''', '''y2''') which form the upper-left corner and bottom right corner of the box defined by the TBox.
+
Initializes a [[TBox]] with the given coordinates ('''x1''', '''y1''') and ('''x2''', '''y2''') which form the upper-left corner and bottom-right corner of the box defined by the TBox.
  
 
==Example==
 
==Example==

Revision as of 15:43, 2 July 2011

Definition

function Box(x1, y1, x2, y2: Integer): TBox;

Availability

SCAR Divi 3.26 > Current

Aliases

  • IntToBox (SCAR Divi 3.00 > Current)

Description

Initializes a TBox with the given coordinates (x1, y1) and (x2, y2) which form the upper-left corner and bottom-right corner of the box defined by the TBox.

Example

var
  b: TBox;

begin
  b := Box(1, 2, 3, 4);
  WriteLn('TBox(' + IntToStr(b.x1) + ',' + IntToStr(b.y1) + ',' + IntToStr(b.x2) + ',' + IntToStr(b.y2) + ')');
end.

Output:

TBox(1,2,3,4)

See Also