2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali-toolkit/devel-api/controls/bubble-effect/bubble-emitter.h>
22 #include <dali-toolkit/internal/controls/bubble-effect/bubble-emitter-impl.h>
31 BubbleEmitter::BubbleEmitter()
35 BubbleEmitter::~BubbleEmitter()
39 BubbleEmitter::BubbleEmitter( Internal::BubbleEmitter& implementation )
40 : Control( implementation )
44 BubbleEmitter::BubbleEmitter(Dali::Internal::CustomActor* internal)
47 VerifyCustomActorPointer<Internal::BubbleEmitter>( internal );
50 BubbleEmitter BubbleEmitter::New( const Vector2& winSize,
52 unsigned int maximumNumberOfBubble,
53 const Vector2& bubbleSizeRange )
55 return Internal::BubbleEmitter::New( winSize, shapeImage, maximumNumberOfBubble, bubbleSizeRange );
58 BubbleEmitter::BubbleEmitter( const BubbleEmitter& handle )
63 BubbleEmitter& BubbleEmitter::operator=( const BubbleEmitter& rhs )
67 Control::operator=(rhs);
72 BubbleEmitter BubbleEmitter::DownCast( BaseHandle handle )
74 return Control::DownCast<BubbleEmitter, Internal::BubbleEmitter>( handle );
77 Actor BubbleEmitter::GetRootActor()
79 return GetImpl(*this).GetRootActor();
82 void BubbleEmitter::SetBackground( Image bgImage, const Vector3& hsvDelta )
84 GetImpl(*this).SetBackground( bgImage, hsvDelta );
87 void BubbleEmitter::SetShapeImage( Image shapeImage )
89 GetImpl(*this).SetShapeImage( shapeImage );
92 void BubbleEmitter::SetBubbleScale( float scale )
94 GetImpl(*this).SetBubbleScale( scale );
97 void BubbleEmitter::SetBubbleDensity( unsigned int density )
99 GetImpl(*this).SetBubbleDensity( density );
102 void BubbleEmitter::EmitBubble( Animation& animation, const Vector2& emitPosition, const Vector2& direction, const Vector2& displacement )
104 GetImpl(*this).EmitBubble( animation, emitPosition, direction, displacement );
107 void BubbleEmitter::Restore()
109 GetImpl(*this).Restore();
112 } // namespace Toolkit