Graphics::TPoint< T > Struct Template Reference
An (x, y) display coordinate. More...
#include <Types.h>
Collaboration diagram for Graphics::TPoint< T >:
Public Member Functions | |
constexpr | TPoint () |
constexpr | TPoint (T x, T y) |
template<typename Q > | |
constexpr | TPoint (TPoint< Q > pt) |
Conversion constructor. More... | |
constexpr | TPoint (Size sz) |
operator bool () const | |
template<typename Q > | |
bool | operator== (TPoint< Q > other) const |
template<typename Q > | |
bool | operator!= (TPoint< Q > other) const |
template<typename Q > | |
constexpr TPoint & | operator+= (TPoint< Q > other) |
template<typename Q > | |
constexpr TPoint & | operator-= (TPoint< Q > other) |
template<typename Q > | |
constexpr TPoint & | operator*= (TPoint< Q > other) |
template<typename Q > | |
constexpr TPoint & | operator*= (Q scalar) |
template<typename Q > | |
constexpr TPoint & | operator/= (TPoint< Q > other) |
template<typename Q > | |
constexpr TPoint & | operator/= (Q scalar) |
template<typename Q > | |
constexpr TPoint & | operator%= (TPoint< Q > other) |
template<typename Q > | |
constexpr TPoint & | operator%= (Q scalar) |
operator uint32_t () const | |
String | toString () const |
Public Attributes | |
T | x {0} |
T | y {0} |
Detailed Description
template<typename T>
struct Graphics::TPoint< T >
An (x, y) display coordinate.
Constructor & Destructor Documentation
◆ TPoint() [1/4]
template<typename T >
|
inlineconstexpr |
◆ TPoint() [2/4]
template<typename T >
|
inlineconstexpr |
◆ TPoint() [3/4]
template<typename T >
template<typename Q >
|
inlineexplicitconstexpr |
Conversion constructor.
◆ TPoint() [4/4]
template<typename T >
|
inlineexplicitconstexpr |
Member Function Documentation
◆ operator bool()
template<typename T >
|
inlineexplicit |
◆ operator uint32_t()
template<typename T >
|
inlineexplicit |
◆ operator!=()
template<typename T >
template<typename Q >
|
inline |
◆ operator%=() [1/2]
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator%=() [2/2]
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator*=() [1/2]
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator*=() [2/2]
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator+=()
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator-=()
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator/=() [1/2]
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator/=() [2/2]
template<typename T >
template<typename Q >
|
inlineconstexpr |
◆ operator==()
template<typename T >
template<typename Q >
|
inline |
◆ toString()
template<typename T >
|
inline |
Member Data Documentation
◆ x
template<typename T >
T Graphics::TPoint< T >::x {0} |
◆ y
template<typename T >
T Graphics::TPoint< T >::y {0} |
The documentation for this struct was generated from the following file: