/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
// CLASS HEADER
#include <dali-toolkit/public-api/controls/control.h>
+// EXTERNAL INCLUDES
+#include <dali/integration-api/debug.h>
+
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/control-impl.h>
+#include <dali-toolkit/internal/controls/control/control-data-impl.h>
namespace Dali
{
Internal::GetImplementation(*this).SetBackgroundColor( color );
}
-Vector4 Control::GetBackgroundColor() const
+void Control::ClearBackground()
{
- return Internal::GetImplementation(*this).GetBackgroundColor();
+ Internal::GetImplementation(*this).ClearBackground();
}
-void Control::SetBackgroundImage( Image image )
+bool Control::IsResourceReady() const
{
- Internal::GetImplementation(*this).SetBackgroundImage( image );
+ const Internal::Control& internalControl = Toolkit::Internal::GetImplementation( *this );
+ const Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( internalControl );
+
+ return controlDataImpl.IsResourceReady();
}
-void Control::ClearBackground()
+Toolkit::Visual::ResourceStatus Control::GetVisualResourceStatus( Dali::Property::Index index )
{
- Internal::GetImplementation(*this).ClearBackground();
+ const Internal::Control& internalControl = Toolkit::Internal::GetImplementation( *this );
+ const Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( internalControl );
+ return controlDataImpl.GetVisualResourceStatus( index );
}
Control::KeyEventSignalType& Control::KeyEventSignal()
return Internal::GetImplementation(*this).KeyInputFocusLostSignal();
}
+Control::ResourceReadySignalType& Control::ResourceReadySignal()
+{
+ Internal::Control& internalControl = Toolkit::Internal::GetImplementation( *this );
+ Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( internalControl );
+
+ return controlImpl.mResourceReadySignal;
+}
+
Control::Control(Internal::Control& implementation)
: CustomActor(implementation)
{