omgui::Rect Struct Reference

#include <omgui/types.h>

List of all members.


Detailed Description

Data structure representing a rectangle, which is composed of an origin position and a size.

Public Member Functions

bool operator!= (const Rect &r)
bool operator== (const Rect &r)
 Rect (int x, int y, int w, int h)
 Rect (const Point &p, const Size &s)
 Rect (const Size &s)
 Rect ()

Public Attributes

Point position
Size size

Constructor & Destructor Documentation

omgui::Rect::Rect (  )  [inline]

Default constructor, initializes size and position to 0

omgui::Rect::Rect ( const Size s  )  [inline]

Constructs a Rect with a position of (0,0) and the given size

Parameters:
s Size

omgui::Rect::Rect ( const Point p,
const Size s 
) [inline]

Constructs a Rect from a position and a size

Parameters:
p Position
s Size

omgui::Rect::Rect ( int  x,
int  y,
int  w,
int  h 
) [inline]

Constructs a Rect from a position and size defined as four floating point values.

Parameters:
x X position
y Y position
w Width
h Height


Member Function Documentation

bool omgui::Rect::operator!= ( const Rect r  )  [inline]

Returns:
True if this rect is not equal to the rect r.

bool omgui::Rect::operator== ( const Rect r  )  [inline]

Returns:
True if this rect is equal to the rect r.


Member Data Documentation


doxygen SourceForge.net Logo