![]() |
![]()
| ![]() |
![]()
NAMESDLmm::SRect - This enhanced version of SDL_Rect includes a number of handy short-hand constructors. Since the class is derived from the SDL_Rect struct, it can be used in any context where an SDL_Rect is valid. SYNOPSIS#include <sdlmm_srect.h> Inherits SDL_Rect. Public MethodsSRect ()
DETAILED DESCRIPTIONThis enhanced version of SDL_Rect includes a number of handy short-hand constructors. Since the class is derived from the SDL_Rect struct, it can be used in any context where an SDL_Rect is valid. Todo:
Author:
CONSTRUCTOR & DESTRUCTOR DOCUMENTATIONSDLmm::SRect::SRect ()Default constructor which creates an empty SRect (xywh variables set to sero). SDLmm::SRect::SRect (const SRect & rect)This is the copy constructor. Simply initializes the value of an SRect to that of another SRect. Parameters:
SDLmm::SRect::SRect (const SDL_Rect & rect)Constructor which initializes the class from an SDL_Rect struct. Parameters:
SDLmm::SRect::SRect (const SPoint & point)Constructor which initializes the class from an SPoint object. The x and y values will be initialized with the x/y values of the SPoint. h and w will be set to zero. Parameters:
SDLmm::SRect::SRect (const SPoint & upper_left_point, const SPoint & bottom_right_point)Construct an object using the given upper left and bottom right corners. Parameters:
SDLmm::SRect::SRect (const SPoint & point, Uint16 nw, Uint16 nh)Constructor which initializes the class from an SPoint object and integer values. The x and y values will be initialized with the x/y values of the SPoint and the dimensions from nw and nh. Parameters:
SDLmm::SRect::SRect (Sint16 nx, Sint16 ny, Uint16 nw, Uint16 nh)Constructor which initializes the class from integer values. Parameters:
SDLmm::SRect::SRect (Uint16 nw, Uint16 nh)Constructor which initializes the width and height from integer values. The x/y coordinates for the upper left corner will be set to zero. Parameters:
MEMBER FUNCTION DOCUMENTATIONSPoint SDLmm::SRect::GetBottomLeft () const [inline]Get the coordinates for the bottom left corner of the SRect. Returns:
SPoint SDLmm::SRect::GetBottomRight () const [inline]Get the coordinates for the bottom right corner of the SRect. Returns:
SPoint SDLmm::SRect::GetUpperLeft () const [inline]Get the coordinates for the upper left corner of the SRect. Returns:
SPoint SDLmm::SRect::GetUpperRight () const [inline]Get the coordinates for the upper right corner of the SRect. Returns:
SRect & SDLmm::SRect::operator= (const SDL_Rect & rect) [inline]Set the value of an SRect to that of an existing SDL_Rect or SRect. bool SDLmm::SRect::operator== (const SDL_Rect & rect) const [inline]Compare two rectangles for equality. Returns:
AUTHORGenerated automatically by Doxygen for SDLmm from the source code.
|