5#include "../drawing_export.hpp"
8#include <xtd/iequatable>
53 rectangle_f(
float x,
float y,
float width,
float height) noexcept;
91 float bottom() const noexcept;
99 bool is_empty() const noexcept;
103 float left() const noexcept;
114 float right() const noexcept;
125 float top() const noexcept;
134 void add(const drawing::
size_f& sz) noexcept;
139 void add(
float width,
float height) noexcept;
145 bool contains(const
point_f& pt) const noexcept;
156 bool contains(
float x,
float y) const noexcept;
161 bool equals(const
xtd::
object& obj) const noexcept override;
169 xtd::
size get_hash_code() const noexcept override;
174 void inflate(const drawing::
size_f& sz) noexcept;
180 void inflate(
float width,
float height) noexcept;
202 void offset(
float dx,
float dy) noexcept;
206 xtd::
string to_string() const noexcept override;
233 static
rectangle_f from_ltrb(
float left,
float top,
float right,
float bottom) noexcept;
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::drawing::point_f class.
Contains xtd::drawing::size_f class.
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.hpp:35
Stores a set of four floating-point numbers that represent the location and size of a rectangle....
Definition rectangle_f.hpp:34
rectangle_f() noexcept=default
Initializes a new instance of the xtd::drawing::rectagle_f class.
static const rectangle_f empty
Represents a xtd::drawing::rectangle_F that has xtd::drawing::rectagle_f::x, xtd::drawing::rectangle_...
Definition rectangle_f.hpp:39
Stores an ordered pair of floating-point, which specify a height and width.
Definition size_f.hpp:31
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31