[dali_1.0.31] Merge branch 'tizen'
[platform/core/uifw/dali-core.git] / dali / internal / event / text / text-observer.h
1 #ifndef __DALI_INTERNAL_TEXT_OBSERVER_H__
2 #define __DALI_INTERNAL_TEXT_OBSERVER_H__
3
4 /*
5  * Copyright (c) 2014 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 namespace Dali
22 {
23
24 namespace Internal
25 {
26
27 /**
28  * Text observers are notified when characters have been loaded for a particular font.
29  *
30  * Note, the specific characters loaded are not specified.
31  * The internal user of this class has to use Font::TextAvailable to
32  * find if the the glyphs for a text string is loaded.
33  */
34 class TextObserver
35 {
36 public:
37
38
39   /**
40    * Called when the text has been loaded.
41    */
42    virtual void TextLoaded() = 0;
43
44 protected:
45
46    /**
47     * constructor
48     */
49    TextObserver()
50    {
51    }
52
53    /**
54     * Virtual destructor.
55     */
56    virtual ~TextObserver()
57    {
58    }
59
60    /**
61     * Undefined copy constructor.
62     */
63    TextObserver( const TextObserver& );
64
65    /**
66     * Undefined assignment operator
67     */
68    TextObserver& operator=( const TextObserver&  );
69
70 };
71
72 } // namespace Internal
73
74 } // namespace Dali
75
76 #endif // __DALI_INTERNAL_TEXT_OBSERVER_H__