ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Wintermute::Rect32 Struct Reference

#include <rect32.h>

List of all members.

Public Member Functions

 Rect32 ()
 Rect32 (int32 w, int32 h)
 Rect32 (const Common::Rect &rect)
 Rect32 (int32 x1, int32 y1, int32 x2, int32 y2)
bool operator== (const Rect32 &rhs) const
bool operator!= (const Rect32 &rhs) const
int32 width () const
int32 height () const
void setWidth (int32 aWidth)
void setHeight (int32 aHeight)
void setEmpty ()
bool isRectEmpty () const
void offsetRect (int dx, int dy)
void setRect (int32 newLeft, int32 newTop, int32 newRight, int32 newBottom)
bool equals (const Rect32 &r) const
 Check if the given rect is equal to this one.
bool isValidRect () const

Public Attributes

int32 top
int32 left
 The point at the top left of the rectangle (part of the rect).
int32 bottom
int32 right
 The point at the bottom right of the rectangle (not part of the rect).

Detailed Description

Definition at line 61 of file rect32.h.


Constructor & Destructor Documentation

Wintermute::Rect32::Rect32 (  )  [inline]

Definition at line 65 of file rect32.h.

Wintermute::Rect32::Rect32 ( int32  w,
int32  h 
) [inline]

Definition at line 66 of file rect32.h.

Wintermute::Rect32::Rect32 ( const Common::Rect rect  )  [inline]

Definition at line 67 of file rect32.h.

Wintermute::Rect32::Rect32 ( int32  x1,
int32  y1,
int32  x2,
int32  y2 
) [inline]

Definition at line 68 of file rect32.h.


Member Function Documentation

bool Wintermute::Rect32::equals ( const Rect32 r  )  const [inline]

Check if the given rect is equal to this one.

Parameters:
r The rectangle to check
Returns:
true if the given rect is equal, false otherwise

Definition at line 122 of file rect32.h.

int32 Wintermute::Rect32::height (  )  const [inline]

Definition at line 81 of file rect32.h.

bool Wintermute::Rect32::isRectEmpty (  )  const [inline]

Definition at line 97 of file rect32.h.

bool Wintermute::Rect32::isValidRect (  )  const [inline]

Definition at line 126 of file rect32.h.

void Wintermute::Rect32::offsetRect ( int  dx,
int  dy 
) [inline]

Definition at line 101 of file rect32.h.

bool Wintermute::Rect32::operator!= ( const Rect32 rhs  )  const [inline]

Definition at line 74 of file rect32.h.

bool Wintermute::Rect32::operator== ( const Rect32 rhs  )  const [inline]

Definition at line 71 of file rect32.h.

void Wintermute::Rect32::setEmpty (  )  [inline]

Definition at line 93 of file rect32.h.

void Wintermute::Rect32::setHeight ( int32  aHeight  )  [inline]

Definition at line 89 of file rect32.h.

void Wintermute::Rect32::setRect ( int32  newLeft,
int32  newTop,
int32  newRight,
int32  newBottom 
) [inline]

Definition at line 108 of file rect32.h.

void Wintermute::Rect32::setWidth ( int32  aWidth  )  [inline]

Definition at line 85 of file rect32.h.

int32 Wintermute::Rect32::width (  )  const [inline]

Definition at line 78 of file rect32.h.


Member Data Documentation

Definition at line 63 of file rect32.h.

The point at the top left of the rectangle (part of the rect).

Definition at line 62 of file rect32.h.

The point at the bottom right of the rectangle (not part of the rect).

Definition at line 63 of file rect32.h.

Definition at line 62 of file rect32.h.


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


Generated on Sat Sep 26 2020 05:04:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge