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_f Class Reference

Public Member Functions

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

Static Public Member Functions

static rectangle_f from_ltrb (float left, float top, float right, float bottom)
 
static rectangle_f inflate (const rectangle_f &rect, const drawing::size_f &sz)
 
static rectangle_f inflate (const rectangle_f &rect, float width, float height)
 
static rectangle_f make_intersect (const rectangle_f &a, const rectangle_f &b)
 
static rectangle_f make_union (const rectangle_f &a, const rectangle_f &b)
 
static rectangle_f offset (const rectangle_f &rect, const point_f &pt)
 
static rectangle_f offset (const rectangle_f &rect, float x, float y)
 

Static Public Attributes

static const rectangle_f empty
 

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