Fixed DGEUF-1841.
[platform/core/uifw/dali-demo.git] / examples / transitions / shadow-button.cpp
1 /*
2  * Copyright (c) 2017 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 #include "shadow-button.h"
18 #include "shadow-button-impl.h"
19
20 namespace Demo
21 {
22
23 ShadowButton::ShadowButton()
24 {
25 }
26
27 ShadowButton::ShadowButton( const ShadowButton& control )
28 : Control( control )
29 {
30 }
31
32 ShadowButton& ShadowButton::operator= ( const ShadowButton& rhs )
33 {
34   if( &rhs != this )
35   {
36     Control::operator=( rhs );
37   }
38   return *this;
39 }
40
41 ShadowButton::~ShadowButton()
42 {
43 }
44
45 ShadowButton ShadowButton::New()
46 {
47   ShadowButton control = Internal::ShadowButton::New();
48   return control;
49 }
50
51 ShadowButton ShadowButton::New( const std::string& url )
52 {
53   ShadowButton control = Internal::ShadowButton::New();
54   return control;
55 }
56
57 ShadowButton ShadowButton::DownCast( BaseHandle handle )
58 {
59   return Control::DownCast< ShadowButton, Internal::ShadowButton > ( handle );
60 }
61
62 void ShadowButton::SetActiveState( bool active )
63 {
64   GetImpl(*this).SetActiveState( active );
65 }
66
67 bool ShadowButton::GetActiveState()
68 {
69   return GetImpl(*this).GetActiveState();
70 }
71
72 void ShadowButton::SetCheckState( bool checkState )
73 {
74   GetImpl(*this).SetCheckState( checkState );
75 }
76
77 bool ShadowButton::GetCheckState()
78 {
79   return GetImpl(*this).GetCheckState();
80 }
81
82 ShadowButton::ShadowButton( Internal::ShadowButton& implementation )
83 : Control( implementation )
84 {
85 }
86
87 ShadowButton::ShadowButton( Dali::Internal::CustomActor* internal )
88 : Control( internal )
89 {
90   VerifyCustomActorPointer< Internal::ShadowButton >( internal ) ;
91 }
92
93
94 } //namespace Demo