Merge remote-tracking branch 'origin/tizen' into new_text
[platform/core/uifw/dali-demo.git] / examples / text-field / edit-layout-impl.h
1 #ifndef __DALI_DEMO_EDIT_LAYOUT_IMPL_H__
2 #define __DALI_DEMO_EDIT_LAYOUT_IMPL_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include "edit-layout.h"
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace Internal
31 {
32
33 class EditLayout : public Control
34 {
35 public:
36   /**
37    * @copydoc Dali::Toollkit::TextLabel::New()
38    */
39   static Toolkit::EditLayout New();
40
41   /**
42    * @copydoc Dali::Toolkit::EditLayout::SetTopPanel()
43    */
44   void SetTopPanel( Dali::Toolkit::Control panel );
45
46   EditLayout();
47
48   virtual ~EditLayout();
49
50   /**
51    * @copydoc Control::OnInitialize()
52    */
53   virtual void OnInitialize();
54
55   // Size negotiation methods inherited from Internal::Control
56
57   /**
58    * @copydoc Control::OnRelayout()
59    */
60   virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container );
61
62 private:
63
64   // Undefined copy constructor and assignment operators
65   EditLayout(const EditLayout&);
66   EditLayout& operator=(const EditLayout& rhs);
67
68 private:
69
70   Dali::Toolkit::Control mTopPanel;
71 };
72
73 } // namespace Internal
74
75 } // namespace Toolkit
76
77 } // namespace Dali
78
79 #endif // __DALI_DEMO_EDIT_LAYOUT_IMPL_H__