/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
+ * @param[in] windowData The window data
*/
-WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet);
+WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
} // namespace WidgetApplicationFactory
WidgetApplicationPtr WidgetApplication::New(
int* argc,
char** argv[],
- const std::string& stylesheet)
+ const std::string& stylesheet,
+ WindowData& windowData)
{
- //WidgetApplicationPtr //widgetApplication( new WidgetApplication (argc, argv, stylesheet ) );
- return WidgetApplicationFactory::Create(argc, argv, stylesheet);
+ // WidgetApplicationPtr //widgetApplication( new WidgetApplication (argc, argv, stylesheet ) );
+ return WidgetApplicationFactory::Create(argc, argv, stylesheet, windowData);
}
-WidgetApplication::WidgetApplication(int* argc, char** argv[], const std::string& stylesheet)
-: Application(argc, argv, stylesheet, Dali::WidgetApplication::OPAQUE, PositionSize(), Framework::WIDGET, WindowType::NORMAL, false)
+WidgetApplication::WidgetApplication(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
+: Application(argc, argv, stylesheet, Framework::WIDGET, false, windowData)
{
DALI_LOG_ERROR("WidgetApplication is not implemented in UBUNTU profile.\n");
}