Merge "Revert public API changes. BATCH property." into devel/master
[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) 2016 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   typedef BaseHandle* (*CreateFunction)(); ///< Function signature for creating an instance of the associated object type
32
33   /**
34    * @brief Callback to set an event-thread only property.
35    *
36    * @param[in] object The object whose property should be set.
37    * @param[in] index The index of the property being set.
38    * @param[in] value The new value of the property for the object specified.
39    * @see PropertyRegistration.
40    */
41   typedef void (*SetPropertyFunction)( BaseObject* object, Property::Index* index, Property::Value* value );
42
43
44   /**
45    * @brief Callback to get the value of an event-thread only property.
46    *
47    * @param[in] object The object whose property value is required.
48    * @param[in] index The index of the property required.
49    * @return The current value of the property for the object specified.
50    * @see PropertyRegistration.
51    */
52   typedef Property::Value* (*GetPropertyFunction)( BaseObject* object, Property::Index* index );
53 }
54
55
56 } // namespace Dali
57
58 #endif // __DALI_CSHARP_INFO_H__