Add 'ExclusiveArch: armv7l' limit build to arm architecture
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / alignment / alignment.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 // CLASS HEADER
18
19 #include <dali-toolkit/public-api/controls/alignment/alignment.h>
20
21 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24
25 #include <dali/integration-api/debug.h>
26 #include <dali-toolkit/internal/controls/alignment/alignment-impl.h>
27
28 namespace Dali
29 {
30
31 namespace Toolkit
32 {
33
34 Alignment::Alignment()
35 {
36 }
37
38 Alignment Alignment::New( Type horizontal, Type vertical )
39 {
40   return Internal::Alignment::New( horizontal, vertical );
41 }
42
43 Alignment::Alignment(const Alignment& alignment)
44 : Control( alignment )
45 {
46 }
47
48 Alignment::~Alignment()
49 {
50 }
51
52 Alignment Alignment::DownCast( BaseHandle handle )
53 {
54   return Control::DownCast<Alignment, Internal::Alignment>(handle);
55 }
56
57 void Alignment::SetAlignmentType( Type type )
58 {
59   GetImpl( *this ).SetAlignmentType( type );
60 }
61
62 Alignment::Type Alignment::GetAlignmentType() const
63 {
64   return GetImpl( *this ).GetAlignmentType();
65 }
66
67 void Alignment::SetScaling( Scaling scaling )
68 {
69   GetImpl( *this ).SetScaling( scaling );
70 }
71
72 Alignment::Scaling Alignment::GetScaling() const
73 {
74   return GetImpl( *this ).GetScaling();
75 }
76
77 void Alignment::SetPadding( const Alignment::Padding& padding )
78 {
79   GetImpl( *this ).SetPadding( padding );
80 }
81
82 const Alignment::Padding& Alignment::GetPadding() const
83 {
84   return GetImpl( *this ).GetPadding();
85 }
86
87 Alignment::Alignment( Internal::Alignment& implementation )
88 : Control( implementation )
89 {
90 }
91
92 Alignment& Alignment::operator=(const Alignment& alignment)
93 {
94   if( &alignment != this )
95   {
96     Control::operator=( alignment );
97   }
98   return *this;
99 }
100
101 Alignment::Alignment( Dali::Internal::CustomActor* internal )
102 : Control( internal )
103 {
104   VerifyCustomActorPointer<Internal::Alignment>(internal);
105 }
106
107 } // namespace Toolkit
108
109 } // namespace Dali