1 #ifndef DALI_INTERNAL_WIDGET_APPLICATION_IMPL_WIN_H
2 #define DALI_INTERNAL_WIDGET_APPLICATION_IMPL_WIN_H
5 * Copyright (c) 2023 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.
22 #include <dali/internal/adaptor/common/application-impl.h>
23 #include <dali/internal/system/common/widget-application-impl.h>
24 #include <dali/public-api/adaptor-framework/widget-application.h>
35 * Implementation of the WidgetApplicationCocoa class.
37 class WidgetApplicationCocoa : public WidgetApplication
42 Dali::WidgetApplication::CreateWidgetFunction>
43 CreateWidgetFunctionPair;
45 typedef std::vector<CreateWidgetFunctionPair> CreateWidgetFunctionContainer;
48 * Create a new widget application
49 * @param[in] argc A pointer to the number of arguments
50 * @param[in] argv A pointer to the argument list
51 * @param[in] stylesheet The path to user defined theme file
52 * @param[in] windowData The window data
54 static WidgetApplicationPtr New(
57 const std::string& stylesheet,
58 const WindowData& windowData);
62 * @copydoc Dali::WidgetApplication::RegisterWidgetCreator()
64 void RegisterWidgetCreatingFunction(
65 const std::string& widgetName,
66 Dali::WidgetApplication::CreateWidgetFunction createFunction) override;
71 * @param[in] argc A pointer to the number of arguments
72 * @param[in] argv A pointer to the argument list
73 * @param[in] stylesheet The path to user defined theme file
74 * @param[in] windowData The window data
76 WidgetApplicationCocoa(int* argc, char** argv[], const std::string& stylesheet, const WindowData& windowData);
81 virtual ~WidgetApplicationCocoa();
83 WidgetApplicationCocoa(const Application&) = delete;
84 WidgetApplicationCocoa& operator=(Application&) = delete;
87 } // namespace Adaptor
89 } // namespace Internal
93 #endif // DALI_INTERNAL_WIDGET_APPLICATION_IMPL_UBUNTU_H