SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scv::Point Class Reference

#include <Point.h>

Public Member Functions

 Point ()
 
 Point (int x, int y)
 
 Point (const std::string &str)
 
Point operator* (int w) const
 
Point operator/ (int w) const
 
Point operator+ (int w) const
 
Point operator- (int w) const
 
Point operator+ (const Point &rhs) const
 
Point operator- (const Point &rhs) const
 
void operator+= (int w)
 
void operator-= (int w)
 
void operator+= (const Point &rhs)
 
void operator-= (const Point &rhs)
 
bool operator!= (const Point &rhs) const
 
bool operator== (const Point &rhs) const
 
bool operator>= (const Point &rhs) const
 
bool operator<= (const Point &rhs) const
 
bool operator> (const Point &rhs) const
 
bool operator< (const Point &rhs) const
 
PointtranslateX (int w)
 
PointtranslateY (int w)
 
const Point inverse (void) const
 

Public Attributes

int x
 
int y
 

Friends

std::ostream & operator<< (std::ostream &lhs, const Point &rhs)
 

Constructor & Destructor Documentation

scv::Point::Point ( void  )
scv::Point::Point ( int  x,
int  y 
)
scv::Point::Point ( const std::string &  str)

Member Function Documentation

const Point scv::Point::inverse ( void  ) const
bool scv::Point::operator!= ( const Point rhs) const
inline
Point scv::Point::operator* ( int  w) const
inline
Point scv::Point::operator+ ( int  w) const
inline
Point scv::Point::operator+ ( const Point rhs) const
inline
void scv::Point::operator+= ( int  w)
inline
void scv::Point::operator+= ( const Point rhs)
inline
Point scv::Point::operator- ( int  w) const
inline
Point scv::Point::operator- ( const Point rhs) const
inline
void scv::Point::operator-= ( int  w)
inline
void scv::Point::operator-= ( const Point rhs)
inline
Point scv::Point::operator/ ( int  w) const
inline
bool scv::Point::operator< ( const Point rhs) const
inline
bool scv::Point::operator<= ( const Point rhs) const
inline
bool scv::Point::operator== ( const Point rhs) const
inline
bool scv::Point::operator> ( const Point rhs) const
inline
bool scv::Point::operator>= ( const Point rhs) const
inline
Point & scv::Point::translateX ( int  w)
inline
Point & scv::Point::translateY ( int  w)
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  lhs,
const Point rhs 
)
friend

Member Data Documentation

int scv::Point::x
int scv::Point::y

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