X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fborder%2Fborder-visual.cpp;h=ba326d01228385efbe05c0ba5bbbe512823b9931;hp=cc00fc71e3606cbbcd2866089d28b6a234ed39e0;hb=f4c1e7f52d49c3ce033b9ee4c3c7414b06a22d45;hpb=33d3f72e60fc62db3718791f906dc843f1edeeb3 diff --git a/dali-toolkit/internal/visuals/border/border-visual.cpp b/dali-toolkit/internal/visuals/border/border-visual.cpp index cc00fc7..ba326d0 100644 --- a/dali-toolkit/internal/visuals/border/border-visual.cpp +++ b/dali-toolkit/internal/visuals/border/border-visual.cpp @@ -102,6 +102,11 @@ const char* FRAGMENT_SHADER_ANTI_ALIASING = DALI_COMPOSE_SHADER( ); } +BorderVisualPtr BorderVisual::New( VisualFactoryCache& factoryCache ) +{ + return new BorderVisual( factoryCache ); +} + BorderVisual::BorderVisual( VisualFactoryCache& factoryCache ) : Visual::Base( factoryCache ), mBorderColor( Color::TRANSPARENT ), @@ -137,13 +142,6 @@ void BorderVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap } } -void BorderVisual::SetClipRect( const Rect& clipRect ) -{ - Visual::Base::SetClipRect( clipRect ); - - //ToDo: renderer responds to the clipRect change -} - void BorderVisual::DoSetOnStage( Actor& actor ) { InitializeRenderer(); @@ -154,6 +152,8 @@ void BorderVisual::DoSetOnStage( Actor& actor ) mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON ); } mBorderSizeIndex = (mImpl->mRenderer).RegisterProperty( Toolkit::BorderVisual::Property::SIZE, SIZE_NAME, mBorderSize ); + + actor.AddRenderer( mImpl->mRenderer ); } void BorderVisual::DoCreatePropertyMap( Property::Map& map ) const @@ -165,6 +165,17 @@ void BorderVisual::DoCreatePropertyMap( Property::Map& map ) const map.Insert( Toolkit::BorderVisual::Property::ANTI_ALIASING, mAntiAliasing ); } +void BorderVisual::DoSetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ) +{ + // TODO +} + +Dali::Property::Value BorderVisual::DoGetProperty( Dali::Property::Index index ) +{ + // TODO + return Dali::Property::Value(); +} + void BorderVisual::InitializeRenderer() { Geometry geometry = mFactoryCache.GetGeometry( VisualFactoryCache::BORDER_GEOMETRY );