1 #ifndef __DALI_INTERNAL_CUSTOM_OBJECT_H__
2 #define __DALI_INTERNAL_CUSTOM_OBJECT_H__
5 * Copyright (c) 2014 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/internal/event/common/proxy-object.h>
35 class CustomObject : public ProxyObject
40 * Create a new custom object.
41 * @return A pointer to the newly allocated object.
43 static CustomObject* New();
46 * @copydoc Dali::Internal::ProxyObject::IsSceneObjectRemovable()
48 virtual bool IsSceneObjectRemovable() const;
51 * @copydoc Dali::Internal::ProxyObject::GetSceneObject()
53 virtual const SceneGraph::PropertyOwner* GetSceneObject() const;
56 * @copydoc Dali::Internal::ProxyObject::GetSceneObjectAnimatableProperty()
58 virtual const SceneGraph::PropertyBase* GetSceneObjectAnimatableProperty( Property::Index index ) const;
61 * @copydoc Dali::Internal::ProxyObject::GetSceneObjectInputProperty()
63 virtual const PropertyInputImpl* GetSceneObjectInputProperty( Property::Index index ) const;
66 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyCount()
68 virtual unsigned int GetDefaultPropertyCount() const;
71 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyIndices()
73 virtual void GetDefaultPropertyIndices( Property::IndexContainer& indices ) const;
76 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyName()
78 virtual const char* GetDefaultPropertyName(Property::Index index) const;
81 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyIndex()
83 virtual Property::Index GetDefaultPropertyIndex(const std::string& name) const;
86 * @copydoc Dali::Internal::ProxyObject::IsDefaultPropertyWritable()
88 virtual bool IsDefaultPropertyWritable(Property::Index index) const;
91 * @copydoc Dali::Internal::ProxyObject::IsDefaultPropertyAnimatable()
93 virtual bool IsDefaultPropertyAnimatable(Property::Index index) const;
96 * @copydoc Dali::Internal::ProxyObject::IsDefaultPropertyAConstraintInput()
98 virtual bool IsDefaultPropertyAConstraintInput( Property::Index index ) const;
101 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyType()
103 virtual Property::Type GetDefaultPropertyType(Property::Index index) const;
106 * @copydoc Dali::Internal::ProxyObject::SetDefaultProperty()
108 virtual void SetDefaultProperty(Property::Index index, const Property::Value& propertyValue);
111 * @copydoc Dali::Internal::ProxyObject::GetDefaultProperty()
113 virtual Property::Value GetDefaultProperty( Property::Index index ) const;
116 * @copydoc Dali::Internal::ProxyObject::InstallSceneObjectProperty()
118 virtual void InstallSceneObjectProperty( SceneGraph::PropertyBase& newProperty, const std::string& name, unsigned int index );
123 * A reference counted object may only be deleted by calling Unreference()
125 virtual ~CustomObject();
128 * Private constructor; see also CustomObject::New()
133 CustomObject(const CustomObject&);
136 CustomObject& operator=(const CustomObject& rhs);
140 SceneGraph::PropertyOwner* mUpdateObject;
143 } // namespace Internal
147 #endif // __DALI_INTERNAL_CUSTOM_OBJECT_H__