2 * Copyright (c) 2014 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.
18 #include <dali-toolkit/public-api/controls/selectors/rotating-selector.h>
19 #include <dali-toolkit/internal/controls/selectors/rotating-selector-impl.h>
27 const char* const RotatingSelector::SIGNAL_CHECKED = "checked";
29 RotatingSelector::RotatingSelector()
33 RotatingSelector::RotatingSelector( const RotatingSelector& rotatingSelector )
34 : Control( rotatingSelector )
38 RotatingSelector& RotatingSelector::operator=( const RotatingSelector& rotatingSelector )
40 if( &rotatingSelector != this )
42 Control::operator=( rotatingSelector );
49 RotatingSelector::~RotatingSelector()
53 RotatingSelector RotatingSelector::New(Actor& unSelectedActor, Actor& selectedActor)
55 return Internal::RotatingSelector::New(unSelectedActor, selectedActor);
58 RotatingSelector RotatingSelector::DownCast( BaseHandle handle )
60 return Control::DownCast<RotatingSelector, Internal::RotatingSelector>(handle);
63 void RotatingSelector::SetSelected( bool checked )
65 Dali::Toolkit::GetImpl( *this ).SetSelected( checked );
68 bool RotatingSelector::IsSelected() const
70 return Dali::Toolkit::GetImpl( *this ).IsSelected();
73 void RotatingSelector::SetSelectedActor( Actor& selectedActor )
75 Dali::Toolkit::GetImpl( *this ).SetSelectedActor( selectedActor );
78 Actor RotatingSelector::GetSelectedActor()
80 return Dali::Toolkit::GetImpl( *this ).GetSelectedActor();
83 void RotatingSelector::SetUnSelectedActor( Actor& unSelectedActor )
85 Dali::Toolkit::GetImpl( *this ).SetUnSelectedActor( unSelectedActor );
88 Actor RotatingSelector::GetUnSelectedActor()
90 return Dali::Toolkit::GetImpl( *this ).GetUnSelectedActor();
93 void RotatingSelector::SetSelectable( bool selectable )
95 Dali::Toolkit::GetImpl( *this ).SetSelectable( selectable );
98 bool RotatingSelector::IsSelectable()const
100 return Dali::Toolkit::GetImpl( *this ).IsSelectable();
103 RotatingSelector::SelectedSignalV2& RotatingSelector::SelectedSignal()
105 return Dali::Toolkit::GetImpl( *this ).SelectedSignal();
108 RotatingSelector::RotatingSelector( Internal::RotatingSelector& implementation )
109 : Control(implementation)
113 RotatingSelector::RotatingSelector( Dali::Internal::CustomActor* internal )
114 : Control( internal )
116 VerifyCustomActorPointer<Internal::RotatingSelector>(internal);
119 } // namespace Toolkit