1 #ifndef __DALI_TOOLKIT_TEXT_BACKEND_H__
2 #define __DALI_TOOLKIT_TEXT_BACKEND_H__
5 * Copyright (c) 2015 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.
22 #include <dali/public-api/object/base-handle.h>
25 #include <dali-toolkit/internal/text/rendering/text-renderer.h>
36 namespace Internal DALI_INTERNAL
41 // The type of text renderer required
44 RENDERING_BASIC, ///< A bitmap-based reference implementation
45 RENDERING_SHARED_ATLAS ///< A bitmap-based solution where renderers can share a texture atlas
49 * @brief Provides access to different text rendering backends.
51 class DALI_IMPORT_API Backend : public BaseHandle
56 * @brief Retrieve a handle to the Backend instance.
58 * @return A handle to the Backend
63 * @brief Create a renderer from a particluar rendering type.
65 * @param[in] renderingType The type of rendering required.
66 * @return A handle to the newly created renderer.
68 RendererPtr NewRenderer( unsigned int renderingType );
71 * @brief Create an uninitialized TextAbstraction handle.
78 * This is non-virtual since derived Handle types must not contain data or virtual methods.
83 * @brief This copy constructor is required for (smart) pointer semantics.
85 * @param[in] handle A reference to the copied handle.
87 Backend( const Backend& handle );
90 * @brief This assignment operator is required for (smart) pointer semantics.
92 * @param [in] handle A reference to the copied handle.
93 * @return A reference to this.
95 Backend& operator=( const Backend& handle );
97 public: // Not intended for application developers
100 * @brief This constructor is used by Backend::Get().
102 * @param[in] backend A pointer to the internal backend object.
104 explicit DALI_INTERNAL Backend( Internal::Backend* backend );
109 } // namespace Toolkit
113 #endif // __DALI_TOOLKIT_TEXT_BACKEND_H__