Public Member Functions | |
ASPOSECPP_SHARED_API | Point () |
Constructs a new Point object and initializes its X and Y coordinates values with 0. More... | |
ASPOSECPP_SHARED_API | Point (int x, int y) |
ASPOSECPP_SHARED_API | Point (const Size &size) |
ASPOSECPP_SHARED_API | Point (int dw) |
bool | get_IsEmpty () const |
int | get_X () const |
Returns the value of X coordinate represented by the current object. More... | |
int | get_Y () const |
Returns the value of Y coordinate represented by the current object. More... | |
void | set_X (int value) |
void | set_Y (int value) |
ASPOSECPP_SHARED_API bool | Equals (const Point &point) const |
ASPOSECPP_SHARED_API int | GetHashCode () const |
Returns a hash code for the current object. More... | |
ASPOSECPP_SHARED_API String | ToString () const |
void | Offset (int dx, int dy) |
void | Offset (Point point) |
ASPOSECPP_SHARED_API | operator PointF () const |
ASPOSECPP_SHARED_API | operator Size () const |
bool | IsNull () const |
Always returns false. More... | |
size_t | getStdHash () const |
Returns a hash value for the current object. More... | |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API Point | Add (const Point &point, const Size &size) |
static ASPOSECPP_SHARED_API Point | Subtract (const Point &point, const Size &size) |
static ASPOSECPP_SHARED_API Point | Ceiling (const PointF &point) |
static ASPOSECPP_SHARED_API Point | Truncate (const PointF &point) |
static ASPOSECPP_SHARED_API Point | Round (const PointF &point) |
Static Public Attributes | |
static const ASPOSECPP_SHARED_API Point | Empty |
An empty instance of Point class whose X and Y coordinates values are 0. More... | |
Friends | |
ASPOSECPP_SHARED_API Point | operator+ (const Point &point, const Size &size) |
ASPOSECPP_SHARED_API Point | operator- (const Point &point, const Size &size) |
ASPOSECPP_SHARED_API bool | operator== (const Point &point1, const Point &point2) |
ASPOSECPP_SHARED_API bool | operator!= (const Point &point1, const Point &point2) |
ASPOSECPP_SHARED_API bool | operator< (const Point &point1, const Point &point2) |
Represents a pair of integer X and Y coordinates of a point on a 2-dimensional plane. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
ASPOSECPP_SHARED_API System::Drawing::Point::Point | ( | ) |
Constructs a new Point object and initializes its X and Y coordinates values with 0.
ASPOSECPP_SHARED_API System::Drawing::Point::Point | ( | int | x, |
int | y | ||
) |
Constructs a new Point object and initializes it with the specified values.
x | The value of X coordinate |
y | The value of Y coordinate |
ASPOSECPP_SHARED_API System::Drawing::Point::Point | ( | const Size & | size | ) |
ASPOSECPP_SHARED_API System::Drawing::Point::Point | ( | int | dw | ) |
Constructs a new Point object and initializes its X coordinate value with a value formed by high 16 bits of the specified 32-bit integer and its Y coordinate value with a vale formed by low 16 bits of the specified 32-bit integer value value.
dw | The 32-bit integer value whose high 16 bits specify the X coordinate value and low 16 bits specify the Y coordinate value of the object being created |
|
static |
Adds the width and height values of the specified Size object to the X and Y coordinates values of the specified Point object correspondingly.
point | The point to translate |
size | The Size object that specifies the values to add to the coordinates values of the point |
point
and the width value of size
and Y coordinate value is equal to the sum of Y coordinate value of point
and the height value of size
ASPOSECPP_SHARED_API bool System::Drawing::Point::Equals | ( | const Point & | point | ) | const |
Determines if the current object and the specified object are equal, i.e. represent the same pair of X and Y coordinates values.
point | Point The object to compare the current object with |
|
inline |
Determines if both X and Y coordinates values are equal to 0.
|
inline |
Returns the value of X coordinate represented by the current object.
|
inline |
Returns the value of Y coordinate represented by the current object.
ASPOSECPP_SHARED_API int System::Drawing::Point::GetHashCode | ( | ) | const |
Returns a hash code for the current object.
size_t System::Drawing::Point::getStdHash | ( | ) | const |
Returns a hash value for the current object.
|
inline |
Always returns false.
|
inline |
Offsets the X and Y coordinates value represented by the current object by the specified values.
dx | The value to offset the X coordinate value by |
dy | The value to offset the Y coordinate value by |
|
inline |
ASPOSECPP_SHARED_API System::Drawing::Point::operator PointF | ( | ) | const |
ASPOSECPP_SHARED_API System::Drawing::Point::operator Size | ( | ) | const |
Constructs an instance of Size object and initializes its width and height values with X and Y coordinates values represented by the current object correspondingly.
|
inline |
Sets the value of X coordinate represented by the current object.
value | The value to set |
|
inline |
Sets the value of Y coordinate represented by the current object.
value | The value to set |
|
static |
Subtracts the width and height values of the specified Size object from the X and Y coordinates values of the specified Point object correspondingly.
point | The point to translate |
size | The Size object that specifies the values to subtract from the coordinates values of the point |
size
from the X coordinate value of point
and Y coordinate value is equal to the result of subtraction of the height value of size
from the Y coordinate value of point
ASPOSECPP_SHARED_API String System::Drawing::Point::ToString | ( | ) | const |
Returns the string representation of the pair of X and Y coordinates values represented by the current object.
Determines if the specified Point objects are not equal, i.e. represent the distinct pairs of X and Y coordinates values.
point1 | The first comparand |
point2 | The second comparand |
Adds the width and height values of the specified Size object to the X and Y coordinates values of the specified Point object correspondingly.
point | The point to translate |
size | The Size object that specifies the values to add to the coordinates values of the point |
point
and the width value of size
and Y coordinate value is equal to the sum of Y coordinate value of point
and the height value of size
Subtracts the width and height values of the specified Size object from the X and Y coordinates values of the specified Point object correspondingly.
point | The point to translate |
size | The Size object that specifies the values to subtract from the coordinates values of the point |
size
from the X coordinate value of point
and Y coordinate value is equal to the result of subtraction of the height value of size
from the Y coordinate value of point
Always throws InvalidOperationException.
InvalidOperationException | Always |
Determines if the specified Point objects are equal, i.e. represent the same pair of X and Y coordinates values.
point1 | The first comparand |
point2 | The second comparand |