X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=docs%2Fcontent%2Fexample-code%2Fproperties.cpp;h=08d764f46c6235f2a0d0cd5bec89d0b46f05b473;hp=69248b92a99748f49cd9778dccaca22a5d95f34a;hb=11ed6421771d05113ae1a6510167d8c2557ac20e;hpb=f6e2abc65a892a1867f6371b0bf65e98ed5bd017 diff --git a/docs/content/example-code/properties.cpp b/docs/content/example-code/properties.cpp index 69248b9..08d764f 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) 2016 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