![]()  | 
						
							 xtd - Reference Guide
								 0.1.0
							 
							Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android. 
						 | 
					
#include <rectangle_f.h>
Stores a set of four floating-points that represent the location and size of a rectangle.
Inherits xtd::object.
Static Public Attributes | |
| static const rectangle_f | empty | 
Public Member Functions | |
| rectangle_f (const point_f &location, const size_f &size) | |
| rectangle_f (float x, float y, float width, float height) | |
| float | bottom () const | 
| bool | contains (const point_f &pt) const | 
| bool | contains (const rectangle_f &rect) const | 
| bool | contains (float x, float y) 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) | 
| xtd::ustring | to_string () const noexcept override | 
| Returns a std::string that represents the current object.   | |
| 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) | 
  Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object.   | |
| virtual bool | equals (const object &obj) const noexcept | 
| Determines whether the specified object is equal to the current object.   | |
| virtual size_t | get_hash_code () const noexcept | 
| Serves as a hash function for a particular type.   | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const | 
| Gets the type of the current instance.   | |
| virtual xtd::ustring | to_string () const noexcept | 
| Returns a std::string that represents the current object.   | |
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 Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept | 
| Determines whether the specified object instances are considered equal.   | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept | 
| Determines whether the specified object instances are the same instance.   | |
      
  | 
  inlineoverridevirtualnoexcept | 
Returns a std::string that represents the current object.
Reimplemented from xtd::object.