Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvFloatRect Class Reference

Geometric class. More...

#include <ilviews/base/geometry.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...
 

Detailed Description

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.

See also
IlvRect.

Constructor & Destructor Documentation

§ IlvFloatRect()

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.

Member Function Documentation

§ bottom() [1/2]

IlFloat IlvFloatRect::bottom ( ) const

Gets the bottom coordinate of the y axis.

Returns
The bottom coordinate value on the y axis of the absolute coordinate system.

§ bottom() [2/2]

void IlvFloatRect::bottom ( IlFloat  v)

Sets the bottom coordinate of the y axis.

Parameters
vThe bottom coordinate value on the y axis of the absolute coordinate system.

§ left() [1/2]

IlFloat IlvFloatRect::left ( ) const

Gets the left coordinate of the x axis.

Returns
The left coordinate value on the x axis of the absolute coordinate system.

§ left() [2/2]

void IlvFloatRect::left ( IlFloat  v)

Sets the left coordinate of the x axis.

Parameters
vThe left coordinate value on the x axis of the absolute coordinate system.

§ right() [1/2]

IlFloat IlvFloatRect::right ( ) const

Gets the right coordinate of the x axis.

Returns
The right coordinate value on the x axis of the absolute coordinate system.

§ right() [2/2]

void IlvFloatRect::right ( IlFloat  v)

Sets the right coordinate of the x axis.

Parameters
vThe right coordinate value on the x axis of the absolute coordinate system.

§ top() [1/2]

IlFloat IlvFloatRect::top ( ) const

Gets the top coordinate of the y axis.

Returns
The top coordinate value on the y axis of the absolute coordinate system.

§ top() [2/2]

void IlvFloatRect::top ( IlFloat  v)

Sets the top coordinate of the y axis.

Parameters
vThe top coordinate value on the y axis of the absolute coordinate system.

© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.