ui/winui/pch.h

Sun, 22 Sep 2024 16:39:10 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 22 Sep 2024 16:39:10 +0200
branch
newapi
changeset 302
b00cbbfeec7a
parent 242
4ff7361dce95
permissions
-rw-r--r--

add libadwaita toolkit option

205
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
1 // Copyright (c) Microsoft Corporation and Contributors.
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
2 // Licensed under the MIT License.
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
3
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
4 #pragma once
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
5 #include <windows.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
6 #include <unknwn.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
7 #include <restrictederrorinfo.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
8 #include <hstring.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
9
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
10 // Undefine GetCurrentTime macro to prevent
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
11 // conflict with Storyboard::GetCurrentTime
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
12 #undef GetCurrentTime
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
13
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
14 #include <winrt/Windows.Foundation.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
15 #include <winrt/Windows.Foundation.Collections.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
16 #include <winrt/Windows.ApplicationModel.Activation.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
17 #include <winrt/Microsoft.UI.Composition.h>
241
c51dd0e9ecb7 add support for table string values, that need to be freed
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 234
diff changeset
18 #include <winrt/Microsoft.UI.Windowing.h>
205
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
19 #include <winrt/Microsoft.UI.Xaml.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
20 #include <winrt/Microsoft.UI.Xaml.Controls.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
21 #include <winrt/Microsoft.UI.Xaml.Controls.Primitives.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
22 #include <winrt/Microsoft.UI.Xaml.Data.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
23 #include <winrt/Microsoft.UI.Xaml.Interop.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
24 #include <winrt/Microsoft.UI.Xaml.Markup.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
25 #include <winrt/Microsoft.UI.Xaml.Media.h>
216
391c2c723029 add dll icon loader
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 205
diff changeset
26 #include <winrt/Microsoft.UI.Xaml.Media.Imaging.h>
205
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
27 #include <winrt/Microsoft.UI.Xaml.Navigation.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
28 #include <winrt/Microsoft.UI.Xaml.Shapes.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
29 #include <winrt/Microsoft.UI.Xaml.XamlTypeInfo.h>
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
30 #include <winrt/Microsoft.UI.Dispatching.h>
224
88bc21b19213 add minimal working dnd implementation (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 216
diff changeset
31 #include <winrt/Windows.ApplicationModel.DataTransfer.h>
205
b1ac0dd1d38b new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
32 #include <wil/cppwinrt_helpers.h>
225
097f45f9c1fa add new path textfield (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 224
diff changeset
33 #include <winrt/Microsoft.UI.Xaml.Input.h>
227
04b317bc6f13 make table columns resizable
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 225
diff changeset
34 #include <winrt/Microsoft.UI.Input.h>
225
097f45f9c1fa add new path textfield (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 224
diff changeset
35 #include <winrt/Windows.UI.Core.h>
097f45f9c1fa add new path textfield (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 224
diff changeset
36 #include <winrt/Windows.ApplicationModel.h>
242
4ff7361dce95 add file open dialog (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 241
diff changeset
37 #include <winrt/Windows.Storage.Pickers.h>
4ff7361dce95 add file open dialog (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 241
diff changeset
38
234
9036b346cd66 implement ui_job() and add ui_call_mainthread (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 227
diff changeset
39 #include <winrt\Microsoft.UI.Dispatching.h>
216
391c2c723029 add dll icon loader
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 205
diff changeset
40
391c2c723029 add dll icon loader
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 205
diff changeset
41 #include <winrt/Windows.Storage.Streams.h>
242
4ff7361dce95 add file open dialog (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 241
diff changeset
42
4ff7361dce95 add file open dialog (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 241
diff changeset
43 #include <Microsoft.UI.Xaml.Window.h>
4ff7361dce95 add file open dialog (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 241
diff changeset
44
4ff7361dce95 add file open dialog (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 241
diff changeset
45 #include <shobjidl_core.h>

mercurial