Object TRectangle

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TRectangle = object(TObject)

Description

2D rectangle. Useful to detect in which rectangle a point (like a mouse position) is.

We don't use standard Types.TRect for this, as TRect behavior is sometimes (see PtInRect) suited for rectangles anchored in top-left corner (while we are anchored in bottom-left corner).

Hierarchy

  • TObject
  • TRectangle

Overview

Fields

Public X0: Integer;
Public Y0: Integer;
Public Width: Integer;
Public Height: Integer;

Methods

Public function PointInside(const X, Y: Integer): boolean;
Public procedure DrawBorder(const Color: TVector4f; const BorderWidth: Single = 1.0);

Description

Fields

Public X0: Integer;
 
Public Y0: Integer;
 
Public Width: Integer;
 
Public Height: Integer;
 

Methods

Public function PointInside(const X, Y: Integer): boolean;
 
Public procedure DrawBorder(const Color: TVector4f; const BorderWidth: Single = 1.0);
 

Generated by PasDoc 0.13.0 on 2013-08-17 21:27:13