+#ifndef __DALI_INTERNAL_SCENE_GRAPH_BOOLEAN_PROPERTY_H__
+#define __DALI_INTERNAL_SCENE_GRAPH_BOOLEAN_PROPERTY_H__
+
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// INTERNAL INCLUDES
+#include <dali/public-api/common/dali-common.h>
+#include <dali/public-api/math/boolean.h>
+#include <dali/public-api/object/property.h>
+#include <dali/public-api/object/property-input.h>
+#include <dali/public-api/object/property-types.h>
+#include <dali/internal/common/buffer-index.h>
+#include <dali/internal/event/common/property-input-impl.h>
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace SceneGraph
+{
+
+/**
+ * A Boolean non-animatable property.
+ */
+class PropertyBoolean : public PropertyInputImpl
+{
+public:
+
+ /**
+ * Create an non-animatable property.
+ * @param [in] initialValue The initial value of the property.
+ */
+ PropertyBoolean( bool initialValue )
+ : mValue( initialValue ),
+ mDirtyFlag( true )
+ {
+ }
+
+ /**
+ * Virtual destructor.
+ */
+ virtual ~PropertyBoolean()
+ {
+ }
+
+ /**
+ * Clear the dirty flag
+ */
+ void Clear()
+ {
+ mDirtyFlag = false;
+ }
+
+ /**
+ * @copydoc Dali::Internal::PropertyInputImpl::GetType()
+ */
+ virtual Dali::Property::Type GetType() const
+ {
+ return Dali::PropertyTypes::Get<bool>();
+ }
+
+ /**
+ * @copydoc Dali::Internal::PropertyInputImpl::InputInitialized()
+ */
+ virtual bool InputInitialized() const
+ {
+ return true;
+ }
+
+ /**
+ * @copydoc Dali::Internal::PropertyInputImpl::InputChanged()
+ */
+ virtual bool InputChanged() const
+ {
+ return mDirtyFlag;
+ }
+
+ /**
+ * @copydoc Dali::PropertyInput::GetBoolean()
+ */
+ virtual const bool& GetBoolean( BufferIndex bufferIndex ) const
+ {
+ return mValue;
+ }
+
+ /**
+ * Flag that the property has been Set during the current frame.
+ */
+ void OnSet()
+ {
+ mDirtyFlag = true;
+ }
+
+private:
+
+ // Undefined
+ PropertyBoolean(const PropertyBoolean& property);
+
+ // Undefined
+ PropertyBoolean& operator=(const PropertyBoolean& rhs);
+
+public:
+ boolean mValue; ///< The property value
+
+private:
+ boolean mDirtyFlag;
+};
+
+} // namespace SceneGraph
+
+} // namespace Internal
+
+} // namespace Dali
+
+#endif // __DALI_INTERNAL_SCENE_GRAPH_BOOLEAN_PROPERTY_H__