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 TPointoperator+= (TPoint< Q > other)
 
template<typename Q >
constexpr TPointoperator-= (TPoint< Q > other)
 
template<typename Q >
constexpr TPointoperator*= (TPoint< Q > other)
 
template<typename Q >
constexpr TPointoperator*= (Q scalar)
 
template<typename Q >
constexpr TPointoperator/= (TPoint< Q > other)
 
template<typename Q >
constexpr TPointoperator/= (Q scalar)
 
template<typename Q >
constexpr TPointoperator%= (TPoint< Q > other)
 
template<typename Q >
constexpr TPointoperator%= (Q scalar)
 
 operator uint32_t () const
 
String toString () const
 

Public Attributes

x {0}
 
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 >
constexpr Graphics::TPoint< T >::TPoint ( )
inlineconstexpr

◆ TPoint() [2/4]

template<typename T >
constexpr Graphics::TPoint< T >::TPoint ( x,
y 
)
inlineconstexpr

◆ TPoint() [3/4]

template<typename T >
template<typename Q >
constexpr Graphics::TPoint< T >::TPoint ( TPoint< Q >  pt)
inlineexplicitconstexpr

Conversion constructor.

◆ TPoint() [4/4]

template<typename T >
constexpr Graphics::TPoint< T >::TPoint ( Size  sz)
inlineexplicitconstexpr

Member Function Documentation

◆ operator bool()

template<typename T >
Graphics::TPoint< T >::operator bool ( ) const
inlineexplicit

◆ operator uint32_t()

template<typename T >
Graphics::TPoint< T >::operator uint32_t ( ) const
inlineexplicit

◆ operator!=()

template<typename T >
template<typename Q >
bool Graphics::TPoint< T >::operator!= ( TPoint< Q >  other) const
inline

◆ operator%=() [1/2]

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator%= ( scalar)
inlineconstexpr

◆ operator%=() [2/2]

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator%= ( TPoint< Q >  other)
inlineconstexpr

◆ operator*=() [1/2]

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator*= ( scalar)
inlineconstexpr

◆ operator*=() [2/2]

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator*= ( TPoint< Q >  other)
inlineconstexpr

◆ operator+=()

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator+= ( TPoint< Q >  other)
inlineconstexpr

◆ operator-=()

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator-= ( TPoint< Q >  other)
inlineconstexpr

◆ operator/=() [1/2]

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator/= ( scalar)
inlineconstexpr

◆ operator/=() [2/2]

template<typename T >
template<typename Q >
constexpr TPoint& Graphics::TPoint< T >::operator/= ( TPoint< Q >  other)
inlineconstexpr

◆ operator==()

template<typename T >
template<typename Q >
bool Graphics::TPoint< T >::operator== ( TPoint< Q >  other) const
inline

◆ toString()

template<typename T >
String Graphics::TPoint< T >::toString ( ) const
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: