Box

From SCAR Divi Manual
Revision as of 14:43, 2 July 2011 by Freddy (talk | contribs) (Description)
Jump to: navigation, search

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