SDL++
C++wrapperfortheSDLlibrary.

sdl::misc::Rect Class Reference

Represents a rectangle. More...

#include <Rect.h>

List of all members.

Public Member Functions

 Rect (unsigned int height, unsigned int width, short x, short y)
SDL_Rect * operator* ()
int height () const
int width () const
int x () const
int y () const

Detailed Description

Represents a rectangle.

Definition at line 34 of file Rect.h.


Constructor & Destructor Documentation

sdl::misc::Rect::Rect ( unsigned int  height,
unsigned int  width,
short  x,
short  y 
) [inline]

Constructs a Rect.

Parameters:
heightThe height.
widthThe width.
xThe x offset.
yThe y offset.

Definition at line 44 of file Rect.h.


Member Function Documentation

int sdl::misc::Rect::height ( ) const [inline]

Returns the height.

Returns:
The height.

Definition at line 63 of file Rect.h.

SDL_Rect* sdl::misc::Rect::operator* ( ) [inline]

Returns the underlying SDL_Rect*.

Returns:
The SDL_Rect structure.

Definition at line 56 of file Rect.h.

int sdl::misc::Rect::width ( ) const [inline]

Returns the width.

Returns:
The width.

Definition at line 70 of file Rect.h.

int sdl::misc::Rect::x ( ) const [inline]

Returns the x offset.

Returns:
The x offset.

Definition at line 77 of file Rect.h.

int sdl::misc::Rect::y ( ) const [inline]

Returns the y offset.

Returns:
The y offset.

Definition at line 84 of file Rect.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs