1 #ifndef __DALI_TOOLKIT_INTERNAL_NAVIGATION_CONTROL_H__
2 #define __DALI_TOOLKIT_INTERNAL_NAVIGATION_CONTROL_H__
5 * Copyright (c) 2016 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.
23 #include <dali/public-api/actors/layer.h>
26 #include <dali-toolkit/public-api/controls/control-impl.h>
27 #include <dali-toolkit/devel-api/controls/navigation-view/navigation-view.h>
45 * NavigationView implements a controller than manages the navigation of hierarchical contents.
48 class NavigationView : public Control
53 * Create an initialized NavigationView.
54 * @return A handle to a newly allocated Dali resource
56 static Toolkit::NavigationView New();
59 * @copydoc Dali::Toolkit::NavigationView::Push()
61 void Push( Actor& actor );
64 * @copydoc Dali::Toolkit::NavigationView::Pop()
69 * Performs actions as requested using the action name.
70 * @param[in] object The object on which to perform the action.
71 * @param[in] actionName The action to perform.
72 * @param[in] properties The properties with which to perform this action.
73 * @return true if action has been accepted by this control
75 //static bool DoAction( BaseObject* object, const std::string& actionName, const Property::Map& properties );
78 private: // override functions from Control
81 * @copydoc Control::OnStageConnection( int depth )
83 virtual void OnStageConnection( int depth );
86 * @copydoc Control::OnRelayout()
88 //virtual void OnRelayout( const Vector2& size, RelayoutContainer& container );
94 * It initializes the NavigationView members
99 * A reference counted object may only be deleted by calling Unreference()
101 virtual ~NavigationView();
106 NavigationView(const NavigationView&);
109 NavigationView& operator=(const NavigationView& rhs);
113 std::vector< Actor > mContentStack;
116 } // namespace Internal
118 // Helpers for public-api forwarding methods
120 inline Toolkit::Internal::NavigationView& GetImpl( Toolkit::NavigationView& navigationView )
122 DALI_ASSERT_ALWAYS( navigationView );
124 Dali::RefObject& handle = navigationView.GetImplementation();
126 return static_cast<Toolkit::Internal::NavigationView&>( handle );
129 inline const Toolkit::Internal::NavigationView& GetImpl( const Toolkit::NavigationView& navigationView )
131 DALI_ASSERT_ALWAYS( navigationView );
133 const Dali::RefObject& handle = navigationView.GetImplementation();
135 return static_cast<const Toolkit::Internal::NavigationView&>( handle );
138 } // namespace Toolkit
142 #endif /* __DALI_TOOLKIT_INTERNAL_NAVIGATION_CONTROL_H__ */