Add 'ExclusiveArch: armv7l' limit build to arm architecture
[platform/core/uifw/dali-toolkit.git] / optional / dali-toolkit / public-api / controls / bubble-effect / bubble-emitter.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 #include <dali-toolkit/public-api/controls/bubble-effect/bubble-emitter.h>
18
19 //INTERNAL INCLUDES
20 #include <dali-toolkit/internal/controls/bubble-effect/bubble-emitter-impl.h>
21
22
23 namespace Dali
24 {
25
26 namespace Toolkit
27 {
28
29 BubbleEmitter::BubbleEmitter()
30 {
31 }
32
33 BubbleEmitter::~BubbleEmitter()
34 {
35 }
36
37 BubbleEmitter::BubbleEmitter( Internal::BubbleEmitter& implementation )
38 : Control( implementation )
39 {
40 }
41
42 BubbleEmitter::BubbleEmitter(Dali::Internal::CustomActor* internal)
43 : Control( internal )
44 {
45   VerifyCustomActorPointer<Internal::BubbleEmitter>( internal );
46 }
47
48 BubbleEmitter BubbleEmitter::New( const Vector2& winSize,
49                                   Image shapeImage,
50                                   unsigned int maximumNumberOfBubble,
51                                   const Vector2& bubbleSizeRange )
52 {
53   return Internal::BubbleEmitter::New( winSize, shapeImage, maximumNumberOfBubble, bubbleSizeRange );
54 }
55
56 BubbleEmitter::BubbleEmitter( const BubbleEmitter& handle )
57 : Control( handle )
58 {
59 }
60
61 BubbleEmitter& BubbleEmitter::operator=( const BubbleEmitter& rhs )
62 {
63   if( &rhs != this )
64   {
65     Control::operator=(rhs);
66   }
67   return *this;
68 }
69
70 BubbleEmitter BubbleEmitter::DownCast( BaseHandle handle )
71 {
72   return Control::DownCast<BubbleEmitter, Internal::BubbleEmitter>( handle );
73 }
74
75 Actor BubbleEmitter::GetRootActor()
76 {
77   return GetImpl(*this).GetRootActor();
78 }
79
80 void BubbleEmitter::SetBackground( Image bgImage, const Vector3& hsvDelta )
81 {
82   GetImpl(*this).SetBackground( bgImage, hsvDelta );
83 }
84
85 void BubbleEmitter::SetShapeImage( Image shapeImage )
86 {
87   GetImpl(*this).SetShapeImage( shapeImage );
88 }
89
90 void BubbleEmitter::SetBubbleScale( float scale )
91 {
92   GetImpl(*this).SetBubbleScale( scale );
93 }
94
95 void BubbleEmitter::SetBubbleDensity( unsigned int density )
96 {
97   GetImpl(*this).SetBubbleDensity( density );
98 }
99
100 void BubbleEmitter::SetBlendMode( bool enable )
101 {
102   GetImpl(*this).SetBlendMode( enable );
103 }
104
105 void BubbleEmitter::EmitBubble( Animation& animation, const Vector2& emitPosition, const Vector2& direction, const Vector2& displacement )
106 {
107   GetImpl(*this).EmitBubble( animation, emitPosition, direction, displacement );
108 }
109
110 void BubbleEmitter::StartExplosion( float duration, float multiple )
111 {
112   GetImpl(*this).StartExplosion( duration, multiple );
113 }
114
115 void BubbleEmitter::Restore()
116 {
117   GetImpl(*this).Restore();
118 }
119
120 } // namespace Toolkit
121
122 } // namespace Dali