Papyrus::Region Class Reference

#include <papyrus/region.h>

Inheritance diagram for Papyrus::Region:

Inheritance graph
[legend]
List of all members.

Detailed Description

Author:
Rick L Vinyard Jr


Public Member Functions

 Region (double x=0.0, double y=0.0, double w=0.0, double h=0.0)
double x () const
double y () const
double width () const
double height () const
double xywh (double &x, double &y, double &w, double &h) const
double left () const
double right () const
double top () const
double bottom () const
void lrtb (double &l, double &r, double &t, double &b) const
void center (double &x, double &y) const
void set_x (double x)
void set_y (double y)
void set_width (double w)
void set_height (double h)
void set_xywh (double x, double y, double w, double h)
bool include (const Region &other)
bool include (double x, double y)
bool include_x (double x)
bool include_y (double y)
void left_bottom (double &l, double &b) const
void right_top (double &r, double &t) const
Regionoperator= (const Region &other)
bool operator== (const Region &other) const
 true if the regions are identical
bool operator!= (const Region &other) const
bool operator< (const Region &other) const
 true if this region is completely contained within the other region
bool operator<= (const Region &other) const
bool operator> (const Region &other) const
 true of this region is completely outside the other region
bool operator>= (const Region &other) const
bool is_inside (double x, double y) const
 true if (x,y) is an interior point of or on the boundary of this region
bool is_interior (double x, double y) const
 true if (x,y) is an interior point of this region
bool is_boundary (double x, double y) const
 true if (x,y) is a boundary point of this region
void transform (const Cairo::Matrix &matrix)

Protected Attributes

double m_x
double m_y
double m_w
double m_h


The documentation for this class was generated from the following files:
Generated on Sun Mar 11 10:01:46 2007 by  doxygen 1.5.1