18#include <Foundation/Foundation.h>
26 inline CGRect toCGRect(
const Rect2& rect)
noexcept {
return CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); }
27 inline Rect2 fromCGRect(
const CGRect& rect)
noexcept {
return Rect2(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); }
Definition Application.hpp:19
std::unique_ptr< T, Deleter > UPtr
UPtr is a smart pointer that owns and manages another object through a pointer and disposes of that o...
Definition SmartPtr.hpp:28
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
TSize2< double > Size2
A structure that contains width and height values.
Definition Rect.hpp:60
TRect2< double > Rect2
Represents a 2D rectangle using real values.
Definition Rect.hpp:240
TPoint2< double > Point2
A type that contains a point in a two-dimensional coordinate system.
Definition Rect.hpp:24