Geometric class. More...
#include <ilviews/base/geometry/IlvBaseGeometry.h>
Public Member Functions | |
IlvFloatRect (IlFloat x1=(IlFloat) 0, IlFloat y1=(IlFloat) 0, IlFloat x2=(IlFloat) 0, IlFloat y2=(IlFloat) 0) | |
Constructor. More... | |
IlFloat | bottom () const |
Gets the bottom coordinate of the y axis. More... | |
void | bottom (IlFloat v) |
Sets the bottom coordinate of the y axis. More... | |
IlFloat | left () const |
Gets the left coordinate of the x axis. More... | |
void | left (IlFloat v) |
Sets the left coordinate of the x axis. More... | |
IlFloat | right () const |
Gets the right coordinate of the x axis. More... | |
void | right (IlFloat v) |
Sets the right coordinate of the x axis. More... | |
IlFloat | top () const |
Gets the top coordinate of the y axis. More... | |
void | top (IlFloat v) |
Sets the top coordinate of the y axis. More... | |
Geometric class.
Library: xviews or winviews or mviews (mutually exclusive)
The IlvFloatRect
class represents a rectangular geometric entity with floating point coordinates. The rectangle is defined by two pairs of (x, y)
coordinates representing the diagonal of the rectangle.
IlvRect
. IlvFloatRect::IlvFloatRect | ( | IlFloat | x1 = (IlFloat)0 , |
IlFloat | y1 = (IlFloat)0 , |
||
IlFloat | x2 = (IlFloat)0 , |
||
IlFloat | y2 = (IlFloat)0 |
||
) |
Constructor.
Initializes a new IlvFloatRect
with predefined location and size. The two points x1, y1 and x2, y2 are the two points used to create the rectangle.
IlFloat IlvFloatRect::bottom | ( | ) | const |
Gets the bottom coordinate of the y axis.
void IlvFloatRect::bottom | ( | IlFloat | v | ) |
Sets the bottom coordinate of the y axis.
v | The bottom coordinate value on the y axis of the absolute coordinate system. |
IlFloat IlvFloatRect::left | ( | ) | const |
Gets the left coordinate of the x axis.
void IlvFloatRect::left | ( | IlFloat | v | ) |
Sets the left coordinate of the x axis.
v | The left coordinate value on the x axis of the absolute coordinate system. |
IlFloat IlvFloatRect::right | ( | ) | const |
Gets the right coordinate of the x axis.
void IlvFloatRect::right | ( | IlFloat | v | ) |
Sets the right coordinate of the x axis.
v | The right coordinate value on the x axis of the absolute coordinate system. |
IlFloat IlvFloatRect::top | ( | ) | const |
Gets the top coordinate of the y axis.
void IlvFloatRect::top | ( | IlFloat | v | ) |
Sets the top coordinate of the y axis.
v | The top coordinate value on the y axis of the absolute coordinate system. |