nux-1.16.0
|
00001 #ifndef NUX_CORE_SIZE_INL_H 00002 #define NUX_CORE_SIZE_INL_H 00003 00004 namespace nux 00005 { 00006 00007 inline Size::Size() 00008 : width(0), height(0) 00009 {} 00010 00011 inline Size::Size(int w, int h) 00012 : width(w), height(h) 00013 {} 00014 00015 inline bool operator == (const Size& lhs, const Size& rhs) 00016 { 00017 return (lhs.width == rhs.width) && (lhs.height == rhs.height); 00018 } 00019 00020 inline bool operator != (const Size& lhs, const Size& rhs) 00021 { 00022 return !(lhs == rhs); 00023 } 00024 00025 } 00026 00027 00028 #endif