X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fperf-scroll%2Fperf-scroll.cpp;h=503dcc582ed030939c29a654405d6e3380c0e6f6;hb=2e182925204bf3ef9f2a36cbfbf998e79fbafaf5;hp=3bfdda5b069e509d3eb3e91b960162aa36b63183;hpb=56fcceb48527c03dc629c76aa6a2c8c6cf26d421;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/perf-scroll/perf-scroll.cpp b/examples/perf-scroll/perf-scroll.cpp index 3bfdda5..503dcc5 100644 --- a/examples/perf-scroll/perf-scroll.cpp +++ b/examples/perf-scroll/perf-scroll.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -15,9 +15,8 @@ * */ -#include #include - +#include #include "shared/utility.h" using namespace Dali; @@ -243,8 +242,11 @@ public: // Respond to a click anywhere on the stage stage.GetRootLayer().TouchSignal().Connect( this, &PerfScroll::OnTouch ); + // Respond to key events + stage.KeyEventSignal().Connect( this, &PerfScroll::OnKeyEvent ); + mParent = Actor::New(); - mParent.SetAnchorPoint( AnchorPoint::TOP_LEFT ); + mParent.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT ); stage.Add(mParent); if( gUseMesh ) @@ -279,8 +281,14 @@ public: for( size_t i(0); i