Add void _Control::UpdateClientBounds() API
authorjaewon7.cho <jaewon7.cho@samsung.com>
Tue, 19 Mar 2013 09:22:22 +0000 (18:22 +0900)
committerjaewon7.cho <jaewon7.cho@samsung.com>
Tue, 19 Mar 2013 09:54:32 +0000 (18:54 +0900)
Change-Id: I1e5a285196d0598504ec516c53a65181a18b747a
Signed-off-by: jaewon7.cho <jaewon7.cho@samsung.com>
src/ui/FUi_Control.cpp [changed mode: 0644->0755]
src/ui/FUi_ControlImpl.cpp [changed mode: 0644->0755]
src/ui/inc/FUi_Control.h [changed mode: 0644->0755]
src/ui/inc/FUi_ControlImpl.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b70ec64..9e62ed2
@@ -2952,7 +2952,7 @@ _Control::IsInSizeRange(const FloatDimension& size) const
 
 // Custom Exception: ex) Location::Map
 result
-_Control::SetBoundsFinal(const FloatRectangle& newBounds, bool changeLayoutBaseRect, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement)
+_Control::SetBoundsFinal(const FloatRectangle& newBounds, bool changeLayoutBaseRect, bool callBoundsChangeCallbacks)
 {
        result r = E_SUCCESS;
 
@@ -2979,7 +2979,7 @@ _Control::SetBoundsFinal(const FloatRectangle& newBounds, bool changeLayoutBaseR
                }
        }
 
-       if ((moved || resized) && callUpdateBoundsOfVisualElement)
+       if (moved || resized)
        {
                const FloatRectangle fbounds(bounds.x, bounds.y, bounds.width, bounds.height);
                if (IsLayoutChangable() == false)
@@ -3062,7 +3062,7 @@ _Control::AdjustSizeToRange(void)
 // Custom Exception: ex) Location::Map
 // E_INVALID_ARG
 result
-_Control::SetBoundsInternal(const FloatRectangle& bounds, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement)
+_Control::SetBoundsInternal(const FloatRectangle& bounds, bool callBoundsChangeCallbacks)
 {
        SysTryReturn(NID_UI,
                                IsInSizeRange(Dimension(bounds.width, bounds.height)), E_INVALID_ARG,
@@ -3072,14 +3072,14 @@ _Control::SetBoundsInternal(const FloatRectangle& bounds, bool callBoundsChangeC
 
        SetUpdateLayoutState(true);
 
-       return SetBoundsFinal(bounds, true, callBoundsChangeCallbacks, callUpdateBoundsOfVisualElement);
+       return SetBoundsFinal(bounds, true, callBoundsChangeCallbacks);
 }
 
 // Custom Exception: ex) Location::Map
 // E_INVALID_ARG
 // E_UNSUPPORTED_OPERATION
 result
-_Control::SetBounds(const Rectangle& bounds, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement)
+_Control::SetBounds(const Rectangle& bounds, bool callBoundsChangeCallbacks)
 {
        ClearLastResult();
 
@@ -3091,14 +3091,14 @@ _Control::SetBounds(const Rectangle& bounds, bool callBoundsChangeCallbacks, boo
        }
        FloatRectangle floatBounds(bounds.x, bounds.y, bounds.width, bounds.height);
 
-       return SetBoundsInternal(floatBounds, callBoundsChangeCallbacks, callUpdateBoundsOfVisualElement);
+       return SetBoundsInternal(floatBounds, callBoundsChangeCallbacks);
 }
 
 // Custom Exception: ex) Location::Map
 // E_INVALID_ARG
 // E_UNSUPPORTED_OPERATION
 result
-_Control::SetBounds(const FloatRectangle& bounds, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement)
+_Control::SetBounds(const FloatRectangle& bounds, bool callBoundsChangeCallbacks)
 {
        ClearLastResult();
 
@@ -3109,7 +3109,7 @@ _Control::SetBounds(const FloatRectangle& bounds, bool callBoundsChangeCallbacks
                                        E_UNSUPPORTED_OPERATION, "[E_UNSUPPORTED_OPERATION] Not movable nor resizable.");
        }
 
-       return SetBoundsInternal(bounds, callBoundsChangeCallbacks, callUpdateBoundsOfVisualElement);
+       return SetBoundsInternal(bounds, callBoundsChangeCallbacks);
 }
 
 // A custom Exception can occur. ex) Location::Map
@@ -3547,6 +3547,12 @@ _Control::IsCalledSetClientBounds(void)
        return __isSetClientBounds;
 }
 
+void 
+_Control::UpdateClientBounds(const FloatDimension& size)
+{
+
+}
+
 Color
 _Control::GetBackgroundColor(void) const
 {
old mode 100644 (file)
new mode 100755 (executable)
index 648ad10..266ee2e
@@ -3607,17 +3607,17 @@ _ControlImpl::UpdateBuilderSize(const Tizen::Graphics::FloatDimension& dimension
 }
 
 result
-_ControlImpl::SetBounds(const Rectangle& bounds, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement)
+_ControlImpl::SetBounds(const Rectangle& bounds, bool callBoundsChangeCallbacks)
 {
        UpdateBuilderBounds(_CoordinateSystemUtils::ConvertToFloat(bounds));
-       return GetCore().SetBounds(bounds, callBoundsChangeCallbacks, callUpdateBoundsOfVisualElement);
+       return GetCore().SetBounds(bounds, callBoundsChangeCallbacks);
 }
 
 result
-_ControlImpl::SetBounds(const FloatRectangle& bounds, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement)
+_ControlImpl::SetBounds(const FloatRectangle& bounds, bool callBoundsChangeCallbacks)
 {
        UpdateBuilderBounds(bounds);
-       return GetCore().SetBounds(bounds, callBoundsChangeCallbacks, callUpdateBoundsOfVisualElement);
+       return GetCore().SetBounds(bounds, callBoundsChangeCallbacks);
 }
 
 result
old mode 100644 (file)
new mode 100755 (executable)
index 0a070d6..c787aca
@@ -417,8 +417,8 @@ public:
        Tizen::Graphics::FloatPoint GetPositionF(void) const;
        Tizen::Graphics::Dimension GetSize(void) const;
        Tizen::Graphics::FloatDimension GetSizeF(void) const;
-       result SetBounds(const Tizen::Graphics::Rectangle& bounds, bool callBoundsChangeCallbacks = true, bool callUpdateBoundsOfVisualElement = true);
-       result SetBounds(const Tizen::Graphics::FloatRectangle& bounds, bool callBoundsChangeCallbacks = true, bool callUpdateBoundsOfVisualElement = true);
+       result SetBounds(const Tizen::Graphics::Rectangle& bounds, bool callBoundsChangeCallbacks = true);
+       result SetBounds(const Tizen::Graphics::FloatRectangle& bounds, bool callBoundsChangeCallbacks = true);
        result SetPosition(const Tizen::Graphics::Point& position);
        result SetPosition(const Tizen::Graphics::FloatPoint& position);
        result SetSize(const Tizen::Graphics::Dimension& size);
@@ -446,6 +446,7 @@ public:
        result SetClientBounds(const Tizen::Graphics::Rectangle& bounds);
        result SetClientBounds(const Tizen::Graphics::FloatRectangle& bounds);
        bool IsCalledSetClientBounds(void);
+       virtual void UpdateClientBounds(const Tizen::Graphics::FloatDimension& size);
 
        bool Contains(const Tizen::Graphics::Point& point) const;
        bool Contains(const Tizen::Graphics::FloatPoint& point) const;
@@ -541,8 +542,8 @@ private:
        bool IsInSizeRange(const Tizen::Graphics::Dimension& size) const;
        bool IsInSizeRange(const Tizen::Graphics::FloatDimension& size) const;
        result AdjustSizeToRange(void);
-       result SetBoundsInternal(const Tizen::Graphics::FloatRectangle& bounds, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement = true);
-       result SetBoundsFinal(const Tizen::Graphics::FloatRectangle& newBounds, bool changeLayoutBaseRect, bool callBoundsChangeCallbacks, bool callUpdateBoundsOfVisualElement = true);
+       result SetBoundsInternal(const Tizen::Graphics::FloatRectangle& bounds, bool callBoundsChangeCallbacks);
+       result SetBoundsFinal(const Tizen::Graphics::FloatRectangle& newBounds, bool changeLayoutBaseRect, bool callBoundsChangeCallbacks);
        result UpdateBoundsOfVisualElement(const Tizen::Graphics::FloatRectangle& controlBounds);
        result AdjustAbsoluteBounds(void);
 
old mode 100644 (file)
new mode 100755 (executable)
index 364199f..b78d2a7
@@ -262,8 +262,8 @@ public:
        Tizen::Graphics::FloatPoint GetPositionF(void) const;
        Tizen::Graphics::Dimension GetSize(void) const;
        Tizen::Graphics::FloatDimension GetSizeF(void) const;
-       result SetBounds(const Tizen::Graphics::Rectangle& bounds, bool callBoundsChangeCallbacks = true, bool callUpdateBoundsOfVisualElement = true);
-       result SetBounds(const Tizen::Graphics::FloatRectangle& bounds, bool callBoundsChangeCallbacks = true, bool callUpdateBoundsOfVisualElement = true);
+       result SetBounds(const Tizen::Graphics::Rectangle& bounds, bool callBoundsChangeCallbacks = true);
+       result SetBounds(const Tizen::Graphics::FloatRectangle& bounds, bool callBoundsChangeCallbacks = true);
        result SetBoundsAndUpdateLayout(const Tizen::Graphics::Rectangle& bounds);
        result SetBoundsAndUpdateLayoutF(const Tizen::Graphics::FloatRectangle& bounds);
        result SetPosition(const Tizen::Graphics::Point& position);