10#include "../drawing_export.h" 
   38      bool operator==(
const point_f& value)
 const {
return x_ == value.x_ && y_ == value.y_;}
 
   40      bool operator!=(
const point_f& value)
 const {
return !operator==(value);}
 
   42      bool is_empty()
 const {
return *
this == point_f::empty;}
 
   44      void offset(
const point_f& pt) {offset(pt.x_, pt.y_);}
 
   46      void offset(
float dx, 
float dy) {
 
   51      xtd::ustring to_string() const noexcept
 override {
return "{x=" + std::to_string(x_) + 
", y=" + std::to_string(y_) + 
"}";}
 
   53      float x()
 const {
return x_;}
 
   55      void x(
float x) {x_ = 
x;}
 
   57      float y()
 const {
return y_;}
 
   59      void y(
float y) {y_ = 
y;}
 
   63        return os << 
point.to_string();
 
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition: point_f.h:26
 
xtd::ustring to_string() const noexcept override
Returns a std::string that represents the current object.
Definition: point_f.h:51
 
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
 
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
 
#define drawing_export_
Define shared library export.
Definition: drawing_export.h:13
 
size_t size
Represents a size of any object in bytes.
Definition: types.h:171
 
@ point
Specifies a printer's point (1/72 inch) as the unit of measure.
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
 
Contains xtd::object class.
 
Contains xtd::ustring class.