Removed dangerous implicit float conversion from LayoutLength and removed some of...
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / layouting / layout-size.h
index c5ab2dd..b4802b3 100644 (file)
@@ -42,6 +42,12 @@ public:
   {
   }
 
+  LayoutSize( LayoutLength anX, LayoutLength aY )
+  : x( anX.mValue ),
+    y( aY.mValue )
+  {
+  }
+
   LayoutSize( const LayoutSize& layoutSize )
   : x( layoutSize.x ),
     y( layoutSize.y )
@@ -87,6 +93,11 @@ public:
     return x==rhs.x && y==rhs.y;
   }
 
+  bool operator!=( const LayoutSize& rhs )
+  {
+    return !( *this==rhs );
+  }
+
   union
   {
     LayoutLength::IntType x;