6#include <xtd/iequatable>
63 [[nodiscard]] auto
is_empty() const noexcept ->
bool;
80 [[nodiscard]] auto
equals(const
xtd::
object& obj) const noexcept ->
bool override;
84 [[nodiscard]] auto
equals(const
point_f& other) const noexcept ->
bool override;
93 auto
offset(
float dx,
float dy) noexcept ->
void;
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains drawing_export_ keyword.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.hpp:35
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
static auto subtract(const point_f &pt, const xtd::drawing::size &sz) noexcept -> point_f
Returns the result of subtracting specified xtd::drawing::size from the specified xtd::drawing::point...
auto is_empty() const noexcept -> bool
Gets a value indicating whether this xtd::drawing::point_f is empty.
static const point_f empty
Represents a xtd::drawing::point_f that has xtd::drawing::point_f::x and xtd::drawing::point_f::y val...
Definition point_f.hpp:40
static auto add(const point_f &pt, const xtd::drawing::size &sz) noexcept -> point_f
Adds the specified xtd::drawing::size to the specified xtd::drawing::point_f.
float x
Gets or sets the x-coordinate of this xtd::drawing::point_f.
Definition point_f.hpp:67
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto to_string() const noexcept -> xtd::string override
Converts this point to a human-readable string.
float y
Gets or sets the y-coordinate of this xtd::drawing::point_f.
Definition point_f.hpp:71
auto offset(float dx, float dy) noexcept -> void
Translates this xtd::drawing::point_f by the specified amount.
point_f() noexcept=default
Initializes a new instance of the xtd::drawing::point_f class.
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54
Stores an ordered pair of floating-point, which specify a height and width.
Definition size_f.hpp:32
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:32