X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Ftext-overlap%2Ftext-overlap-example.h;h=11f4249bf96bb14c5096579f819b01a5995f5bdc;hb=1b19fd140ff139b5854a1a62447faf31b175d8f6;hp=b15f67d60bda23baf6aa145f2952f416cf1e1b89;hpb=a30d584d434429797d9bd88a269d9ce026aa030e;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/text-overlap/text-overlap-example.h b/examples/text-overlap/text-overlap-example.h index b15f67d..11f4249 100644 --- a/examples/text-overlap/text-overlap-example.h +++ b/examples/text-overlap/text-overlap-example.h @@ -1,28 +1,45 @@ #pragma once +/* + * Copyright (c) 2020 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + namespace Demo { - class TextOverlapController : public Dali::ConnectionTracker { public: - TextOverlapController( Dali::Application& app ); + TextOverlapController(Dali::Application& app); private: - void Create( Dali::Application& app ); + void Create(Dali::Application& app); void Create2(); - void Destroy( Dali::Application& app ); - void OnPan( Dali::Actor actor, const Dali::PanGesture& gesture ); - void OnKeyEvent( const Dali::KeyEvent& keyEvent ); - bool OnClicked( Dali::Toolkit::Button button ); + void Destroy(Dali::Application& app); + void OnPan(Dali::Actor actor, const Dali::PanGesture& gesture); + void OnKeyEvent(const Dali::KeyEvent& keyEvent); + bool OnClicked(Dali::Toolkit::Button button); private: - Dali::Application& mApplication; + Dali::Application& mApplication; Dali::Toolkit::TextLabel mLabels[2]; Dali::PanGestureDetector mPanDetector; - Dali::Actor mGrabbedActor; - Dali::Toolkit::Button mSwapButton; - int mTopmostLabel; + Dali::Actor mGrabbedActor; + Dali::Toolkit::Button mSwapButton; + int mTopmostLabel; }; -} +} // namespace Demo