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_EflNode.h
20 * @brief Header file of _EflNode class
22 * This file contains declarations _EflNode class.
25 #ifndef FUI_ANIM_INTERNAL_EFLNODE_H_
26 #define FUI_ANIM_INTERNAL_EFLNODE_H_
29 #include <FGrpFloatRectangle.h>
30 #include <FUiAnimVisualElement.h>
31 #include <FUiAnimVisualElementSurface.h>
33 #include "FUi_Colorf.h"
34 #include "FUiAnim_INativeNode.h"
37 namespace Tizen { namespace Ui { namespace Animations
41 class _VisualElementImpl;
42 class VisualElementSurface;
45 class _OSP_EXPORT_ _EflNode
50 virtual ~_EflNode(void);
52 virtual result Construct(void);
53 virtual result RebuildIfNeeded(const _INativeNode& parent);
56 virtual Handle GetGroupContainer(void) const;
57 virtual result InsertChild(_INativeNode& child, const _INativeNode* pReference, bool above);
58 virtual result RemoveChild(_INativeNode& child);
59 virtual result SetFlushNeeded(void);
60 virtual result Flush(void);
61 virtual result Reconfigure(VisualElementSurface* pSurface, _VisualElementImpl& element, bool surfaceOnly);
62 virtual VisualElementSurface* GetSurface(void) const;
64 Evas* GetEvas(void) const;
66 _Colorf GetBackgroundColor(void) const;
67 result SetBackgroundColor(const _Colorf& backgroundColor);
69 void AddNativeSmartObject(VisualElement& element, Evas_Object* pSmartObject);
70 void SetNativeObject(VisualElement& element, Evas_Object* pNativeObject);
71 void RemoveNativeObject(void);
72 Evas_Object* GetNativeObject(void) const;
75 void AdjustEvasObjectOrder(void);
76 bool AdjustImageHolder(bool useHolder);
78 result ReConstruct(const Evas* pEvas);
79 result ReConstruct(const _NativeLayer& layer);
81 result Destruct(void);
84 _EflNode(const _EflNode& rhs); // no impl.
85 _EflNode& operator =(const _EflNode& rhs); // no impl.
88 VisualElementSurface* __pSurface;
89 VisualElementSurface* __pSharedSurface;
91 Evas_Object* __pSmartObject;
92 Evas_Object* __pClipObject;
93 Evas_Object* __pRectangleObject;
94 Evas_Object* __pImageHolder;
95 Evas_Object* __pNativeSmartObject;
98 VisualElement::RenderOperation __renderOperation;
99 bool __needEvasObjectSync;
100 Tizen::Graphics::FloatRectangle __realBounds;
102 _Colorf __backgroundColor;
104 _NativeLayer* __pLayer;
106 static Evas_Smart* __pStaticSmartClass;
107 static Evas_Smart* __pStaticSmartClassForImageHolder;
109 friend class _INativeNode;
110 friend class _VeDebug;
111 friend class _VisualElementImpl;
112 friend class _EflLayer;
116 }}} // Tizen::Ui::Animations
118 #endif //FUI_ANIM_INTERNAL_EFLNODE_H_