1 #ifndef __DALI_INTEGRATION_SYSTEM_OVERLAY_H__
2 #define __DALI_INTEGRATION_SYSTEM_OVERLAY_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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/public-api/common/dali-common.h>
38 * Use this interface to draw content for system-level indicators, dialogs etc.
39 * The SystemOverlay is accessible using Dali::Integration::Core::GetSystemOverlay().
41 class DALI_IMPORT_API SystemOverlay
46 * Non-virtual destructor. SystemOverlay is not intended as a base class.
51 * Add an Actor to the SystemOverlay.
52 * @pre The actor handle is not empty.
53 * @param [in] actor A handle to the actor to add.
54 * @post The actor will be referenced.
56 void Add( Actor actor );
59 * Remove an Actor that was added to the SystemOverlay.
60 * @pre The actor handle is not empty.
61 * @param [in] actor A handle to the actor to remove.
62 * @post The actor will be unreferenced.
64 void Remove( Actor actor );
67 * Retrieve the list of render-tasks for system-level overlays.
68 * This is a seperate list, processed after the render-tasks provided by Stage::GetRenderTaskList().
69 * @return The list of overlay render-tasks.
71 RenderTaskList GetOverlayRenderTasks();
74 * Create the SystemOverlay entrance.
75 * This is not intended for adaptor implementors; see also Dali::Integration::Core::GetSystemOverlay().
76 * @param[in] impl The SystemOverlay implementation.
78 SystemOverlay( Internal::SystemOverlay* impl );
81 * Retreive the internal implementation; this is not intended for adaptor implementors.
82 * @return The SystemOverlay implementation.
84 Internal::SystemOverlay* GetImpl();
88 // Undefined copy-constructor.
89 SystemOverlay( const SystemOverlay& core );
91 // Undefined assignment operator.
92 SystemOverlay& operator=( const SystemOverlay& rhs );
96 Dali::Internal::SystemOverlay* mImpl;
99 } // namespace Integration
103 #endif // __DALI_INTEGRATION_SYSTEM_OVERLAY_H__