2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiAnim_DisplayContextImpl.h
20 * @brief This is the header file for the %_DisplayContextImpl class.
22 * This header file contains declarations of the %_DisplayContextImpl class.
25 #ifndef FUI_ANIM_DISPLAY_CONTEXT_IMPL_H
26 #define FUI_ANIM_DISPLAY_CONTEXT_IMPL_H
28 #include <FBaseObject.h>
30 namespace Tizen { namespace Ui { namespace Animations
37 class _OSP_EXPORT_ _DisplayContextImpl
40 explicit _DisplayContextImpl(const _NativeLayer& layer);
41 virtual ~_DisplayContextImpl(void);
42 result SetPublicInstance(DisplayContext* pInstance);
43 DisplayContext* GetPublicInstance(void);
44 result SetNativeLayer(const Tizen::Ui::Animations::_NativeLayer& layer);
45 _NativeLayer* GetNativeLayer(void) const { return __pLayer;};
46 static DisplayContext* CreatePublicInstance(const _NativeLayer& layer);
47 static result DestroyPublicInstance(const DisplayContext& displayContext);
48 static _DisplayContextImpl* GetInstance(DisplayContext& displayContext);
49 static const _DisplayContextImpl* GetInstance(const DisplayContext& displayContext);
53 friend class DisplayContext;
54 DisplayContext* _pPublicInstance;
55 Tizen::Ui::Animations::_NativeLayer* __pLayer;
59 }}} //namespace Tizen { namespace Ui { namespace Animations
61 #endif //FUI_ANIM_DISPLAY_CONTEXT_IMPL_H