X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fexample-code%2Fproperties.cpp;h=a68bb020fd2e303285fe02cf635794a68814862f;hb=95b4a6e50a5700ff21a34c7efd6aef970200e74f;hp=d0f8923a2dbaddb293dcffc6544f8ca9ca1d69ff;hpb=46e8848bda5e3287a80ee9ce020166ad55a52ec0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/example-code/properties.cpp b/docs/content/example-code/properties.cpp index d0f8923..a68bb02 100644 --- a/docs/content/example-code/properties.cpp +++ b/docs/content/example-code/properties.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -66,10 +66,10 @@ public: // Set another property to set the image-map Property::Map imageMap; - imageMap[ "rendererType" ] = "image"; - imageMap[ "url" ] = IMAGE_CARDS; - imageMap[ "desiredWidth" ] = 100; - imageMap[ "desiredHeight" ] = 100; + imageMap[ Visual::Property::TYPE ] = Visual::IMAGE; + imageMap[ ImageVisual::Property::URL ] = IMAGE_CARDS; + imageMap[ ImageVisual::Property::DESIRED_WIDTH ] = 100; + imageMap[ ImageVisual::Property::DESIRED_HEIGHT ] = 100; mImageView.SetProperty( ImageView::Property::IMAGE, imageMap ); // Add the image view to the stage @@ -79,7 +79,7 @@ public: mTagPropertyIndex = mImageView.RegisterProperty( TAG_PROPERTY_NAME, 0, Property::READ_WRITE /* Event-side only, i.e. not animatable */ ); // Connect to the touch-event - mImageView.TouchedSignal().Connect( this, &PropertyController::OnTouched ); + mImageView.TouchSignal().Connect( this, &PropertyController::OnTouched ); // Create text label mTagText = Toolkit::TextLabel::New( "0" ); @@ -95,7 +95,7 @@ public: * param[in] touch The touch-event * return Set to true if the signal was consumed correctly */ - bool OnTouched( Actor actor, const TouchEvent& touch ) + bool OnTouched( Actor actor, const TouchData& touch ) { int touchedCount = 0;