(Build) Ensure default style is installed & remove autoconf file lists
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / rendering / vector-based / vector-blob-atlas-share.h
1 #ifndef DALI_TOOLKIT_VECTOR_BLOB_ATLAS_SHARE_H
2 #define DALI_TOOLKIT_VECTOR_BLOB_ATLAS_SHARE_H
3
4 /*
5  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/internal/text/rendering/vector-based/vector-blob-atlas.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace Text
31 {
32
33 /**
34  * @brief A singleton for sharing atlases containing vector data
35  *
36  */
37 class VectorBlobAtlasShare : public BaseHandle
38 {
39 public:
40
41   /**
42    * @brief Create a VectorBlobAtlasShare handle.
43    *
44    * Calling member functions with an uninitialised handle is not allowed.
45    */
46   VectorBlobAtlasShare();
47
48   /**
49    * @brief Destructor
50    *
51    * This is non-virtual since derived Handle types must not contain data or virtual methods.
52    */
53   ~VectorBlobAtlasShare();
54
55   /**
56    * @brief Create or retrieve VectorBlobAtlasShare singleton.
57    *
58    * @return A handle to the VectorBlobAtlasShare control.
59    */
60   static VectorBlobAtlasShare Get();
61
62   /**
63    * @brief Retrieve the current (empty or partially empty) atlas.
64    *
65    * @return The current atlas.
66    */
67   VectorBlobAtlas* GetCurrentAtlas();
68
69   /**
70    * @brief Retrieve a new empty atlas.
71    *
72    * @pre The current atlas should be full.
73    * @return A new atlas.
74    */
75   VectorBlobAtlas* GetNewAtlas();
76
77 private:
78
79   class Impl;
80
81   explicit DALI_INTERNAL VectorBlobAtlasShare( VectorBlobAtlasShare::Impl* impl );
82
83 };
84
85 } // namespace Text
86
87 } // namespace Toolkit
88
89 } // namespace Dali
90
91 #endif // DALI_TOOLKIT_VECTOR_BLOB_ATLAS_SHARE_H