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.
17 #include "expanding-buttons.h"
18 #include "expanding-buttons-impl.h"
22 ExpandingButtons::ExpandingButtons()
26 ExpandingButtons::ExpandingButtons(const ExpandingButtons& expandingButtons)
27 : Control(expandingButtons)
31 ExpandingButtons& ExpandingButtons::operator=(const ExpandingButtons& rhs)
35 Control::operator=(rhs);
40 ExpandingButtons::~ExpandingButtons()
44 ExpandingButtons ExpandingButtons::New()
46 ExpandingButtons expandingButtons = Internal::ExpandingButtons::New();
47 return expandingButtons;
50 ExpandingButtons ExpandingButtons::DownCast(BaseHandle handle)
52 return Control::DownCast<ExpandingButtons, Internal::ExpandingButtons>(handle);
55 void ExpandingButtons::RegisterButton(Control& control)
57 GetImpl(*this).RegisterButton(control);
60 void ExpandingButtons::Expand()
62 GetImpl(*this).Expand();
64 void ExpandingButtons::Collapse()
66 GetImpl(*this).Collapse();
69 Demo::ExpandingButtons::ExpandingButtonsSignalType& ExpandingButtons::CollapsingSignal()
71 return GetImpl(*this).CollapsingSignal();
74 ExpandingButtons::ExpandingButtons(Internal::ExpandingButtons& implementation)
75 : Control(implementation)
79 ExpandingButtons::ExpandingButtons(Dali::Internal::CustomActor* internal)
82 VerifyCustomActorPointer<Internal::ExpandingButtons>(internal);