map2d_widget
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
internals::Rectangle Struct Reference

#include <rectangle.h>

Public Member Functions

 Rectangle ()
 
 Rectangle (int x, int y, int width, int height)
 
 Rectangle (core::Point location, core::Size size)
 
core::Point GetLocation ()
 
void SetLocation (const core::Point &value)
 
int X ()
 
int Y ()
 
void SetX (const int &value)
 
void SetY (const int &value)
 
int Width ()
 
void SetWidth (const int &value)
 
int Height ()
 
void SetHeight (const int &value)
 
int Left ()
 
int Top ()
 
int Right ()
 
int Bottom ()
 
bool IsEmpty ()
 
bool operator== (const Rectangle &cSource)
 
bool operator!= (const Rectangle &cSource)
 
bool Contains (const int &x, const int &y)
 
bool Contains (const core::Point &pt)
 
bool Contains (const Rectangle &rect)
 
void Inflate (const int &width, const int &height)
 
void Inflate (Size &size)
 
void Intersect (const Rectangle &rect)
 
bool IntersectsWith (const Rectangle &rect)
 
void Offset (const core::Point &pos)
 
void Offset (const int &x, const int &y)
 
QString ToString ()
 

Static Public Member Functions

static Rectangle FromLTRB (int left, int top, int right, int bottom)
 
static Rectangle Inflate (Rectangle rect, int x, int y)
 
static Rectangle Intersect (Rectangle a, Rectangle b)
 
static Rectangle Union (const Rectangle &a, const Rectangle &b)
 

Static Public Attributes

static Rectangle Empty =Rectangle()
 

Friends

uint qHash (Rectangle const &rect)
 
bool operator== (Rectangle const &lhs, Rectangle const &rhs)
 

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