/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
namespace Dali
{
-
namespace Toolkit
{
-
-EffectsView EffectsView::New()
+EffectsView EffectsView::New(EffectType type)
{
- return Internal::EffectsView::New();
+ EffectsView effectsView = Internal::EffectsView::New();
+ GetImpl(effectsView).SetType(type);
+ return effectsView;
}
EffectsView::EffectsView()
{
}
-EffectsView::EffectsView( const EffectsView& handle )
-: Control( handle )
+EffectsView::EffectsView(const EffectsView& handle)
+: Control(handle)
{
}
-EffectsView& EffectsView::operator=( const EffectsView& rhs )
+EffectsView& EffectsView::operator=(const EffectsView& rhs)
{
- if( &rhs != this )
+ if(&rhs != this)
{
Control::operator=(rhs);
}
return *this;
}
-EffectsView EffectsView::DownCast( BaseHandle handle )
+EffectsView EffectsView::DownCast(BaseHandle handle)
{
return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
}
{
}
-void EffectsView::SetType( EffectsView::EffectType type )
-{
- GetImpl(*this).SetType( type );
-}
-
EffectsView::EffectType EffectsView::GetType() const
{
return GetImpl(*this).GetType();
}
-void EffectsView::Enable()
-{
- GetImpl(*this).Enable();
-}
-
-void EffectsView::Disable()
-{
- GetImpl(*this).Disable();
-}
-
void EffectsView::Refresh()
{
GetImpl(*this).Refresh();
}
-void EffectsView::SetRefreshOnDemand( bool onDemand )
-{
- GetImpl(*this).SetRefreshOnDemand( onDemand );
-}
-
-void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
+void EffectsView::SetRefreshOnDemand(bool onDemand)
{
- GetImpl(*this).SetPixelFormat( pixelFormat );
+ GetImpl(*this).SetRefreshOnDemand(onDemand);
}
-void EffectsView::SetOutputImage( FrameBufferImage image )
+void EffectsView::SetPixelFormat(Pixel::Format pixelFormat)
{
- GetImpl(*this).SetOutputImage( image );
+ GetImpl(*this).SetPixelFormat(pixelFormat);
}
-FrameBufferImage EffectsView::GetOutputImage()
-{
- return GetImpl(*this).GetOutputImage();
-}
-
-Property::Index EffectsView::GetEffectSizePropertyIndex() const
-{
- return GetImpl(*this).GetEffectSizePropertyIndex();
-}
-
-Property::Index EffectsView::GetEffectStrengthPropertyIndex() const
-{
- return GetImpl(*this).GetEffectStrengthPropertyIndex();
-}
-
-Property::Index EffectsView::GetEffectOffsetPropertyIndex() const
-{
- return GetImpl(*this).GetEffectOffsetPropertyIndex();
-}
-
-Property::Index EffectsView::GetEffectColorPropertyIndex() const
-{
- return GetImpl(*this).GetEffectColorPropertyIndex();
-}
-
-void EffectsView::SetBackgroundColor( const Vector4& color )
+void EffectsView::SetBackgroundColor(const Vector4& color)
{
GetImpl(*this).SetBackgroundColor(color);
}
return GetImpl(*this).GetBackgroundColor();
}
-
-EffectsView::EffectsView( Internal::EffectsView& implementation )
-: Control( implementation )
+EffectsView::EffectsView(Internal::EffectsView& implementation)
+: Control(implementation)
{
}
-EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
-: Control( internal )
+EffectsView::EffectsView(Dali::Internal::CustomActor* internal)
+: Control(internal)
{
VerifyCustomActorPointer<Internal::EffectsView>(internal);
}
-
} //namespace Toolkit
} //namespace Dali