Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::XyType< T > Struct Template Reference

Screen position based on pixels, used to represent upper left corner of a viewport. More...

Public Member Functions

 XyType (T aX=0, T aY=0)
 Constructor initializing x and y to 0 if no values are passed in.
bool operator== (const XyType &item) const
 Comparison operator equal.
bool operator!= (const XyType &item) const
 Comparison operator not equal.

Public Attributes

x
 Horizontal zero-based screen position, in pixels, increasing from left to right.
y
 Vertical zero-based screen position, in pixels, increasing from top to bottom.

Detailed Description

template<typename T>
struct gem::XyType< T >

Screen position based on pixels, used to represent upper left corner of a viewport.

Constructor & Destructor Documentation

◆ XyType()

template<typename T>
gem::XyType< T >::XyType ( T aX = 0,
T aY = 0 )
inline

Constructor initializing x and y to 0 if no values are passed in.

Parameters
aXHorizontal zero-based screen position, in pixels, increasing from left to right.
aYVertical zero-based screen position, in pixels, increasing from top to bottom.

Member Function Documentation

◆ operator!=()

template<typename T>
bool gem::XyType< T >::operator!= ( const XyType< T > & item) const
inline

Comparison operator not equal.

Parameters
itemXyType to compare to.
Returns
True if either x or y are not equal, false otherwise.

◆ operator==()

template<typename T>
bool gem::XyType< T >::operator== ( const XyType< T > & item) const
inline

Comparison operator equal.

Parameters
itemXyType to compare to.
Returns
True if both x and y are equal, false otherwise.