OOFILE  1.9
Public Member Functions | List of all members

Cross-platform way to specify rectangle with Mac-style setter. More...

#include <oofRect.h>

Inheritance diagram for oofRect:
Inheritance graph
[legend]
Collaboration diagram for oofRect:
Collaboration graph
[legend]

Public Member Functions

void correct ()
 
virtual void describe (std::ostream &os) const
 
int height ()
 
int invHeight ()
 
int invWidth ()
 
bool isRectEqual (oofRect *pRect)
 
void normalize ()
 
void offset (int dx, int dy)
 
 oofRect ()
 
 oofRect (int left, int top, int right, int bottom)
 
 oofRect (const oofRect &)
 
 operator const Rect ()
 
 operator const Rect * ()
 
 operator Rect ()
 
 operator Rect * ()
 
void operator= (const Rect &)
 
int rawHeight ()
 
int rawWidth ()
 
void set (int left, int top, int right, int bottom)
 
void setSize (int left, int top, int width, int height)
 
void transform (double dx, double dy)
 
void transform (double factor)
 
int width ()
 

Detailed Description

Cross-platform way to specify rectangle with Mac-style setter.

Definition at line 39 of file oofRect.h.

Constructor & Destructor Documentation

oofRect::oofRect ( )

Definition at line 22 of file oofRect.cpp.

oofRect::oofRect ( int  left,
int  top,
int  right,
int  bottom 
)

Definition at line 31 of file oofRect.cpp.

oofRect::oofRect ( const oofRect rhs)

Definition at line 40 of file oofRect.cpp.

Member Function Documentation

void oofRect::correct ( )

Definition at line 129 of file oofRect.cpp.

Referenced by oofTransformationManager::setDrawRect().

void oofRect::describe ( std::ostream &  os) const
virtual

Definition at line 99 of file oofRect.cpp.

Referenced by oofTransformationManager::describe().

int oofRect::height ( )
inline
int oofRect::invHeight ( )
inline
int oofRect::invWidth ( )
inline

Definition at line 79 of file oofRect.h.

bool oofRect::isRectEqual ( oofRect pRect)
inline
void oofRect::normalize ( )

Definition at line 110 of file oofRect.cpp.

void oofRect::offset ( int  dx,
int  dy 
)

Definition at line 139 of file oofRect.cpp.

oofRect::operator const Rect ( )

Definition at line 170 of file oofRect.cpp.

oofRect::operator const Rect * ( )

Definition at line 160 of file oofRect.cpp.

oofRect::operator Rect ( )

Definition at line 165 of file oofRect.cpp.

oofRect::operator Rect * ( )

Definition at line 155 of file oofRect.cpp.

void oofRect::operator= ( const Rect rc)

Definition at line 176 of file oofRect.cpp.

int oofRect::rawHeight ( )
inline
int oofRect::rawWidth ( )
inline
void oofRect::set ( int  left,
int  top,
int  right,
int  bottom 
)
void oofRect::setSize ( int  left,
int  top,
int  width,
int  height 
)

Definition at line 90 of file oofRect.cpp.

References height(), and width().

void oofRect::transform ( double  dx,
double  dy 
)

Definition at line 146 of file oofRect.cpp.

Referenced by oofGraphWindow::setPageSetup(), and transform().

void oofRect::transform ( double  factor)
inline

Definition at line 68 of file oofRect.h.

References transform().

int oofRect::width ( )
inline

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