/* ========================================================================== * ÆÄ ÀÏ : UISize.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2006.09.30 * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once /// UI ³ëµåÀÇ Å©±â template class tUISize { public: tUISize(); tUISize( T width, T height ); tUISize( const tUISize& other ); bool operator == ( const tUISize& other ) const; bool operator != ( const tUISize& other ) const; const tUISize& operator = ( const tUISize& other ); public: T mWidth; T mHeight; }; template inline tUISize::tUISize() : mWidth( 0 ) , mHeight( 0 ) { } template inline tUISize::tUISize( T width, T height ) : mWidth( width ) , mHeight( height ) { } template inline tUISize::tUISize( const tUISize& other ) : mWidth( other.mWidth ) , mHeight( other.mHeight ) { } template inline bool tUISize::operator == ( const tUISize& other ) const { return mWidth == other.mWidth && mHeight == other.mHeight; } template inline bool tUISize::operator != ( const tUISize& other ) const { return mWidth != other.mWidth || mHeight != other.mHeight; } template inline const tUISize& tUISize::operator = ( const tUISize& other ) { mWidth = other.mWidth; mHeight = other.mHeight; return *this; }