notepad::Point Struct Reference

Point structure. More...

#include <notepad_utils.h>

Public Member Functions

 Point ()
 Point (const int ptx, const int pty)
void reset (const int ptx, const int pty)
void move_x (const int ptx)
void move_y (const int pty)
void move (const int x_offset, const int y_offset)

Data Fields

int x
int y

Detailed Description

Point structure.

Definition at line 131 of file notepad_utils.h.


Constructor & Destructor Documentation

notepad::Point::Point (  )  [inline]

Definition at line 133 of file notepad_utils.h.

00134             : x(0), y(0)
00135         {}

notepad::Point::Point ( const int  ptx,
const int  pty 
) [inline]

Definition at line 137 of file notepad_utils.h.

00138             : x(ptx), y(pty)
00139         {}


Member Function Documentation

void notepad::Point::move ( const int  x_offset,
const int  y_offset 
) [inline]

Definition at line 156 of file notepad_utils.h.

References x, and y.

00157         {
00158             x += x_offset;
00159             y += y_offset;
00160         }

void notepad::Point::move_x ( const int  ptx  )  [inline]

Definition at line 146 of file notepad_utils.h.

References x.

00147         {
00148             x = ptx;
00149         }

void notepad::Point::move_y ( const int  pty  )  [inline]

Definition at line 151 of file notepad_utils.h.

References y.

00152         {
00153             y = pty;
00154         }

void notepad::Point::reset ( const int  ptx,
const int  pty 
) [inline]

Definition at line 141 of file notepad_utils.h.

References x, and y.

00142         {
00143             x = ptx; y = pty;
00144         }


Field Documentation

Definition at line 162 of file notepad_utils.h.

Referenced by notepad::GCtx::draw_line(), move(), move_x(), and reset().

Definition at line 162 of file notepad_utils.h.

Referenced by notepad::GCtx::draw_line(), move(), move_y(), and reset().


The documentation for this struct was generated from the following file:
Generated by  doxygen 1.6.2-20100208