Wt::WLineF Class Reference
[Painting system]

Utility class that defines a single line. More...

#include <Wt/WLineF>

List of all members.

Public Member Functions

 WLineF ()
 Default constructor.
 WLineF (const WPointF &p1, const WPointF &p2)
 Construct a line connecting two points.
 WLineF (double x1, double y1, double x2, double y2)
 Construct a line connecting two points.
bool isNull () const
 Checks for a null line.
double x1 () const
 Returns the X coordinate of the first point.
double y1 () const
 Returns the Y coordinate of the first point.
double x2 () const
 Returns the X coordinate of the second point.
double y2 () const
 Returns the Y coordinate of the second point.
WPointF p1 () const
 Returns the first point.
WPointF p2 () const
 Returns the second point.


Detailed Description

Utility class that defines a single line.

Constructor & Destructor Documentation

Wt::WLineF::WLineF (  ) 

Default constructor.

Constructs a null line.

See also:
isNull()

Wt::WLineF::WLineF ( const WPointF p1,
const WPointF p2 
)

Construct a line connecting two points.

Constructs a line from p1 to p2.

Wt::WLineF::WLineF ( double  x1,
double  y1,
double  x2,
double  y2 
)

Construct a line connecting two points.

Constructs a line from (x1,y1) to (x2,y2).


Member Function Documentation

bool Wt::WLineF::isNull (  )  const

Checks for a null line.

See also:
WLineF()

double Wt::WLineF::x1 (  )  const [inline]

Returns the X coordinate of the first point.

See also:
y1(), p1()

double Wt::WLineF::y1 (  )  const [inline]

Returns the Y coordinate of the first point.

See also:
x1(), p1()

double Wt::WLineF::x2 (  )  const [inline]

Returns the X coordinate of the second point.

See also:
y2(), p2()

double Wt::WLineF::y2 (  )  const [inline]

Returns the Y coordinate of the second point.

See also:
x2(), p2()

WPointF Wt::WLineF::p1 (  )  const

Returns the first point.

See also:
x1(), y1()

WPointF Wt::WLineF::p2 (  )  const

Returns the second point.

See also:
x2(), y2()


Generated on Fri Jul 25 17:56:38 2008 for Wt by doxygen 1.5.3