Wt::Point Class Reference

Class to handle x,y - points on the screen. More...

#include <point.h>

List of all members.

Public Member Functions

 Point ()
 Construct a point at (0, 0).
 Point (int x_, int y_)
 Construct a point.
int x () const
int y () const
void setX (int x_new)
void setY (int y_new)
Pointoperator+= (const Point &other)
 Shift a point.
Pointoperator-= (const Point &other)
 Shift a point.
Point operator+ (const Point &other) const
 Return a shifted point.
Point operator- (const Point &other) const
 Return a shifted point.
Point operator- () const
 return the negative of a point
bool operator== (const Point &other) const
 Compare two points.
bool operator!= (const Point &other) const
 Compare two points.


Detailed Description

Class to handle x,y - points on the screen.


Constructor & Destructor Documentation

Wt::Point::Point (  )  [inline]

Construct a point at (0, 0).

Wt::Point::Point ( int  x_,
int  y_ 
) [inline]

Construct a point.


Member Function Documentation

bool Wt::Point::operator!= ( const Point other  )  const [inline]

Compare two points.

Point Wt::Point::operator+ ( const Point other  )  const [inline]

Return a shifted point.

Point& Wt::Point::operator+= ( const Point other  )  [inline]

Shift a point.

Point Wt::Point::operator- (  )  const [inline]

return the negative of a point

Point Wt::Point::operator- ( const Point other  )  const [inline]

Return a shifted point.

Point& Wt::Point::operator-= ( const Point other  )  [inline]

Shift a point.

bool Wt::Point::operator== ( const Point other  )  const [inline]

Compare two points.

void Wt::Point::setX ( int  x_new  )  [inline]

void Wt::Point::setY ( int  y_new  )  [inline]

int Wt::Point::x (  )  const [inline]

int Wt::Point::y (  )  const [inline]


The documentation for this class was generated from the following file:

Generated Fri Jul 28 19:22:38 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.