X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Flayouting%2Flayout-size.h;h=d025ea7c0bb0b816bb67818f477fdd966e64311d;hb=b8c53c32af48487b8d5178425ecf8f801e44ad4d;hp=c5ab2dde76d88e57df9cff619ba68fe0da797ca2;hpb=16634ab902b66b0ba2f3f39af8ff6ed25b5f7115;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/layouting/layout-size.h b/dali-toolkit/devel-api/layouting/layout-size.h index c5ab2dd..d025ea7 100644 --- a/dali-toolkit/devel-api/layouting/layout-size.h +++ b/dali-toolkit/devel-api/layouting/layout-size.h @@ -31,12 +31,12 @@ class LayoutSize { public: LayoutSize() - : x(0u), - y(0u) + : x( 0 ), + y( 0 ) { } - LayoutSize( LayoutLength::IntType anX, LayoutLength::IntType aY ) + LayoutSize( LayoutLength anX, LayoutLength aY ) : x( anX ), y( aY ) { @@ -55,31 +55,24 @@ public: return *this; } - LayoutLength::IntType GetWidth() + void SetWidth( LayoutLength value ) { - return width; + width = value; } - LayoutLength::IntType GetHeight() + LayoutLength GetWidth() { - return height; + return width; } - void SetWidth(LayoutLength::IntType value) - { - width=value; - } - void SetHeight(LayoutLength::IntType value) - { - height=value; - } - void SetWidth(LayoutLength value) + void SetHeight( LayoutLength value ) { - width=value.mValue; + height = value; } - void SetHeight(LayoutLength value) + + LayoutLength GetHeight() { - height=value.mValue; + return height; } bool operator==( const LayoutSize& rhs ) @@ -87,16 +80,21 @@ public: return x==rhs.x && y==rhs.y; } + bool operator!=( const LayoutSize& rhs ) + { + return !( *this==rhs ); + } + union { - LayoutLength::IntType x; - LayoutLength::IntType width; + LayoutLength x; + LayoutLength width; }; union { - LayoutLength::IntType y; - LayoutLength::IntType height; + LayoutLength y; + LayoutLength height; }; };