1 #ifndef __DALI_TOOLKIT_INTERNAL_TEXT_ACTOR_CACHE_H__
2 #define __DALI_TOOLKIT_INTERNAL_TEXT_ACTOR_CACHE_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/actors/text-actor.h>
33 * Stores text-actors to be reused.
35 * Is it asumed that the first text-actor of a group of text-actors added to the cache is the first one to be rehused.
42 * Default constructor.
52 * Inserts the given text-actors into the cache.
54 * First text-actor of the vector is the first one to be reused.
56 * @param[in] textActors The text-actors to be inserted into the cache.
58 void InsertTextActors( const std::vector<TextActor>& textActors );
61 * Retrieves a text-actor from the cache.
63 * @return A handle to a text-actor. It returns a non initialized handle if the cache has no text-actors.
65 TextActor RetrieveTextActor();
68 * Clears the text of the text-actor in the cache.
73 std::vector<TextActor> mTextActors; ///< Stores cached text-actors.
76 } // namespace Internal
78 } // namespace Toolkit
82 #endif // __DALI_TOOLKIT_INTERNAL_TEXT_ACTOR_CACHE_H__