1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_BOOLEAN_PROPERTY_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_BOOLEAN_PROPERTY_H__
5 * Copyright (c) 2015 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/public-api/common/dali-common.h>
23 #include <dali/public-api/object/property.h>
24 #include <dali/public-api/object/property-input.h>
25 #include <dali/public-api/object/property-types.h>
26 #include <dali/internal/common/buffer-index.h>
27 #include <dali/internal/event/common/property-input-impl.h>
39 * A Boolean non-animatable property.
41 class PropertyBoolean : public PropertyInputImpl
46 * Create an non-animatable property.
47 * @param [in] initialValue The initial value of the property.
49 PropertyBoolean( bool initialValue )
50 : mValue( initialValue ),
58 virtual ~PropertyBoolean()
63 * Clear the dirty flag
71 * @copydoc Dali::Internal::PropertyInputImpl::GetType()
73 virtual Dali::Property::Type GetType() const
75 return Dali::PropertyTypes::Get<bool>();
79 * @copydoc Dali::Internal::PropertyInputImpl::InputInitialized()
81 virtual bool InputInitialized() const
87 * @copydoc Dali::Internal::PropertyInputImpl::InputChanged()
89 virtual bool InputChanged() const
95 * @copydoc Dali::PropertyInput::GetBoolean()
97 virtual const bool& GetBoolean( BufferIndex bufferIndex ) const
103 * Flag that the property has been Set during the current frame.
113 PropertyBoolean(const PropertyBoolean& property);
116 PropertyBoolean& operator=(const PropertyBoolean& rhs);
119 bool mValue; ///< The property value
125 } // namespace SceneGraph
127 } // namespace Internal
131 #endif // __DALI_INTERNAL_SCENE_GRAPH_BOOLEAN_PROPERTY_H__