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 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.
25 #include <dali/public-api/object/property.h>
26 #include <dali/internal/common/type-abstraction.h>
27 #include <dali/internal/event/common/property-input-impl.h>
28 #include <dali/internal/update/common/scene-graph-buffers.h>
40 * Polymorphic base class for scene-graph properties, held by Nodes etc.
42 class PropertyBase : public PropertyInputImpl
47 * Default constructor.
54 virtual ~PropertyBase();
57 * Reset the property to a base value; only required if the property is animated.
58 * @param [in] currentBufferIndex The current buffer index.
60 virtual void ResetToBaseValue(BufferIndex updateBufferIndex) = 0;
63 * @copydoc Dali::Internal::PropertyInputImpl::InputChanged()
65 virtual bool InputChanged() const
71 * Query whether the property has changed.
72 * @return True if the property has not changed.
74 virtual bool IsClean() const = 0;
79 PropertyBase(const PropertyBase& property);
82 PropertyBase& operator=(const PropertyBase& rhs);
85 } // namespace SceneGraph
87 } // namespace Internal
91 #endif // __DALI_INTERNAL_SCENE_GRAPH_PROPERTY_BASE_H__