1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_PROPERTY_BASE_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_PROPERTY_BASE_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.
24 #include <dali/public-api/object/property.h>
25 #include <dali/internal/common/type-abstraction.h>
26 #include <dali/internal/event/common/property-input-impl.h>
27 #include <dali/internal/update/common/scene-graph-buffers.h>
39 * Polymorphic base class for scene-graph properties, held by Nodes etc.
41 class PropertyBase : public PropertyInputImpl
46 * Default constructor.
53 virtual ~PropertyBase();
56 * Reset the property to a base value; only required if the property is animated.
57 * @param [in] currentBufferIndex The current buffer index.
59 virtual void ResetToBaseValue(BufferIndex updateBufferIndex) = 0;
62 * @copydoc Dali::Internal::PropertyInputImpl::InputChanged()
64 virtual bool InputChanged() const
70 * Query whether the property has changed.
71 * @return True if the property has not changed.
73 virtual bool IsClean() const = 0;
78 PropertyBase(const PropertyBase& property);
81 PropertyBase& operator=(const PropertyBase& rhs);
84 } // namespace SceneGraph
86 } // namespace Internal
90 #endif // __DALI_INTERNAL_SCENE_GRAPH_PROPERTY_BASE_H__