Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Rect Struct Reference

#include <Geometry.h>

List of all members.

Public Member Functions

 Rect ()
 Rect (int ix, int iy, int iw, int ih)
int operator== (const Rect &r) const
int operator!= (const Rect &r) const
void Inflate (int dw, int dh)
void Deflate (int dw, int dh)
void Inset (int left, int right, int top, int bottom)
int Contains (int x, int y) const

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

int x
int y
int w
int h

Detailed Description

Definition at line 35 of file Geometry.h.


Constructor & Destructor Documentation

Rect::Rect ( )
inline

Definition at line 39 of file Geometry.h.

Rect::Rect ( int  ix,
int  iy,
int  iw,
int  ih 
)
inline

Definition at line 40 of file Geometry.h.


Member Function Documentation

int Rect::Contains ( int  x,
int  y 
) const

Definition at line 44 of file Geometry.cpp.

void Rect::Deflate ( int  dw,
int  dh 
)

Definition at line 28 of file Geometry.cpp.

void Rect::Inflate ( int  dw,
int  dh 
)

Definition at line 20 of file Geometry.cpp.

void Rect::Inset ( int  left,
int  right,
int  top,
int  bottom 
)

Definition at line 36 of file Geometry.cpp.

int Rect::operator!= ( const Rect r) const
inline

Definition at line 43 of file Geometry.h.

int Rect::operator== ( const Rect r) const
inline

Definition at line 42 of file Geometry.h.

static const char* Rect::TYPENAME ( )
inlinestatic

Definition at line 37 of file Geometry.h.


Member Data Documentation

int Rect::h

Definition at line 50 of file Geometry.h.

int Rect::w

Definition at line 50 of file Geometry.h.

int Rect::x

Definition at line 50 of file Geometry.h.

int Rect::y

Definition at line 50 of file Geometry.h.


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