xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::drawing::rectangle Class Reference

Public Member Functions

 rectangle (int32_t x, int32_t y, int32_t width, int32_t height)
 rectangle (const point &location, const drawing::size &size)
int32_t bottom () const
bool contains (const point &pt) const
bool contains (const rectangle &rect) const
bool contains (int32_t x, int32_t y) const
int32_t height () const
void height (int32_t height)
void inflate (const drawing::size &sz)
void inflate (int width, int height)
bool intersects_with (const rectangle &rect) const
bool is_empty () const
int32_t left () const
void left (int32_t left)
point location () const
void location (const point &location)
void make_intersect (const rectangle &rect)
void make_union (const rectangle &rect)
void offset (const point &pt)
void offset (int32_t dx, int32_t dy)
int32_t right () const
drawing::size size () const
void size (const drawing::size &size)
std::string to_string () const
int32_t top () const
void top (int32_t top)
int32_t width () const
void width (int32_t width)
int32_t x () const
void x (int32_t x)
int32_t y () const
void y (int32_t y)

Static Public Member Functions

static rectangle ceil (const rectangle_f &rect)
static rectangle from_ltrb (int32_t left, int32_t top, int32_t right, int32_t bottom)
static rectangle inflate (const rectangle &rect, const drawing::size &sz)
static rectangle inflate (const rectangle &rect, int width, int height)
static rectangle make_intersect (const rectangle &a, const rectangle &b)
static rectangle make_union (const rectangle &a, const rectangle &b)
static rectangle offset (const rectangle &rect, const point &pt)
static rectangle offset (const rectangle &rect, int x, int y)
static rectangle round (const rectangle_f &rect)
static rectangle trunc (const rectangle_f &rect)

Static Public Attributes

static const rectangle empty

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