Navigation:  C/C++ Scripting Engine > Classes >

dbBox

Previous pageReturn to chapter overviewNext page

Stores a box consisting of left, right, top, and bottom values.

bar_dot

 

Member Functions:

==============

 

float getLeft()

Get the left value for this box.

 

float getTop()

Get the top value for this box.

 

float getBottom()

Get the bottm value for this box.

 

float getRight()

Get the right value for this box.

 

float getWidth()

Get the width for this box.

 

float getHeight()

Get the height for this box.

 

void setLeft( float val )

Set the left value for this box.

 

void setTop( float val )

Set the top value for this box.

 

void setBottom( float val )

Set the bottom value for this box.

 

void setRight( float val )

Set the right value for this box.

 

void setEmpty()

Clear this box.

 

void normalize()

Ensure that left is less than the right, and bottom is less than the top .

 

int isEqual( dbBox& src )

Compare box src with this box.  Returns 1 if they are the same, and 0 if they are different.

 

int isRectEmpty()

Returns 1 if rectangle has no area, else 0.