doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
idRectangle Class Reference

#include <Rectangle.h>

Public Member Functions

 idRectangle ()
 
 idRectangle (float ix, float iy, float iw, float ih)
 
float Bottom () const
 
float Right () const
 
void Offset (float x, float y)
 
bool Contains (float xt, float yt)
 
void Empty ()
 
void ClipAgainst (idRectangle r, bool sizeOnly)
 
void Rotate (float a, idRectangle &out)
 
idRectangleoperator+= (const idRectangle &a)
 
idRectangleoperator-= (const idRectangle &a)
 
idRectangleoperator/= (const idRectangle &a)
 
idRectangleoperator/= (const float a)
 
idRectangleoperator*= (const float a)
 
idRectangleoperator= (const idVec4 v)
 
int operator== (const idRectangle &a) const
 
floatoperator[] (const int index)
 
char * String (void) const
 
const idVec4ToVec4 () const
 

Public Attributes

float x
 
float y
 
float w
 
float h
 

Detailed Description

Definition at line 34 of file Rectangle.h.

Constructor & Destructor Documentation

idRectangle::idRectangle ( )
inline

Definition at line 40 of file Rectangle.h.

idRectangle::idRectangle ( float  ix,
float  iy,
float  iw,
float  ih 
)
inline

Definition at line 41 of file Rectangle.h.

Member Function Documentation

float idRectangle::Bottom ( void  ) const
inline

Definition at line 42 of file Rectangle.h.

void idRectangle::ClipAgainst ( idRectangle  r,
bool  sizeOnly 
)
inline

Definition at line 59 of file Rectangle.h.

bool idRectangle::Contains ( float  xt,
float  yt 
)
inline

Definition at line 48 of file Rectangle.h.

void idRectangle::Empty ( void  )
inline

Definition at line 57 of file Rectangle.h.

void idRectangle::Offset ( float  x,
float  y 
)
inline

Definition at line 44 of file Rectangle.h.

ID_INLINE idRectangle & idRectangle::operator*= ( const float  a)

Definition at line 157 of file Rectangle.h.

ID_INLINE idRectangle & idRectangle::operator+= ( const idRectangle a)

Definition at line 120 of file Rectangle.h.

ID_INLINE idRectangle & idRectangle::operator-= ( const idRectangle a)

Definition at line 148 of file Rectangle.h.

ID_INLINE idRectangle & idRectangle::operator/= ( const idRectangle a)

Definition at line 129 of file Rectangle.h.

ID_INLINE idRectangle & idRectangle::operator/= ( const float  a)

Definition at line 138 of file Rectangle.h.

ID_INLINE idRectangle & idRectangle::operator= ( const idVec4  v)

Definition at line 167 of file Rectangle.h.

ID_INLINE int idRectangle::operator== ( const idRectangle a) const

Definition at line 175 of file Rectangle.h.

ID_INLINE float & idRectangle::operator[] ( const int  index)

Definition at line 179 of file Rectangle.h.

float idRectangle::Right ( ) const
inline

Definition at line 43 of file Rectangle.h.

void idRectangle::Rotate ( float  a,
idRectangle out 
)
inline

Definition at line 78 of file Rectangle.h.

char * idRectangle::String ( void  ) const

Definition at line 1086 of file DeviceContext.cpp.

ID_INLINE const idVec4 & idRectangle::ToVec4 ( void  ) const

Definition at line 115 of file Rectangle.h.

Member Data Documentation

float idRectangle::h

Definition at line 39 of file Rectangle.h.

float idRectangle::w

Definition at line 38 of file Rectangle.h.

float idRectangle::x

Definition at line 36 of file Rectangle.h.

float idRectangle::y

Definition at line 37 of file Rectangle.h.


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