X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Feffects-view%2Feffects-view.cpp;h=2abab5adaec17b78850706690d0930fed66a4dbb;hb=c7db41e73819a6e2b79948bd7396d948ac57a96f;hp=d1757d755bbbeb8ed98b27be938b07a239a86bb6;hpb=c3f7ea6cb0c0b75c2276193aff88b5c7a679a2d5;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/effects-view/effects-view.cpp b/dali-toolkit/devel-api/controls/effects-view/effects-view.cpp index d1757d7..2abab5a 100644 --- a/dali-toolkit/devel-api/controls/effects-view/effects-view.cpp +++ b/dali-toolkit/devel-api/controls/effects-view/effects-view.cpp @@ -27,9 +27,11 @@ 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() @@ -59,26 +61,11 @@ EffectsView::~EffectsView() { } -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(); @@ -94,36 +81,6 @@ void EffectsView::SetPixelFormat( Pixel::Format pixelFormat ) GetImpl(*this).SetPixelFormat( pixelFormat ); } -void EffectsView::SetOutputImage( FrameBufferImage image ) -{ - GetImpl(*this).SetOutputImage( image ); -} - -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 ) { GetImpl(*this).SetBackgroundColor(color);