Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

otk::Point Class Reference

#include <point.hh>

List of all members.


Detailed Description

The Point class is an x/y coordinate or size pair.

Definition at line 12 of file point.hh.

Public Methods

 Point ()
 Constructs a new Point with 0,0 values.

 Point (int x, int y)
 Constructs a new Point with given values.

void setX (int x)
 Changes the x value to the new value specified.

int x () const
 Returns the x value.

void setY (int y)
 Changes the y value to the new value specified.

int y () const
 Returns the y value.

void setPoint (int x, int y)
 Changes the x and y values.


Private Attributes

int _x
 The x value.

int _y
 The y value.


Constructor & Destructor Documentation

otk::Point::Point   [inline]
 

Constructs a new Point with 0,0 values.

Definition at line 21 of file point.hh.

00021 : _x(0), _y(0) {}

otk::Point::Point int    x,
int    y
[inline]
 

Constructs a new Point with given values.

Definition at line 23 of file point.hh.

References y().

00023 : _x(x), _y(y) {}


Member Function Documentation

void otk::Point::setPoint int    x,
int    y
[inline]
 

Changes the x and y values.

Definition at line 36 of file point.hh.

Referenced by ob::Client::internal_resize(), and ob::Client::updateNormalHints().

00036 { _x = x; _y = y; }

void otk::Point::setX int    x [inline]
 

Changes the x value to the new value specified.

Definition at line 26 of file point.hh.

00026 { _x = x; }

void otk::Point::setY int    y [inline]
 

Changes the y value to the new value specified.

Definition at line 31 of file point.hh.

00031 { _y = y; }

int otk::Point::x   const [inline]
 

Returns the x value.

Definition at line 28 of file point.hh.

Referenced by otk::Rect::contains(), otk::Surface::createObjects(), ob::Client::internal_resize(), ob::Actions::motionHandler(), ob::MouseData::MouseData(), otk::Widget::move(), otk::Widget::resize(), otk::Rect::setCoords(), otk::Widget::setGeometry(), otk::Surface::setPixmap(), otk::Rect::setPos(), otk::Rect::setSize(), ob::Client::setupDecorAndFunctions(), and otk::Surface::width().

00028 { return _x; }

int otk::Point::y   const [inline]
 

Returns the y value.

Definition at line 33 of file point.hh.

Referenced by otk::Rect::contains(), otk::Surface::createObjects(), otk::Surface::height(), ob::Client::internal_resize(), ob::Actions::motionHandler(), ob::MouseData::MouseData(), otk::Widget::move(), Point(), otk::Widget::resize(), otk::Rect::setCoords(), otk::Widget::setGeometry(), otk::Surface::setPixmap(), otk::Rect::setPos(), otk::Rect::setSize(), and ob::Client::setupDecorAndFunctions().

00033 { return _y; }


Member Data Documentation

int otk::Point::_x [private]
 

The x value.

Definition at line 15 of file point.hh.

int otk::Point::_y [private]
 

The y value.

Definition at line 17 of file point.hh.


The documentation for this class was generated from the following file:
Generated on Tue Feb 4 23:00:27 2003 for Openbox by doxygen1.3-rc2