#include <point.h>
Collaboration diagram for Wt::Point:
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) |
Point & | operator+= (const Point &other) |
Shift a point. | |
Point & | operator-= (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. | |
Private Attributes | |
int | x_ |
The point's x coordinate. | |
int | y_ |
The point's y coordinate. |
Definition at line 30 of file point.h.
Wt::Point::Point | ( | ) | [inline] |
Construct a point at (0, 0).
Definition at line 33 of file point.h.
Referenced by operator+(), and operator-().
bool Wt::Point::operator!= | ( | const Point & | other | ) | const [inline] |
Point Wt::Point::operator- | ( | ) | const [inline] |
bool Wt::Point::operator== | ( | const Point & | other | ) | const [inline] |
void Wt::Point::setX | ( | int | x_new | ) | [inline] |
Definition at line 46 of file point.h.
References x_.
Referenced by Wt::Rect::clipLine().
00046 { 00047 x_ = x_new; 00048 }
void Wt::Point::setY | ( | int | y_new | ) | [inline] |
Definition at line 50 of file point.h.
References y_.
Referenced by Wt::Rect::clipLine().
00050 { 00051 y_ = y_new; 00052 }
int Wt::Point::x | ( | ) | const [inline] |
Definition at line 38 of file point.h.
References x_.
Referenced by Wt::PixmapOf< Wt::SDLSurface >::blit(), Wt::PixmapOf< Wt::SDLSurface >::blitAlphaBlend(), Wt::PixmapOf< Wt::SDLSurface >::blitAlphaCopy(), Wt::Rect::clipLine(), Wt::Rect::contains(), Wt::Painter::drawLine(), Wt::Painter::drawPixmap(), Wt::Painter::drawPoint(), Wt::Painter::drawTiledPixmap(), Wt::MouseEvent::globalX(), Wt::SDLInput::handleMouseEvent(), Wt::Painter::isClipped(), Wt::Widget::mapToGlobal(), Wt::Widget::mapToParent(), Wt::Widget::move(), Wt::Rect::moveTopLeft(), Wt::operator<<(), Wt::SDLInput::EventInfo::operator==(), Wt::PixmapOf< Wt::SDLSurface >::pixel(), Wt::PixmapOf< Wt::SDLSurface >::pixelColor(), Wt::PixmapOf< Wt::SDLSurface >::setPixel(), Wt::PixmapOf< Wt::SDLSurface >::setPixelColor(), and Wt::MouseEvent::x().
00038 { 00039 return x_; 00040 }
int Wt::Point::y | ( | ) | const [inline] |
Definition at line 42 of file point.h.
References y_.
Referenced by Wt::PixmapOf< Wt::SDLSurface >::blit(), Wt::PixmapOf< Wt::SDLSurface >::blitAlphaBlend(), Wt::PixmapOf< Wt::SDLSurface >::blitAlphaCopy(), Wt::Rect::clipLine(), Wt::Rect::contains(), Wt::Painter::drawLine(), Wt::Painter::drawPixmap(), Wt::Painter::drawPoint(), Wt::Painter::drawTiledPixmap(), Wt::MouseEvent::globalY(), Wt::SDLInput::handleMouseEvent(), Wt::Painter::isClipped(), Wt::Widget::mapToGlobal(), Wt::Widget::mapToParent(), Wt::Widget::move(), Wt::Rect::moveTopLeft(), Wt::operator<<(), Wt::SDLInput::EventInfo::operator==(), Wt::PixmapOf< Wt::SDLSurface >::pixel(), Wt::PixmapOf< Wt::SDLSurface >::pixelColor(), Wt::PixmapOf< Wt::SDLSurface >::setPixel(), Wt::PixmapOf< Wt::SDLSurface >::setPixelColor(), and Wt::MouseEvent::y().
00042 { 00043 return y_; 00044 }
int Wt::Point::x_ [private] |
The point's x coordinate.
Definition at line 95 of file point.h.
Referenced by operator+(), operator+=(), operator-(), operator-=(), operator==(), setX(), and x().
int Wt::Point::y_ [private] |
The point's y coordinate.
Definition at line 97 of file point.h.
Referenced by operator+(), operator+=(), operator-(), operator-=(), operator==(), setY(), and y().
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.