From: HeeJu Kang Date: Mon, 9 Sep 2013 09:56:09 +0000 (+0900) Subject: Add GetObject(int) X-Git-Tag: accepted/tizen/20131002.165803^2~180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=472bb2767d0715409e56cf2ccf43b83575babc27;p=platform%2Fframework%2Fnative%2Fuifw.git Add GetObject(int) Change-Id: Id01b3037e73f526bc5f4aa8599347edb3db5112f Signed-off-by: HeeJu Kang --- diff --git a/src/ui/FUi_ControlManager.cpp b/src/ui/FUi_ControlManager.cpp index de6ecc8..a459d14 100644 --- a/src/ui/FUi_ControlManager.cpp +++ b/src/ui/FUi_ControlManager.cpp @@ -303,6 +303,20 @@ _ControlManager::GetObject(const _ControlHandle& handle) const return __objectManager.GetObject(handle); } +_Control* +_ControlManager::GetObject(int handle) +{ + _ControlHandle controlHandle = __objectManager.GetHandle(handle); + return __objectManager.GetObject(controlHandle); +} + +const _Control* +_ControlManager::GetObject(int handle) const +{ + _ControlHandle controlHandle = const_cast<_ControlManager*>(this)->__objectManager.GetHandle(handle); + return __objectManager.GetObject(controlHandle); +} + int _ControlManager::GetUsedHandleCount(void) const { diff --git a/src/ui/inc/FUi_ControlManager.h b/src/ui/inc/FUi_ControlManager.h index 8894258..9e08397 100644 --- a/src/ui/inc/FUi_ControlManager.h +++ b/src/ui/inc/FUi_ControlManager.h @@ -61,6 +61,8 @@ public: _Control* Release(const _ControlHandle& handle); _Control* GetObject(const _ControlHandle& handle); const _Control* GetObject(const _ControlHandle& handle) const; + _Control* GetObject(int handle); + const _Control* GetObject(int handle) const; int GetUsedHandleCount(void) const; // Operations