1 #ifndef __DALI_TOOLKIT_TEST_APPLICATION_H__
2 #define __DALI_TOOLKIT_TEST_APPLICATION_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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-test-suite-utils.h>
23 #include "toolkit-adaptor.h"
24 #include "toolkit-orientation.h"
30 * Adds some functionality on top of TestApplication that is required by the Toolkit.
32 class ToolkitTestApplication : public TestApplication
36 ToolkitTestApplication( size_t surfaceWidth = DEFAULT_SURFACE_WIDTH,
37 size_t surfaceHeight = DEFAULT_SURFACE_HEIGHT,
38 float horizontalDpi = DEFAULT_HORIZONTAL_DPI,
39 float verticalDpi = DEFAULT_VERTICAL_DPI )
40 : TestApplication( false, surfaceWidth, surfaceHeight, horizontalDpi, verticalDpi )
45 ~ToolkitTestApplication()
47 // Need to delete core before we delete the adaptor.
52 inline ToolkitAdaptor& GetAdaptor()
57 //ToolkitOrientation& GetOrientation()
59 //return mOrientation;
63 ToolkitAdaptor mAdaptor;
64 //ToolkitOrientation mOrientation;
69 inline ImageActor CreateSolidColorImageActor(ToolkitTestApplication& application, const Vector4& color, int width, int height)
71 ImageActor actor = ImageActor::New(CreateBitmapImage(width, height, color));
72 application.SendNotification();
78 #endif // __DALI_TOOLKIT_TEST_APPLICATION_H__