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/popup/popup.h>
22 #include <dali-toolkit/internal/controls/popup/popup-impl.h>
32 ///////////////////////////////////////////////////////////////////////////////////////////////////
34 ///////////////////////////////////////////////////////////////////////////////////////////////////
40 Popup::Popup( const Popup& handle )
45 Popup& Popup::operator=( const Popup& handle )
49 Control::operator=( handle );
54 Popup::Popup(Internal::Popup& implementation)
55 : Control(implementation)
59 Popup::Popup( Dali::Internal::CustomActor* internal )
62 VerifyCustomActorPointer<Internal::Popup>(internal);
67 return Internal::Popup::New();
74 Popup Popup::DownCast( BaseHandle handle )
76 return Control::DownCast<Popup, Internal::Popup>(handle);
81 void Popup::SetTitle( Actor titleActor )
83 GetImpl( *this ).SetTitle( titleActor );
86 Actor Popup::GetTitle() const
88 return GetImpl( *this ).GetTitle();
91 void Popup::SetContent( Actor content )
93 GetImpl( *this ).SetContent( content );
96 Actor Popup::GetContent() const
98 return GetImpl( *this ).GetContent();
101 void Popup::SetFooter( Actor footer )
103 GetImpl( *this ).SetFooter( footer );
106 Actor Popup::GetFooter() const
108 return GetImpl( *this ).GetFooter();
111 void Popup::SetDisplayState( Toolkit::Popup::DisplayState displayState )
113 GetImpl( *this ).SetDisplayState( displayState );
116 Toolkit::Popup::DisplayState Popup::GetDisplayState() const
118 return GetImpl( *this ).GetDisplayState();
123 Popup::TouchedOutsideSignalType& Popup::OutsideTouchedSignal()
125 return GetImpl( *this ).OutsideTouchedSignal();
128 Popup::DisplayStateChangeSignalType& Popup::ShowingSignal()
130 return GetImpl( *this ).ShowingSignal();
133 Popup::DisplayStateChangeSignalType& Popup::ShownSignal()
135 return GetImpl( *this ).ShownSignal();
138 Popup::DisplayStateChangeSignalType& Popup::HidingSignal()
140 return GetImpl( *this ).HidingSignal();
143 Popup::DisplayStateChangeSignalType& Popup::HiddenSignal()
145 return GetImpl( *this ).HiddenSignal();
148 } // namespace Toolkit