2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
17 #include <dali-toolkit/public-api/controls/selectors/rotating-selector.h>
18 #include <dali-toolkit/internal/controls/selectors/rotating-selector-impl.h>
26 const char* const RotatingSelector::SIGNAL_CHECKED = "checked";
28 RotatingSelector::RotatingSelector()
32 RotatingSelector::RotatingSelector( const RotatingSelector& rotatingSelector )
33 : Control( rotatingSelector )
37 RotatingSelector& RotatingSelector::operator=( const RotatingSelector& rotatingSelector )
39 if( &rotatingSelector != this )
41 Control::operator=( rotatingSelector );
48 RotatingSelector::~RotatingSelector()
52 RotatingSelector RotatingSelector::New(Actor& unSelectedActor, Actor& selectedActor)
54 return Internal::RotatingSelector::New(unSelectedActor, selectedActor);
57 RotatingSelector RotatingSelector::DownCast( BaseHandle handle )
59 return Control::DownCast<RotatingSelector, Internal::RotatingSelector>(handle);
62 void RotatingSelector::SetSelected( bool checked )
64 Dali::Toolkit::GetImpl( *this ).SetSelected( checked );
67 bool RotatingSelector::IsSelected() const
69 return Dali::Toolkit::GetImpl( *this ).IsSelected();
72 void RotatingSelector::SetSelectedActor( Actor& selectedActor )
74 Dali::Toolkit::GetImpl( *this ).SetSelectedActor( selectedActor );
77 Actor RotatingSelector::GetSelectedActor()
79 return Dali::Toolkit::GetImpl( *this ).GetSelectedActor();
82 void RotatingSelector::SetUnSelectedActor( Actor& unSelectedActor )
84 Dali::Toolkit::GetImpl( *this ).SetUnSelectedActor( unSelectedActor );
87 Actor RotatingSelector::GetUnSelectedActor()
89 return Dali::Toolkit::GetImpl( *this ).GetUnSelectedActor();
92 void RotatingSelector::SetSelectable( bool selectable )
94 Dali::Toolkit::GetImpl( *this ).SetSelectable( selectable );
97 bool RotatingSelector::IsSelectable()const
99 return Dali::Toolkit::GetImpl( *this ).IsSelectable();
102 RotatingSelector::SelectedSignalV2& RotatingSelector::SelectedSignal()
104 return Dali::Toolkit::GetImpl( *this ).SelectedSignal();
107 RotatingSelector::RotatingSelector( Internal::RotatingSelector& implementation )
108 : Control(implementation)
112 RotatingSelector::RotatingSelector( Dali::Internal::CustomActor* internal )
113 : Control( internal )
115 VerifyCustomActorPointer<Internal::RotatingSelector>(internal);
118 } // namespace Toolkit