/*
- * Copyright (c) 2015 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.
return GetImplementation(*this).GetSize();
}
-unsigned int Stage::GetLayerCount() const
+uint32_t Stage::GetLayerCount() const
{
return GetImplementation(*this).GetLayerCount();
}
-Layer Stage::GetLayer(unsigned int depth) const
+Layer Stage::GetLayer(uint32_t depth) const
{
return GetImplementation(*this).GetLayer(depth);
}
ObjectRegistry Stage::GetObjectRegistry() const
{
- Internal::ObjectRegistry& internal = Internal::Stage::GetCurrent()->GetObjectRegistry();
+ Internal::Stage* stage = Internal::Stage::GetCurrent();
+ DALI_ASSERT_ALWAYS( stage && "GetObjectRegistry() : Stage is null" );
+ Internal::ObjectRegistry& internal = stage->GetObjectRegistry();
return ObjectRegistry(&internal);
}
Stage::TouchedSignalType& Stage::TouchedSignal()
{
+ DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: TouchedSignal() is deprecated and will be removed from next release. Use TouchSignal() instead.\n" );
+
return GetImplementation(*this).TouchedSignal();
}
+Stage::TouchSignalType& Stage::TouchSignal()
+{
+ return GetImplementation( *this ).TouchSignal();
+}
+
Stage::WheelEventSignalType& Stage::WheelEventSignal()
{
return GetImplementation(*this).WheelEventSignal();