Unit CastleRectangles

Description

Rectangle representation (TRectangle, TFloatRectangle).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TRectangle 2D rectangle with integer coordinates.
Record TFloatRectangle 2D rectangle with float coordinates.
Class TRectangleList  
Class TFloatRectanglePersistent  

Functions and Procedures

function Rectangle(const Left, Bottom: Integer; const Width, Height: Cardinal): TRectangle; overload;
function Rectangle(const LeftBottom: TVector2Integer; const Width, Height: Cardinal): TRectangle; overload;
function FloatRectangle(const Left, Bottom, Width, Height: Single): TFloatRectangle; overload;
function FloatRectangle(const R: TRectangle): TFloatRectangle; overload;
function FloatRectangle(const LeftBottom: TVector2; const Width, Height: Single): TFloatRectangle; overload;

Types

THorizontalPosition = (...);
TVerticalPosition = (...);
PFloatRectangle = ˆTFloatRectangle;
TFloatRectangleArray = packed array [0..MaxInt div SizeOf(TFloatRectangle) - 1] of TFloatRectangle;
PFloatRectangleArray = ˆTFloatRectangleArray;
TFloatRectangleList = specialize TStructList<TFloatRectangle>;
TGetFloatRectangleEvent = function: TFloatRectangle of object;
TSetFloatRectangleEvent = procedure (const Value: TFloatRectangle) of object;

Description

Functions and Procedures

function Rectangle(const Left, Bottom: Integer; const Width, Height: Cardinal): TRectangle; overload;

This item has no description.

function Rectangle(const LeftBottom: TVector2Integer; const Width, Height: Cardinal): TRectangle; overload;

This item has no description.

function FloatRectangle(const Left, Bottom, Width, Height: Single): TFloatRectangle; overload;

This item has no description.

function FloatRectangle(const R: TRectangle): TFloatRectangle; overload;

This item has no description.

function FloatRectangle(const LeftBottom: TVector2; const Width, Height: Single): TFloatRectangle; overload;

This item has no description.

Types

THorizontalPosition = (...);

Horizontal position of one control/rectangle with respect to another.

This is used by TCastleUserInterface.Anchor, TRectangle.Align, TFloatRectangle.Align and other methods to specify the alignment of one control/rectangle with respect to another.

Note that TCastleUserInterface.Anchor has various overloaded versions. E.g. you can align the left side of the control to the left side of the parent (most common situation), or you can align left side of the control to the middle of the parent...

See also
TVerticalPosition
Vertical position of one control/rectangle with respect to another.
Values
  • hpLeft
  • hpMiddle
  • hpRight
TVerticalPosition = (...);

Vertical position of one control/rectangle with respect to another.

See also
THorizontalPosition
Horizontal position of one control/rectangle with respect to another.
Values
  • vpBottom
  • vpMiddle
  • vpTop
PFloatRectangle = ˆTFloatRectangle;

This item has no description.

TFloatRectangleArray = packed array [0..MaxInt div SizeOf(TFloatRectangle) - 1] of TFloatRectangle;

This item has no description.

PFloatRectangleArray = ˆTFloatRectangleArray;

This item has no description.

TFloatRectangleList = specialize TStructList<TFloatRectangle>;

This item has no description.

TGetFloatRectangleEvent = function: TFloatRectangle of object;

TFloatRectanglePersistent type wrapped as a TCastleComponent instance.

TSetFloatRectangleEvent = procedure (const Value: TFloatRectangle) of object;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.