1 #ifndef __DALI_TOOLKIT_INTERNAL_RELAYOUT_CONTROLLER_IMPL_H__
2 #define __DALI_TOOLKIT_INTERNAL_RELAYOUT_CONTROLLER_IMPL_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali/dali.h>
22 #include "relayout-controller.h"
33 class RelayoutController;
36 * @copydoc Toolkit::Internal::RelayoutController
38 class RelayoutControllerImpl : public Dali::BaseObject, public ConnectionTracker
44 * We should only create a unique instance.
46 RelayoutControllerImpl();
52 virtual ~RelayoutControllerImpl();
55 * Request for relayout.
62 * Relayouts controls inside actor tree from bottom to top.
67 * Resets the relayout controller.
72 * Disconnect the Relayout() method from the Stage::EventProcessingFinishedSignal().
77 RelayoutControllerImpl(const RelayoutControllerImpl&);
78 RelayoutControllerImpl& operator=(const RelayoutControllerImpl&);
82 bool mRelayoutConnection:1; ///< Whether EventProcessingFinishedSignal signal is connected.
85 } // namespace Internal
88 inline Internal::RelayoutControllerImpl& GetImpl(Dali::Toolkit::Internal::RelayoutController& obj)
90 DALI_ASSERT_ALWAYS(obj);
92 Dali::BaseObject& handle = obj.GetBaseObject();
94 return static_cast<Internal::RelayoutControllerImpl&>(handle);
97 inline const Internal::RelayoutControllerImpl& GetImpl(const Dali::Toolkit::Internal::RelayoutController& obj)
99 DALI_ASSERT_ALWAYS(obj);
101 const Dali::BaseObject& handle = obj.GetBaseObject();
103 return static_cast<const Internal::RelayoutControllerImpl&>(handle);
106 } // namespace Toolkit
110 #endif // __DALI_TOOLKIT_INTERNAL_RELAYOUT_CONTROLLER_IMPL_H__