class KPoint

Class for representing a point by (x,y). More...

Definition#include <kpoint.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

Class for reperesenting a point by its X and Y coordinate. It's sorce compatible to the Qt class QPoint, but KPoint uses 32 bit integers for the coordinates.

 KPoint ()

 KPoint (int _xpos,int _ypos)

 KPoint (const QPoint &_pnt)

bool  isNull ()

[const]

int  x ()

[const]

int  y ()

[const]

void  setX (int _xpos)

void  setY (int _ypos)

int & rx ()

int & ry ()

KPointoperator+= (const KPoint &_pnt)

KPointoperator-= (const KPoint &_pnt)

KPointoperator*= (int _c)

KPointoperator*= (double _c)

KPointoperator/= (int _c)

KPointoperator/= (double _c)

 operator QPoint ()

[const]

friend bool  operator== (const KPoint &_pnt1,const KPoint &_pnt2)

friend bool  operator!= (const KPoint &_pnt1,const KPoint &_pnt2)

friend bool  operator== (const QPoint &_pnt1,const KPoint &_pnt2)

friend bool  operator!= (const QPoint &_pnt1,const KPoint &_pnt2)

friend bool  operator== (const KPoint &_pnt1,const QPoint &_pnt2)

friend bool  operator!= (const KPoint &_pnt1,const QPoint &_pnt2)

friend KPoint  operator+ (const KPoint &_pnt1,const KPoint &_pnt2)

friend KPoint  operator- (const KPoint &_pnt1,const KPoint &_pnt2)

friend KPoint  operator* (const KPoint &_pnt,int _c)

friend KPoint  operator* (int _c,const KPoint &_pnt)

friend KPoint  operator* (const KPoint &_pnt,double _c)

friend KPoint  operator* (double _c,const KPoint &_pnt)

friend KPoint  operator- (const KPoint &_pnt)

friend KPoint  operator/ (const KPoint &_pnt,int _c)

friend KPoint  operator/ (const KPoint &_pnt,double _c)

int xpos

[protected]

int ypos

[protected]