1 #ifndef DALI_DEMO_ANIMATION_EXAMPLE_H
2 #define DALI_DEMO_ANIMATION_EXAMPLE_H
5 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali/dali.h>
22 #include <dali-toolkit/dali-toolkit.h>
23 #include <dali-toolkit/devel-api/layouting/linear-layout.h>
24 #include <dali-toolkit/devel-api/layouting/grid.h>
29 using namespace Dali::Toolkit;
35 * @file animation-example.hcpp
36 * @brief Example of a layout complex animation.
38 class AnimationExample final: public ConnectionTracker, public Example
43 // Creates a Animation Layout Example and displays it.
44 virtual void Create() override;
46 // Remove and destroy this layout
47 virtual void Remove() override;
51 bool OnRemoveClicked( Button button );
53 bool OnSelectGridClicked( Button button );
55 bool OnAddClicked( Button button );
57 bool OnChangeClicked( Button button );
60 PushButton mRemoveButton;
61 PushButton mAddButton;
62 PushButton mSelectGridButton;
63 PushButton mShakeButton;
64 std::vector< Toolkit::ImageView > mImages;
65 Control mAnimationContainer;
67 LinearLayout mHorizontalLayout;
69 }; // class AnimationContainer
73 #endif //DALI_DEMO_ANIMATION_CONTAINER_H