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 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/actors/text-actor.h>
34 * Stores text-actors to be reused.
36 * 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.
43 * Default constructor.
53 * Inserts the given text-actors into the cache.
55 * First text-actor of the vector is the first one to be reused.
57 * @param[in] textActors The text-actors to be inserted into the cache.
59 void InsertTextActors( const std::vector<TextActor>& textActors );
62 * Retrieves a text-actor from the cache.
64 * @return A handle to a text-actor. It returns a non initialized handle if the cache has no text-actors.
66 TextActor RetrieveTextActor();
69 * Clears the text of the text-actor in the cache.
74 std::vector<TextActor> mTextActors; ///< Stores cached text-actors.
77 } // namespace Internal
79 } // namespace Toolkit
83 #endif // __DALI_TOOLKIT_INTERNAL_TEXT_ACTOR_CACHE_H__