[Overview][Types][Procedures and functions][Index] |
Calculates the values for the output variables in Left, Top, Width, and Height.
Source position: graphmath.pp line 63
procedure CalculateLeftTopWidthHeight( |
X1: Integer; |
Y1: Integer; |
X2: Integer; |
Y2: Integer; |
out Left: Integer; |
out Top: Integer; |
out Width: Integer; |
out Height: Integer |
); |
X1 |
|
Horizontal coordinate examined in the routine. |
Y1 |
|
Vertical coordinate examined in the routine. |
X2 |
|
Horizontal coordinate examined in the routine. |
Y2 |
|
Vertical coordinate examined in the routine. |
Left |
|
Returns the left coordinate for the specified values. |
Top |
|
Returns the top coordinate for the specified values. |
Width |
|
Returns the width for the specified horizontal coordinates. |
Height |
|
Returns the height for the specified vertical coordinates. |
CalculateLeftTopWidthHeight checks values in the X1, X2, Y1, and Y2 arguments and sets the values for the Left, Top, Width, and Height output parameters accordingly.
Used in the implementation of the Rectangle and Ellipse routines for the GTK widgetset.
Added in LazUtils version 3.0.
Version 4.0 | Generated 2025-05-03 | Home |