remove (dead) ImageView UI control
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / cluster / cluster-style.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
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
18 #include <dali-toolkit/public-api/controls/cluster/cluster-style.h>
19 #include <dali-toolkit/internal/controls/cluster/cluster-style-impl.h>
20
21 using namespace Dali;
22 using namespace Dali::Toolkit;
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 // ClusterStyle ///////////////////////////////////////////////////////////////
31
32 const unsigned int ClusterStyle::UNLIMITED_CHILDREN = std::numeric_limits<unsigned int>::max();
33
34 ClusterStyle::ClusterStyle()
35 {
36 }
37
38 ClusterStyle::~ClusterStyle()
39 {
40 }
41
42 ClusterStyle::ClusterStyle(Internal::ClusterStyle* internal)
43 : BaseHandle(internal)
44 {
45 }
46
47 unsigned int ClusterStyle::GetMaximumNumberOfChildren() const
48 {
49   return GetImpl(*this).GetMaximumNumberOfChildren();
50 }
51
52 void ClusterStyle::ApplyStyle(Actor child, unsigned int index, AlphaFunction alpha, const TimePeriod& durationSeconds)
53 {
54   GetImpl(*this).ApplyStyle(child, index, alpha, durationSeconds);
55 }
56
57 void ClusterStyle::ApplyStyleToBackground(Actor background, AlphaFunction alpha, const TimePeriod& durationSeconds)
58 {
59   GetImpl(*this).ApplyStyleToBackground(background, alpha, durationSeconds);
60 }
61
62 void ClusterStyle::ApplyStyleToTitle(Actor title, AlphaFunction alpha, const TimePeriod& durationSeconds)
63 {
64   GetImpl(*this).ApplyStyleToTitle(title, alpha, durationSeconds);
65 }
66
67 // ClusterStyleStandard ///////////////////////////////////////////////////////
68
69 ClusterStyleStandard ClusterStyleStandard::New(StyleType style)
70 {
71   Internal::ClusterStylePtr internal = Internal::ClusterStyleStandard::New(style);
72
73   return ClusterStyleStandard(internal.Get());
74 }
75
76 ClusterStyleStandard::ClusterStyleStandard(Internal::ClusterStyle* internal)
77 : ClusterStyle(internal)
78 {
79 }
80
81 // ClusterStyleRandom /////////////////////////////////////////////////////////
82
83 ClusterStyleRandom ClusterStyleRandom::New()
84 {
85   Internal::ClusterStylePtr internal = Internal::ClusterStyleRandom::New();
86
87   return ClusterStyleRandom(internal.Get());
88 }
89
90 ClusterStyleRandom::ClusterStyleRandom(Internal::ClusterStyle* internal)
91 : ClusterStyle(internal)
92 {
93 }
94
95 } // namespace Toolkit
96
97 } // namespace Dali