Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiAnim_INativeNode.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://floralicense.org/license/
10 //
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.
16 //
17
18 /**
19  * @file        FUiAnim_INativeNode.h
20  * @brief       Header file of  _INativeNode class
21  *
22  * This file contains declarations _INativeNode class.
23  */
24
25 #ifndef _FUI_ANIM_INTERNAL_INATIVENODE_H_
26 #define _FUI_ANIM_INTERNAL_INATIVENODE_H_
27
28 #include <FGrpFloatRectangle.h>
29
30 namespace Tizen { namespace Ui { namespace Animations
31 {
32
33 class _VisualElementImpl;
34 class VisualElementSurface;
35
36 class _OSP_EXPORT_ _INativeNode
37 {
38 protected:
39         _INativeNode(void);
40 public:
41         virtual ~_INativeNode(void);
42         static _INativeNode* CreateInstanceN(void);
43
44         virtual result Construct(void) = 0;
45         virtual result RebuildIfNeeded(const _INativeNode& parent) = 0;
46
47 public:
48         virtual result InsertChild(_INativeNode& child, const _INativeNode* pReference, bool above) = 0;
49         virtual result RemoveChild(_INativeNode& child) = 0;
50         virtual result SetFlushNeeded(void) = 0;
51         virtual result Flush(void) = 0;
52         virtual result Reconfigure(VisualElementSurface* pSurface, _VisualElementImpl& element, bool surfaceOnly) = 0;
53         virtual VisualElementSurface* GetSurface(void) const = 0;
54
55 private:
56         _INativeNode(const _INativeNode& rhs);              // no impl.
57         _INativeNode& operator =(const _INativeNode& rhs);  // no impl.
58 };              // _INativeNode
59
60
61 }}}             // Tizen::Ui::Animations
62
63 #endif  // _FUI_ANIM_INTERNAL_INATIVENODE_H_