Dali 3D User Interface Engine
type-info.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 // CLASS HEADER
20 
21 // EXTERNAL INCLUDES
22 
23 // INTERNAL INCLUDES
25 
26 namespace Dali
27 {
28 
30 {
31 }
32 
34 {
35 }
36 
38 : BaseHandle(copy)
39 {
40 }
41 
43 {
45  return *this;
46 }
47 
48 const std::string& TypeInfo::GetName() const
49 {
50  return GetImplementation(*this).GetName();
51 }
52 
53 const std::string& TypeInfo::GetBaseName() const
54 {
55  return GetImplementation(*this).GetBaseName();
56 }
57 
59 {
60  return GetImplementation(*this).CreateInstance();
61 }
62 
64 {
65  return GetImplementation(*this).GetCreator();
66 }
67 
69 {
70  return GetImplementation(*this).GetActionCount();
71 }
72 
73 std::string TypeInfo::GetActionName(size_t index)
74 {
75  return GetImplementation(*this).GetActionName(index);
76 }
77 
79 {
80  return GetImplementation(*this).GetSignalCount();
81 }
82 
83 std::string TypeInfo::GetSignalName(size_t index)
84 {
85  return GetImplementation(*this).GetSignalName(index);
86 }
87 
89 {
90  return GetImplementation(*this).GetPropertyCount();
91 }
92 
94 {
95  indices.Clear(); // We do not want to clear the container if called internally, so only clear here
96  GetImplementation(*this).GetPropertyIndices( indices );
97 }
98 
99 const std::string& TypeInfo::GetPropertyName( Property::Index index ) const
100 {
101  return GetImplementation(*this).GetPropertyName( index );
102 }
103 
105 : BaseHandle(internal)
106 {
107 }
108 
109 } // namespace Dali
110 
Dali Docs Home
Read more about Dali