2 * Copyright (c) 2022 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>
30 ///////////////////////////////////////////////////////////////////////////////////////////////////
32 ///////////////////////////////////////////////////////////////////////////////////////////////////
38 Popup::Popup(const Popup& handle) = default;
40 Popup& Popup::operator=(const Popup& handle) = default;
42 Popup::Popup(Popup&& handle) = default;
44 Popup& Popup::operator=(Popup&& handle) = default;
46 Popup::Popup(Internal::Popup& implementation)
47 : Control(implementation)
51 Popup::Popup(Dali::Internal::CustomActor* internal)
54 VerifyCustomActorPointer<Internal::Popup>(internal);
59 return Internal::Popup::New();
66 Popup Popup::DownCast(BaseHandle handle)
68 return Control::DownCast<Popup, Internal::Popup>(handle);
73 void Popup::SetTitle(Actor titleActor)
75 GetImpl(*this).SetTitle(titleActor);
78 Actor Popup::GetTitle() const
80 return GetImpl(*this).GetTitle();
83 void Popup::SetContent(Actor content)
85 GetImpl(*this).SetContent(content);
88 Actor Popup::GetContent() const
90 return GetImpl(*this).GetContent();
93 void Popup::SetFooter(Actor footer)
95 GetImpl(*this).SetFooter(footer);
98 Actor Popup::GetFooter() const
100 return GetImpl(*this).GetFooter();
103 void Popup::SetDisplayState(Toolkit::Popup::DisplayState displayState)
105 GetImpl(*this).SetDisplayState(displayState);
108 Toolkit::Popup::DisplayState Popup::GetDisplayState() const
110 return GetImpl(*this).GetDisplayState();
115 Popup::TouchedOutsideSignalType& Popup::OutsideTouchedSignal()
117 return GetImpl(*this).OutsideTouchedSignal();
120 Popup::DisplayStateChangeSignalType& Popup::ShowingSignal()
122 return GetImpl(*this).ShowingSignal();
125 Popup::DisplayStateChangeSignalType& Popup::ShownSignal()
127 return GetImpl(*this).ShownSignal();
130 Popup::DisplayStateChangeSignalType& Popup::HidingSignal()
132 return GetImpl(*this).HidingSignal();
135 Popup::DisplayStateChangeSignalType& Popup::HiddenSignal()
137 return GetImpl(*this).HiddenSignal();
140 } // namespace Toolkit