2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "dummy-visual.h"
20 #include <dali-toolkit/internal/visuals/visual-factory-cache.h>
31 typedef IntrusivePtr<VisualFactoryCache> VisualFactoryCachePtr;
33 DummyVisualPtr DummyVisual::New( const Property::Map& properties )
35 VisualFactoryCachePtr factoryCache = new VisualFactoryCache;
37 DummyVisualPtr dummyVisualPtr( new DummyVisual( *( factoryCache.Get() ) ) );
39 return dummyVisualPtr;
42 DummyVisual::DummyVisual( VisualFactoryCache& factoryCache )
43 : Visual::Base( factoryCache ),
48 void DummyVisual::DoCreatePropertyMap( Property::Map& map ) const
50 // Implement if required
53 void DummyVisual::DoCreateInstancePropertyMap( Property::Map& map ) const
55 // Implement if required
58 void DummyVisual::DoSetProperties( const Property::Map& propertyMap )
60 // Implement if required
63 void DummyVisual::OnSetTransform()
65 // Implement if required
68 void DummyVisual::DoSetOnStage( Actor& actor )
70 // Implement if required
73 void DummyVisual::OnDoAction( const Property::Index actionName, const Property::Value& attributes )
75 if ( DummyVisual::TEST_ACTION == actionName )
77 mActionCounter++; // GetActionCounter can be used to test for this.
79 // Further Actions can be added here
82 unsigned int DummyVisual::GetActionCounter() const
84 return mActionCounter;
87 void DummyVisual::ResetActionCounter()
94 } // namespace Toolkit