2 * Copyright (c) 2020 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)
43 Popup& Popup::operator=(const Popup& handle)
47 Control::operator=(handle);
52 Popup::Popup(Internal::Popup& implementation)
53 : Control(implementation)
57 Popup::Popup(Dali::Internal::CustomActor* internal)
60 VerifyCustomActorPointer<Internal::Popup>(internal);
65 return Internal::Popup::New();
72 Popup Popup::DownCast(BaseHandle handle)
74 return Control::DownCast<Popup, Internal::Popup>(handle);
79 void Popup::SetTitle(Actor titleActor)
81 GetImpl(*this).SetTitle(titleActor);
84 Actor Popup::GetTitle() const
86 return GetImpl(*this).GetTitle();
89 void Popup::SetContent(Actor content)
91 GetImpl(*this).SetContent(content);
94 Actor Popup::GetContent() const
96 return GetImpl(*this).GetContent();
99 void Popup::SetFooter(Actor footer)
101 GetImpl(*this).SetFooter(footer);
104 Actor Popup::GetFooter() const
106 return GetImpl(*this).GetFooter();
109 void Popup::SetDisplayState(Toolkit::Popup::DisplayState displayState)
111 GetImpl(*this).SetDisplayState(displayState);
114 Toolkit::Popup::DisplayState Popup::GetDisplayState() const
116 return GetImpl(*this).GetDisplayState();
121 Popup::TouchedOutsideSignalType& Popup::OutsideTouchedSignal()
123 return GetImpl(*this).OutsideTouchedSignal();
126 Popup::DisplayStateChangeSignalType& Popup::ShowingSignal()
128 return GetImpl(*this).ShowingSignal();
131 Popup::DisplayStateChangeSignalType& Popup::ShownSignal()
133 return GetImpl(*this).ShownSignal();
136 Popup::DisplayStateChangeSignalType& Popup::HidingSignal()
138 return GetImpl(*this).HidingSignal();
141 Popup::DisplayStateChangeSignalType& Popup::HiddenSignal()
143 return GetImpl(*this).HiddenSignal();
146 } // namespace Toolkit