1 #ifndef DALI_TOOLKIT_VECTOR_BLOB_ATLAS_SHARE_H
2 #define DALI_TOOLKIT_VECTOR_BLOB_ATLAS_SHARE_H
5 * Copyright (c) 2019 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-toolkit/internal/text/rendering/vector-based/vector-blob-atlas.h>
34 * @brief A singleton for sharing atlases containing vector data
37 class VectorBlobAtlasShare : public BaseHandle
42 * @brief Create a VectorBlobAtlasShare handle.
44 * Calling member functions with an uninitialised handle is not allowed.
46 VectorBlobAtlasShare();
51 * This is non-virtual since derived Handle types must not contain data or virtual methods.
53 ~VectorBlobAtlasShare();
56 * @brief Create or retrieve VectorBlobAtlasShare singleton.
58 * @return A handle to the VectorBlobAtlasShare control.
60 static VectorBlobAtlasShare Get();
63 * @brief Retrieve the current (empty or partially empty) atlas.
65 * @return The current atlas.
67 VectorBlobAtlas* GetCurrentAtlas();
70 * @brief Retrieve a new empty atlas.
72 * @pre The current atlas should be full.
73 * @return A new atlas.
75 VectorBlobAtlas* GetNewAtlas();
81 explicit DALI_INTERNAL VectorBlobAtlasShare( VectorBlobAtlasShare::Impl* impl );
87 } // namespace Toolkit
91 #endif // DALI_TOOLKIT_VECTOR_BLOB_ATLAS_SHARE_H