CRect

#include <vstgui.h>

struct CRect;

Structure used for the definition and support of the rectangle (values in pixel).


CRect

1.0

CRect (long left = 0, long top = 0, long right = 0, long bottom = 0);

Creates a rectangle, given each coordinate.

[CRect]

Example :

CBitmap *myBitmap = new CBitmap (kMyBitmapID);
CRect size (0, 0, myBitmap->getWidth(),
myBitmap->getHeight ());
...

CRect

1.0

CRect (const CRect &r);

Creates a rectangle, given another rectangle.


operator ()

1.0

CRect &operator () (long left, long top, long right, long bottom);

Overloads the () operator.


operator ==

2.1

bool operator == (const CRect &other) const;

Overloads the == operator.


operator !=

2.1

bool operator != (const CRect &other) const;

Overloads the != operator.


width

1.0

long width ();

Returns the width of the rectangle.


height

1.0

long height ();

Returns the height of the rectangle.


offset

1.0

void offset (long x, long y);

Add an offset to the rectangle.


inset

2.1

CRect &inset (long deltaX, long deltaY);

Inset the rectangle to specified delta values.


pointInside

2.0

bool pointInside (const CPoint& where) const;

Checks if the point is inside this rect.


isEmpty

2.2

bool isEmpty () const;

-


rectOverlap

2.1

bool rectOverlap (const CRect& rect) const;

Checks if it is overlapped by the given rect.


Copyright ©2003 Steinberg Media Technologies GmbH. All Rights Reserved.