[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'fpg_base' (#fpgui)

SortRect

Fixes the Top, Bottom and Left, Right to always represent a valid rectangle

Declaration

Source position: line 0

procedure SortRect(

  var ARect: TRect

);

procedure SortRect(

  var ARect: TfpgRect

);

procedure SortRect(

  var left: Integer;

  var top: Integer;

  var right: Integer;

  var bottom: Integer

);

Description

This function fixes a rectangle so that the Left point is always smaller than the Right. And the Top is always smaller than the Bottom.


Documentation generated on: 2013-04-29