ecffb2ae1765fa4cdf27dc373ca200d21abee287
[platform/core/uifw/dali-core.git] / dali / devel-api / object / csharp-type-info.h
1 #ifndef DALI_CSHARP_TYPE_INFO_H
2 #define DALI_CSHARP_TYPE_INFO_H
3
4 /*
5  * Copyright (c) 2019 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 // INTERNAL INCLUDES
22 #include <dali/public-api/object/base-object.h>
23 #include <dali/public-api/object/property-value.h>
24
25 namespace Dali
26 {
27
28 namespace CSharpTypeInfo
29 {
30
31   /**
32    * @brief Call back used to create an instance of the associated object type
33    *
34    * @param[in] typeName The type name of the object to be created.
35    * @return Pointer to a BaseHandle
36    */
37   typedef BaseHandle* (*CreateFunction)(const char* const typeName);
38
39   /**
40    * @brief Callback to set an event-thread only property.
41    *
42    * @param[in] object The object whose property should be set.
43    * @param[in] propertyName The name of the property required.
44    * @param[in] value The new value of the property for the object specified.
45    * @see PropertyRegistration.
46    */
47   typedef void (*SetPropertyFunction)( BaseObject* object, const char* const propertyName , Property::Value* value );
48
49
50   /**
51    * @brief Callback to get the value of an event-thread only property.
52    *
53    * @param[in] object The object whose property value is required.
54    * @param[in] propertyName The name of the property required.
55    * @return The current value of the property for the object specified.
56    * @see PropertyRegistration.
57    */
58   typedef Property::Value* (*GetPropertyFunction)( BaseObject* object, const char* const propertyName );
59 }
60
61
62 } // namespace Dali
63
64 #endif // DALI_CSHARP_TYPE_INFO_H