Skip to content

CRect

CRect

CRect is a class of the rectangular area of the chart.

Description

CRect is a class of the area, it is defined by both coordinates of the upper-left and lower-right corners of a rectangle in Cartesian coordinates.

Declaration

class CRect

Title

#include <Controls\Rect.mqh>

Class Methods by Groups

Properties
LeftGets/sets the X coordinate of the upper-left corner
TopGets/sets the Y coordinate of the upper-left corner
RightGets/sets the X coordinate of the lower-right corner
BottomGets/sets the Y coordinate of the lower-right corner
WidthGets/sets the width
HeightGets/sets the height
SetBoundSets new coordinates of the area
MovePerforms the absolute displacement of the area coordinates
ShiftPerforms the relative displacement (shift) of the area coordinates
ContainsChecks if the point is inside the area
Additional methods
FormatGets the area coordinates as a string
Last updated on