Merge "Add new layouting support for TextLabel and ImageView." into devel/master
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / layout-utils.h
1 #ifndef __DALI_TOOLKIT_LAYOUT_UTILS_H__
2 #define __DALI_TOOLKIT_LAYOUT_UTILS_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 #include <dali-toolkit/dali-toolkit.h>
22
23 namespace Dali
24 {
25
26 namespace Toolkit
27 {
28
29 /**
30  * @brief Creates an empty image buffer filled with the color for layout tests
31  *
32  * @param[in] color The color of the image buffer.
33  * @param[in] size The size of the image buffer.
34  * @param[out] string The url.
35  */
36 std::string CreateImageURL( Vector4 color, ImageDimensions size );
37
38 /**
39  * @brief Creates an empty leaf control filled with red color for layout tests
40  *
41  * @param[in] width The width of the control.
42  * @param[in] height The height of the control.
43  * @param[out] Control The control.
44  */
45 Control CreateLeafControl( int width, int height );
46
47 /**
48  * @brief Creates a text label for layout tests
49  *
50  * @param[in] text The text of the label.
51  * @param[out] TextLabel The text label.
52  */
53 TextLabel CreateTextLabel( const char* text );
54
55 /**
56  * @brief Creates an image view for layout tests
57  *
58  * @param[in] url The image url.
59  * @param[in] size The size of the image view.
60  * @param[out] ImageView The image view.
61  */
62 ImageView CreateImageView( std::string& url, ImageDimensions size );
63
64 } // namespace Toolkit
65
66 } // namespace Dali
67
68 #endif // __DALI_TOOLKIT_LAYOUT_UTILS_H__