X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Flayouting%2Flayout-size.h;h=d025ea7c0bb0b816bb67818f477fdd966e64311d;hp=b4802b319c73626b3b377c114de2eb2a3459ef39;hb=a9783f4a9684d20c8b20e34a34e15cae5a773787;hpb=94a17596be5c49de1bd7f19b997b6625a4407083 diff --git a/dali-toolkit/devel-api/layouting/layout-size.h b/dali-toolkit/devel-api/layouting/layout-size.h index b4802b3..d025ea7 100644 --- a/dali-toolkit/devel-api/layouting/layout-size.h +++ b/dali-toolkit/devel-api/layouting/layout-size.h @@ -31,23 +31,17 @@ 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 ) { } - LayoutSize( LayoutLength anX, LayoutLength aY ) - : x( anX.mValue ), - y( aY.mValue ) - { - } - LayoutSize( const LayoutSize& layoutSize ) : x( layoutSize.x ), y( layoutSize.y ) @@ -61,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) + void SetHeight( LayoutLength value ) { - height=value; + height = value; } - void SetWidth(LayoutLength value) - { - width=value.mValue; - } - void SetHeight(LayoutLength value) + + LayoutLength GetHeight() { - height=value.mValue; + return height; } bool operator==( const LayoutSize& rhs ) @@ -100,14 +87,14 @@ public: union { - LayoutLength::IntType x; - LayoutLength::IntType width; + LayoutLength x; + LayoutLength width; }; union { - LayoutLength::IntType y; - LayoutLength::IntType height; + LayoutLength y; + LayoutLength height; }; };