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 Flora License, Version 1.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://floralicense.org/license/
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.
21 #include <dali/internal/event/common/proxy-object.h>
34 class CustomObject : public ProxyObject
39 * Create a new custom object.
40 * @return A pointer to the newly allocated object.
42 static CustomObject* New();
45 * @copydoc Dali::Internal::ProxyObject::IsSceneObjectRemovable()
47 virtual bool IsSceneObjectRemovable() const;
50 * @copydoc Dali::Internal::ProxyObject::GetSceneObject()
52 virtual const SceneGraph::PropertyOwner* GetSceneObject() const;
55 * @copydoc Dali::Internal::ProxyObject::GetSceneObjectAnimatableProperty()
57 virtual const SceneGraph::PropertyBase* GetSceneObjectAnimatableProperty( Property::Index index ) const;
60 * @copydoc Dali::Internal::ProxyObject::GetSceneObjectInputProperty()
62 virtual const PropertyInputImpl* GetSceneObjectInputProperty( Property::Index index ) const;
65 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyCount()
67 virtual unsigned int GetDefaultPropertyCount() const;
70 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyIndices()
72 virtual void GetDefaultPropertyIndices( Property::IndexContainer& indices ) const;
75 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyName()
77 virtual const std::string& GetDefaultPropertyName(Property::Index index) const;
80 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyIndex()
82 virtual Property::Index GetDefaultPropertyIndex(const std::string& name) const;
85 * @copydoc Dali::Internal::ProxyObject::IsDefaultPropertyWritable()
87 virtual bool IsDefaultPropertyWritable(Property::Index index) const;
90 * @copydoc Dali::Internal::ProxyObject::IsDefaultPropertyAnimatable()
92 virtual bool IsDefaultPropertyAnimatable(Property::Index index) const;
95 * @copydoc Dali::Internal::ProxyObject::IsDefaultPropertyAConstraintInput()
97 virtual bool IsDefaultPropertyAConstraintInput( Property::Index index ) const;
100 * @copydoc Dali::Internal::ProxyObject::GetDefaultPropertyType()
102 virtual Property::Type GetDefaultPropertyType(Property::Index index) const;
105 * @copydoc Dali::Internal::ProxyObject::SetDefaultProperty()
107 virtual void SetDefaultProperty(Property::Index index, const Property::Value& propertyValue);
110 * @copydoc Dali::Internal::ProxyObject::GetDefaultProperty()
112 virtual Property::Value GetDefaultProperty( Property::Index index ) const;
115 * @copydoc Dali::Internal::ProxyObject::InstallSceneObjectProperty()
117 virtual void InstallSceneObjectProperty( SceneGraph::PropertyBase& newProperty, const std::string& name, unsigned int index );
122 * A reference counted object may only be deleted by calling Unreference()
124 virtual ~CustomObject();
127 * Private constructor; see also CustomObject::New()
132 CustomObject(const CustomObject&);
135 CustomObject& operator=(const CustomObject& rhs);
139 SceneGraph::PropertyOwner* mUpdateObject;
142 } // namespace Internal
146 #endif // __DALI_INTERNAL_CUSTOM_OBJECT_H__