Use WindowData in the constructors of Application and Window
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / macos / widget-application-impl-mac.h
1 #ifndef DALI_INTERNAL_WIDGET_APPLICATION_IMPL_WIN_H
2 #define DALI_INTERNAL_WIDGET_APPLICATION_IMPL_WIN_H
3
4 /*
5  * Copyright (c) 2023 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 // INTERNAL INCLUDES
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>
25
26 namespace Dali
27 {
28 class Widget;
29
30 namespace Internal
31 {
32 namespace Adaptor
33 {
34 /**
35  * Implementation of the WidgetApplicationCocoa class.
36  */
37 class WidgetApplicationCocoa : public WidgetApplication
38 {
39 public:
40   typedef std::pair<
41     const std::string,
42     Dali::WidgetApplication::CreateWidgetFunction>
43     CreateWidgetFunctionPair;
44
45   typedef std::vector<CreateWidgetFunctionPair> CreateWidgetFunctionContainer;
46
47   /**
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
53    */
54   static WidgetApplicationPtr New(
55     int*               argc,
56     char**             argv[],
57     const std::string& stylesheet,
58     const WindowData&  windowData);
59
60 public:
61   /**
62    * @copydoc Dali::WidgetApplication::RegisterWidgetCreator()
63    */
64   void RegisterWidgetCreatingFunction(
65     const std::string&                            widgetName,
66     Dali::WidgetApplication::CreateWidgetFunction createFunction) override;
67
68 protected:
69   /**
70    * Private Constructor
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
75    */
76   WidgetApplicationCocoa(int* argc, char** argv[], const std::string& stylesheet, const WindowData& windowData);
77
78   /**
79    * Destructor
80    */
81   virtual ~WidgetApplicationCocoa();
82
83   WidgetApplicationCocoa(const Application&) = delete;
84   WidgetApplicationCocoa& operator=(Application&) = delete;
85 };
86
87 } // namespace Adaptor
88
89 } // namespace Internal
90
91 } // namespace Dali
92
93 #endif // DALI_INTERNAL_WIDGET_APPLICATION_IMPL_UBUNTU_H