1 #ifndef __DALI_TOOLKIT_RENDERER_FACTORY_H__
2 #define __DALI_TOOLKIT_RENDERER_FACTORY_H__
4 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #include <dali/public-api/object/base-handle.h>
24 #include <dali-toolkit/devel-api/controls/renderer-factory/control-renderer.h>
32 namespace Internal DALI_INTERNAL
34 class RendererFactory;
38 * RendererFactory is a singleton object that provides and shares renderers for controls
40 * The renderer type is required in the property map for requesting a control renderer.
42 * | %Property Name | Type |
43 * |---------------------------|------------------|
44 * | renderer-type | STRING |
46 class DALI_IMPORT_API RendererFactory : public BaseHandle
51 * @brief Create or retrieve RendererFactory singleton.
53 * @return A handle to the RendererFactory control.
55 static RendererFactory Get();
58 * @brief Create a RendererFactory handle.
60 * Calling member functions with an uninitialised handle is not allowed.
67 * This is non-virtual since derived Handle types must not contain data or virtual methods.
72 * @brief This copy constructor is required for (smart) pointer semantics.
74 * @param[in] handle A reference to the copied handle.
76 RendererFactory( const RendererFactory& handle );
79 * @brief This assignment operator is required for (smart) pointer semantics.
81 * @param [in] handle A reference to the copied handle.
82 * @return A reference to this.
84 RendererFactory& operator=( const RendererFactory& handle );
87 * Request the control renderer
88 * @param[in] propertyMap The map contains the properties required by the control renderer
89 * Depends on the content of the map, different kind of renderer would be returned.
90 * @return the pointer pointing to control renderer
92 ControlRenderer GetControlRenderer( const Property::Map& propertyMap );
96 explicit DALI_INTERNAL RendererFactory(Internal::RendererFactory *impl);
100 } // namespace Toolkit
104 #endif /* __DALI_TOOLKIT_RENDERER_FACTORY_H__ */