(Layouting) Made it easier to add new layouting examples & toggle between all
[platform/core/uifw/dali-demo.git] / examples / layouting / example.h
1 #ifndef DALI_DEMO_LAYOUTING_EXAMPLE_H
2 #define DALI_DEMO_LAYOUTING_EXAMPLE_H
3
4 /*
5  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 namespace Demo
22 {
23
24 /**
25  * @brief Abstract base class for layouting examples.
26  */
27 class Example
28 {
29 public:
30   /// Should be overridden by deriving classes to create the required Layouting example
31   virtual void Create() = 0;
32
33   /// Should be overridden by deriving classes to remove their layouting example from stage
34   virtual void Remove() = 0;
35
36   /// Virtual destructor
37   virtual ~Example() = default;
38 };
39
40 } // namespace Demo
41
42 #endif // DALI_DEMO_LAYOUTING_EXAMPLE_H