1 #ifndef __DALI_TYPE_INFO_WRAPPER_H__
2 #define __DALI_TYPE_INFO_WRAPPER_H__
5 * Copyright (c) 2015 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/dali-core.h>
24 #include "emscripten/emscripten.h"
25 #include "emscripten/bind.h"
39 * Gets all properties from TypeInfo
41 * @param[in] self The TypeInfo
43 * @returns A list of property names
46 std::vector<std::string> GetAllProperties(Dali::TypeInfo self);
49 * Gets all property indices from TypeInfo
51 * @param[in] self The TypeInfo
53 * @returns A list of property indices
56 std::vector<int> GetPropertyIndices(Dali::TypeInfo& self);
59 * Gets all actions from TypeInfo
61 * @param[in] self The TypeInfo
63 * @returns A list of property action names
66 std::vector<std::string> GetActions(Dali::TypeInfo& self);
69 * Gets all signals from TypeInfo
71 * @param[in] self The TypeInfo
73 * @returns A list of signal names
76 std::vector<std::string> GetSignals(Dali::TypeInfo& self);
79 * Gets all bases classes from TypeInfo
81 * @param[in] self The TypeInfo
83 * @returns A list of base class names
86 std::vector<std::string> GetBases(Dali::TypeInfo& self);
89 * Check if a TypeInfo has a base name
91 * @param[in] self The TypeInfo
92 * @param[in] baseName The base class name
94 * @returns true if baseName is a base class of self
97 bool InheritsFrom(Dali::TypeInfo& self, const std::string& baseName);
99 }; // namespace Emscripten
100 }; // namespace Internal