OpenEnroth 2ef3484
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
Size< T > Struct Template Reference

#include <Size.h>

Public Member Functions

constexpr Size ()=default
 
constexpr Size (T w, T h)
 

Public Attributes

w = 0
 
h = 0
 

Friends

constexpr friend Size operator/ (Size l, T r)
 
constexpr friend Point< T > operator+ (Point< T > l, Size r)
 
constexpr friend Point< T > operator- (Point< T > l, Size r)
 
constexpr friend bool operator== (const Size &l, const Size &r)=default
 

Constructor & Destructor Documentation

◆ Size() [1/2]

template<class T >
constexpr Size< T >::Size ( )
constexprdefault

◆ Size() [2/2]

template<class T >
constexpr Size< T >::Size ( w,
h 
)
inlineconstexpr

Friends And Related Function Documentation

◆ operator+

template<class T >
constexpr friend Point< T > operator+ ( Point< T >  l,
Size< T >  r 
)
friend

◆ operator-

template<class T >
constexpr friend Point< T > operator- ( Point< T >  l,
Size< T >  r 
)
friend

◆ operator/

template<class T >
constexpr friend Size operator/ ( Size< T >  l,
r 
)
friend

◆ operator==

template<class T >
constexpr friend bool operator== ( const Size< T > &  l,
const Size< T > &  r 
)
friend

Member Data Documentation

◆ h

template<class T >
T Size< T >::h = 0

◆ w

template<class T >
T Size< T >::w = 0

The documentation for this struct was generated from the following file: