emailuis/uicomponents/src/fscontrolbarmodel.cpp
changeset 1 12c456ceeff2
parent 0 8466d47a6819
child 2 5253a20d2a1e
--- a/emailuis/uicomponents/src/fscontrolbarmodel.cpp	Thu Dec 17 08:39:21 2009 +0200
+++ b/emailuis/uicomponents/src/fscontrolbarmodel.cpp	Thu Jan 07 12:38:38 2010 +0200
@@ -496,6 +496,26 @@
         }
     }
 
+// ---------------------------------------------------------------------------
+// Set new position and size
+// ---------------------------------------------------------------------------
+//
+void CFsControlBarModel::SetRect( const TRect& aRect )
+    {
+    iSize = aRect.Size();
+    iWidthUseDefault = EFalse;
+    iHeightUseDefault = EFalse;
+    iTl = aRect.iTl;
+    }
+
+// ---------------------------------------------------------------------------
+// Get top-left position of the bar
+// ---------------------------------------------------------------------------
+//
+TPoint CFsControlBarModel::Pos() const
+    {
+    return iTl;
+    }
 
 // ---------------------------------------------------------------------------
 // Sets width in pixels of controlbar and refreshes control.