5 #include "../drawing_export.h" 8 #include <xtd/iequatable> 10 #include <xtd/ustring> 54 rectangle_f(
float x,
float y,
float width,
float height) noexcept;
72 float bottom() const noexcept;
77 float height() const noexcept;
81 void height(
float height) noexcept;
85 bool is_empty() const noexcept;
89 float left() const noexcept;
93 point_f location() const noexcept;
96 void location(const
point_f& location);
100 float right() const noexcept;
111 float top() const noexcept;
116 float width() const noexcept;
120 void width(
float width) noexcept;
125 float x() const noexcept;
129 void x(
float x) noexcept;
134 float y() const noexcept;
138 void y(
float y) noexcept;
147 void add(const drawing::
size_f& sz) noexcept;
152 void add(
float width,
float height) noexcept;
171 bool contains(const
point_f& pt) const noexcept;
176 bool contains(const
rectangle_f& rect) const noexcept;
182 bool contains(
float x,
float y) const noexcept;
184 bool equals(const
rectangle_f& value) const noexcept override;
193 static
rectangle_f from_ltrb(
float left,
float top,
float right,
float bottom) noexcept;
198 void inflate(const drawing::
size_f& sz) noexcept;
204 void inflate(
float width,
float height) noexcept;
222 bool intersects_with(const
rectangle_f& rect) const noexcept;
231 void make_intersect(const
rectangle_f& rect) noexcept;
245 void offset(const
point_f& pos) noexcept;
249 void offset(
float x,
float y) noexcept;
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Stores a set of four floating-point numbers that represent the location and size of a rectangle...
Definition: rectangle_f.h:34
Contains xtd::drawing::point_f class.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition: point_f.h:35
Stores an ordered pair of floating-point, which specify a height and width.
Definition: size_f.h:31
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
static const rectangle_f empty
Represents a xtd::drawing::rectangle_F that has xtd::drawing::rectagle_f::x, xtd::drawing::rectangle_...
Definition: rectangle_f.h:40
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Contains xtd::drawing::size_f class.