/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
using Dali::Layer;
-const char* const Layer::ACTION_RAISE = "raise";
-const char* const Layer::ACTION_LOWER = "lower";
-const char* const Layer::ACTION_RAISE_TO_TOP = "raise-to-top";
-const char* const Layer::ACTION_LOWER_TO_BOTTOM = "lower-to-bottom";
-
-
Layer::Layer()
{
}
{
}
-unsigned int Layer::GetDepth() const
+Layer::Layer(const Layer& copy)
+: Actor(copy)
+{
+}
+
+Layer& Layer::operator=(const Layer& rhs)
+{
+ BaseHandle::operator=(rhs);
+ return *this;
+}
+
+uint32_t Layer::GetDepth() const
{
return GetImplementation(*this).GetDepth();
}
GetImplementation(*this).MoveBelow( GetImplementation( target ) );
}
+void Layer::SetBehavior( Behavior behavior )
+{
+ GetImplementation(*this).SetBehavior( behavior );
+}
+
+Layer::Behavior Layer::GetBehavior() const
+{
+ return GetImplementation(*this).GetBehavior();
+}
+
void Layer::SetClipping(bool enabled)
{
GetImplementation(*this).SetClipping(enabled);
return GetImplementation(*this).IsClipping();
}
-void Layer::SetClippingBox(int x, int y, int width, int height)
+void Layer::SetClippingBox(int32_t x, int32_t y, int32_t width, int32_t height)
{
GetImplementation(*this).SetClippingBox(x, y, width, height);
}
return GetImplementation(*this).IsDepthTestDisabled();
}
-float Layer::ZValue(const Vector3& position, float sortModifier)
-{
- return Internal::Layer::ZValue( position, sortModifier );
-}
-
void Layer::SetSortFunction(SortFunctionType function)
{
GetImplementation(*this).SetSortFunction(function);
return GetImplementation( *this ).IsTouchConsumed();
}
+void Layer::SetHoverConsumed( bool consume )
+{
+ GetImplementation( *this ).SetHoverConsumed( consume );
+}
+
+bool Layer::IsHoverConsumed() const
+{
+ return GetImplementation( *this ).IsHoverConsumed();
+}
+
Layer::Layer(Internal::Layer* internal)
: Actor(internal)
{
}
} // namespace Dali
-