/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * 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.
// INTERNAL INCLUDES
#include <dali-toolkit/internal/controls/buttons/check-box-button-impl.h>
+#include <dali/public-api/actors/image-actor.h>
namespace Dali
{
void CheckBoxButton::SetBackgroundImage( Image image )
{
- Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( image );
+ Dali::Toolkit::GetImplementation( *this ).SetBackgroundImage( ImageActor::New( image ) );
}
void CheckBoxButton::SetBackgroundImage( Actor image )
void CheckBoxButton::SetSelectedImage( Image image )
{
- Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( image );
+ Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( ImageActor::New( image ) );
}
void CheckBoxButton::SetSelectedImage( Actor image )
Dali::Toolkit::GetImplementation( *this ).SetSelectedImage( image );
}
-
Actor CheckBoxButton::GetSelectedImage() const
{
return Dali::Toolkit::GetImplementation( *this ).GetSelectedImage();
void CheckBoxButton::SetDisabledBackgroundImage( Image image )
{
- Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( image );
+ Dali::Toolkit::GetImplementation( *this ).SetDisabledBackgroundImage( ImageActor::New( image ) );
}
void CheckBoxButton::SetDisabledBackgroundImage( Actor image )
void CheckBoxButton::SetDisabledSelectedImage( Image image )
{
- Dali::Toolkit::GetImplementation( *this ).SetDisabledSelectedImage( image );
+ Dali::Toolkit::GetImplementation( *this ).SetDisabledSelectedImage( ImageActor::New( image ) );
}
void CheckBoxButton::SetDisabledSelectedImage( Actor image )