2#ifndef _aspose_system_drawing_point_f_h_
3#define _aspose_system_drawing_point_f_h_
6#include <system/string.h>
7#include <system/boxed_value.h>
9namespace System {
namespace Drawing {
21 ASPOSECPP_SHARED_API
PointF(
float x,
float y);
31 inline bool get_IsEmpty()
const {
return (m_x == 0.0f && m_y == 0.0f); }
34 inline float get_X()
const {
return m_x; }
36 inline float get_Y()
const {
return m_y; }
40 inline void set_X(
float value) { m_x = value; }
43 inline void set_Y(
float value) { m_y = value; }
134 int GetHashCode()
const {
return (
int)((int)m_x ^ (((
int)m_y << 13) | ((int)m_y >> 19))); }
148 explicit operator bool() {
return true; }
185 template<>
struct IsBoxable<Drawing::PointF> : std::true_type {};
189 class BoxedValue<
System::Drawing::PointF> :
public DefaultBoxedValue<System::Drawing::PointF>
195 : DefaultBoxedValue<
System::Drawing::PointF>(value)
BoxedValue(const T &value)
Constructs an object that represents the specified value boxed.
Definition: boxed_value.h:192
Represents a pair of single-precision floating point X and Y coordinates of a point on a 2-dimensiona...
Definition: point_f.h:14
friend PointF operator+(const PointF &point, const Size &size)
Adds the width and height values of the specified Size object to the X and Y coordinates values of th...
static PointF Add(const PointF &point, const Size &size)
Adds the width and height values of the specified Size object to the X and Y coordinates values of th...
friend PointF operator-(const PointF &point, const Size &size)
Subtracts the width and height values of the specified Size object from the X and Y coordinates value...
friend PointF operator-(const PointF &point, const SizeF &size)
Subtracts the width and height values of the specified SizeF object from the X and Y coordinates valu...
static PointF Subtract(const PointF &point, const Size &size)
Subtracts the width and height values of the specified Size object from the X and Y coordinates value...
static const PointF Empty
An empty instance of PointF class whose X and Y coordinates values are 0.
Definition: point_f.h:131
static PointF Add(const PointF &point, const SizeF &size)
Adds the width and height values of the specified SizeF object to the X and Y coordinates values of t...
PointF(float x, float y)
Constructs a new PointF object and initializes it with the specified values.
friend bool operator<(const PointF &point1, const PointF &point2)
Always throws InvalidOperationException.
friend PointF operator+(const PointF &point, const SizeF &size)
Adds the width and height values of the specified SizeF object to the X and Y coordinates values of t...
bool get_IsEmpty() const
Determines if both X and Y coordinates values are equal to 0.
Definition: point_f.h:31
float get_X() const
Returns the value of X coordinate represented by the current object.
Definition: point_f.h:34
PointF(const SizeF &size)
Constructs a new PointF object and initializes its X and Y coordinates values with the values of widt...
void set_X(float value)
Sets the value of X coordinate represented by the current object.
Definition: point_f.h:40
bool IsNull() const
Always returns false.
Definition: point_f.h:141
bool Equals(const PointF &point) const
Determines if the current object and the specified object are equal, i.e. represent the same pair of ...
System::String ToString() const
Returns the string representation of the pair of X and Y coordinates values represented by the curren...
Definition: point_f.h:138
friend bool operator!=(const PointF &point1, const PointF &point2)
Determines if the specified PointF objects are not equal, i.e. represent the distinct pairs of X and ...
float get_Y() const
Returns the value of Y coordinate represented by the current object.
Definition: point_f.h:36
void set_Y(float value)
Sets the value of Y coordinate represented by the current object.
Definition: point_f.h:43
friend bool operator==(const PointF &point1, const PointF &point2)
Determines if the specified PointF objects are equal, i.e. represent the same pair of X and Y coordin...
PointF()
Constructs a new PointF object and initializes its X and Y coordinates values with 0.
int GetHashCode() const
Returns a hash code for the current object.
Definition: point_f.h:134
static PointF Subtract(const PointF &point, const SizeF &size)
Subtracts the width and height values of the specified SizeF object from the X and Y coordinates valu...
Represents a pair of single-precision floating point values that represent width and height of an ima...
Definition: size_f.h:14
Represents a pair of integer values that represent width and height of an image. This type should be ...
Definition: size.h:14
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
static String Format(const SharedPtr< IFormatProvider > &fp, const String &format, const Args &... args)
Formats string in C# style.
Definition: string.h:1405
std::ostream & operator<<(std::ostream &stream, Color color)
Insert data into the stream using UTF-8 encoding.
Definition: color.h:427
Definition: db_command.h:9