1 #ifndef DALI_CSHARP_TYPE_INFO_H
2 #define DALI_CSHARP_TYPE_INFO_H
5 * Copyright (c) 2020 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/object/base-object.h>
23 #include <dali/public-api/object/property-value.h>
27 namespace CSharpTypeInfo
30 * @brief Call back used to create an instance of the associated object type
32 * @param[in] typeName The type name of the object to be created.
33 * @return Pointer to a BaseHandle
35 using CreateFunction = BaseHandle* (*)(const char* const);
38 * @brief Callback to set an event-thread only property.
40 * @param[in] object The object whose property should be set.
41 * @param[in] propertyName The name of the property required.
42 * @param[in] value The new value of the property for the object specified.
43 * @see PropertyRegistration.
45 using SetPropertyFunction = void (*)(BaseObject*, const char* const, Property::Value*);
48 * @brief Callback to get the value of an event-thread only property.
50 * @param[in] object The object whose property value is required.
51 * @param[in] propertyName The name of the property required.
52 * @return The current value of the property for the object specified.
53 * @see PropertyRegistration.
55 using GetPropertyFunction = Property::Value* (*)(BaseObject*, const char* const);
56 } // namespace CSharpTypeInfo
60 #endif // DALI_CSHARP_TYPE_INFO_H