1 #ifndef __DALI_TOOLKIT_LAYOUT_UTILS_H__
2 #define __DALI_TOOLKIT_LAYOUT_UTILS_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-toolkit/dali-toolkit.h>
30 * @brief Creates an empty image buffer filled with the color for layout tests
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.
36 std::string CreateImageURL( Vector4 color, ImageDimensions size );
39 * @brief Creates an empty leaf control filled with red color for layout tests
41 * @param[in] width The width of the control.
42 * @param[in] height The height of the control.
43 * @param[out] Control The control.
45 Control CreateLeafControl( int width, int height );
48 * @brief Creates a text label for layout tests
50 * @param[in] text The text of the label.
51 * @param[out] TextLabel The text label.
53 TextLabel CreateTextLabel( const char* text );
56 * @brief Creates an image view for layout tests
58 * @param[in] url The image url.
59 * @param[in] size The size of the image view.
60 * @param[out] ImageView The image view.
62 ImageView CreateImageView( std::string& url, ImageDimensions size );
64 } // namespace Toolkit
68 #endif // __DALI_TOOLKIT_LAYOUT_UTILS_H__