LeviLamina
Loading...
Searching...
No Matches
AppPlatform_win32.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/application/OsVersion.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/platform/BuildPlatform.h"
9#include "mc/deps/core/platform/FullscreenMode.h"
10#include "mc/deps/core/platform/PlatformType.h"
11#include "mc/deps/core/platform/UIScalingRules.h"
12#include "mc/win/AppPlatformWindows.h"
13
14// auto generated forward declare list
15// clang-format off
16class HIDController;
17class SecureStorage;
20struct OSInformation;
21namespace Core { class Path; }
22namespace Webview { class PlatformArguments; }
23// clang-format on
24
26public:
27 // member variables
28 // NOLINTBEGIN
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
45 AppPlatform_win32& operator=(AppPlatform_win32 const&);
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 0
53 virtual ~AppPlatform_win32() /*override*/;
54
55 // vIndex: 100
56 virtual ::std::string readAssetFile(::Core::Path const& filename) /*override*/;
57
58 // vIndex: 99
59 virtual ::Core::PathBuffer<::std::string> getAssetFileFullPath(::Core::Path const& filename) /*override*/;
60
61 // vIndex: 103
62 virtual ::std::set<::Core::PathBuffer<::std::string>>
63 listAssetFilesIn(::Core::Path const& path, ::std::string const& extension) const /*override*/;
64
65 // vIndex: 67
66 virtual ::Core::PathBuffer<::std::string> copyImportFileToTempFolder(::Core::Path const& filePath) /*override*/;
67
68 // vIndex: 119
69 virtual bool canLaunchUri(::std::string const& uri) /*override*/;
70
71 // vIndex: 120
72 virtual void launchUri(::std::string const& uri) /*override*/;
73
74 // vIndex: 31
75 virtual ::Core::PathBuffer<::std::string> getPackagePath() const /*override*/;
76
77 // vIndex: 2
78 virtual ::Core::PathBuffer<::std::string> getLoggingPath() const /*override*/;
79
80 // vIndex: 160
81 virtual ::std::string getEdition() const /*override*/;
82
83 // vIndex: 161
84 virtual ::OsVersion getOSVersion() const /*override*/;
85
86 // vIndex: 32
87 virtual bool hasFastAlphaTest() const /*override*/;
88
89 // vIndex: 97
90 virtual bool supportsVibration() const /*override*/;
91
92 // vIndex: 179
93 virtual bool supportsFliteTTS() const /*override*/;
94
95 // vIndex: 70
96 virtual int getScreenWidth() const /*override*/;
97
98 // vIndex: 71
99 virtual int getScreenHeight() const /*override*/;
100
101 // vIndex: 72
102 virtual int getDisplayWidth() /*override*/;
103
104 // vIndex: 73
105 virtual int getDisplayHeight() /*override*/;
106
107 // vIndex: 74
108 virtual void setScreenSize(int width, int height) /*override*/;
109
110 // vIndex: 75
111 virtual void setWindowSize(int width, int height) /*override*/;
112
113 // vIndex: 76
114 virtual void setWindowText(::std::string const& title) /*override*/;
115
116 // vIndex: 93
117 virtual ::std::string getTextBoxBackend() const /*override*/;
118
119 // vIndex: 94
120 virtual void setTextBoxBackend(::std::string const& newText) /*override*/;
121
122 // vIndex: 95
123 virtual int getCaretPosition() const /*override*/;
124
125 // vIndex: 96
126 virtual void setCaretPosition(int position) /*override*/;
127
128 // vIndex: 107
129 virtual bool hasBuyButtonWhenInvalidLicense() /*override*/;
130
131 // vIndex: 138
132 virtual ::std::string getApplicationId() const /*override*/;
133
134 // vIndex: 124
135 virtual bool isCentennial() const /*override*/;
136
137 // vIndex: 125
138 virtual ::std::string getPackageFamilyName() const /*override*/;
139
140 // vIndex: 123
141 virtual ::PlatformType getPlatformType() const /*override*/;
142
143 // vIndex: 16
144 virtual ::BuildPlatform getBuildPlatform() const /*override*/;
145
146 // vIndex: 180
147 virtual ::std::unique_ptr<::SecureStorage> getSecureStorage() /*override*/;
148
149 // vIndex: 1
150 virtual ::SecureStorageKey getSecureStorageKey(::std::string const&) /*override*/;
151
152 // vIndex: 2
153 virtual void setSecureStorageKey(::std::string const&, ::SecureStorageKey const&) /*override*/;
154
155 // vIndex: 126
156 virtual ::std::string getPlatformString() const /*override*/;
157
158 // vIndex: 127
159 virtual ::std::string getSubPlatformString() const /*override*/;
160
161 // vIndex: 139
162 virtual uint64 getFreeMemory() const /*override*/;
163
164 // vIndex: 140
165 virtual uint64 getMemoryLimit() const /*override*/;
166
167 // vIndex: 141
168 virtual uint64 getUsedMemory() /*override*/;
169
170 // vIndex: 20
171 virtual uint64 getTotalPhysicalMemory() const /*override*/;
172
173 // vIndex: 153
174 virtual ::std::string getModelName() /*override*/;
175
176 // vIndex: 156
177 virtual void setFullscreenMode(::FullscreenMode const fullscreenMode) /*override*/;
178
179 // vIndex: 212
180 virtual bool isWebviewSupported() const /*override*/;
181
182 // vIndex: 213
183 virtual ::std::shared_ptr<::WebviewInterface> createWebview(::Webview::PlatformArguments&& args) const /*override*/;
184
185 // vIndex: 216
186 virtual bool getPlatformTTSEnabled() const /*override*/;
187
188 // vIndex: 217
189 virtual ::std::variant<::HWND__*, ::std::monostate> getRenderSurfaceParameters() const /*override*/;
190
191 // vIndex: 110
192 virtual ::std::optional<bool> isOnWifiConnectionTelemetryValue() /*override*/;
193
194 // vIndex: 38
195 virtual void hideSplashScreen() /*override*/;
196
197 // vIndex: 248
198 virtual int getPlatformDpi() const /*override*/;
199
200 // vIndex: 249
201 virtual ::UIScalingRules getPlatformUIScalingRules() const /*override*/;
202 // NOLINTEND
203
204public:
205 // member functions
206 // NOLINTBEGIN
207 MCAPI AppPlatform_win32(
208 ::HWND__* dataFolder,
209 ::std::string const& HIDControllerWinRT,
210 ::std::string_view hWnd,
211 ::std::shared_ptr<::HIDController>,
212 int screenWidth,
213 int screenHeight
214 );
215
216 MCAPI ::OSInformation _fetchOSInformation() const;
217 // NOLINTEND
218
219public:
220 // constructor thunks
221 // NOLINTBEGIN
222 MCAPI void* $ctor(
223 ::HWND__* dataFolder,
224 ::std::string const& HIDControllerWinRT,
225 ::std::string_view hWnd,
226 ::std::shared_ptr<::HIDController>,
227 int screenWidth,
228 int screenHeight
229 );
230 // NOLINTEND
231
232public:
233 // destructor thunk
234 // NOLINTBEGIN
235 MCAPI void $dtor();
236 // NOLINTEND
237
238public:
239 // virtual function thunks
240 // NOLINTBEGIN
241 MCAPI ::std::string $readAssetFile(::Core::Path const& filename);
242
243 MCAPI ::Core::PathBuffer<::std::string> $getAssetFileFullPath(::Core::Path const& filename);
244
245 MCAPI ::std::set<::Core::PathBuffer<::std::string>>
246 $listAssetFilesIn(::Core::Path const& path, ::std::string const& extension) const;
247
248 MCAPI ::Core::PathBuffer<::std::string> $copyImportFileToTempFolder(::Core::Path const& filePath);
249
250 MCFOLD bool $canLaunchUri(::std::string const& uri);
251
252 MCAPI void $launchUri(::std::string const& uri);
253
254 MCAPI ::Core::PathBuffer<::std::string> $getPackagePath() const;
255
256 MCAPI ::Core::PathBuffer<::std::string> $getLoggingPath() const;
257
258 MCAPI ::std::string $getEdition() const;
259
260 MCAPI ::OsVersion $getOSVersion() const;
261
262 MCFOLD bool $hasFastAlphaTest() const;
263
264 MCFOLD bool $supportsVibration() const;
265
266 MCFOLD bool $supportsFliteTTS() const;
267
268 MCAPI int $getScreenWidth() const;
269
270 MCAPI int $getScreenHeight() const;
271
272 MCAPI int $getDisplayWidth();
273
274 MCAPI int $getDisplayHeight();
275
276 MCFOLD void $setScreenSize(int width, int height);
277
278 MCAPI void $setWindowSize(int width, int height);
279
280 MCAPI void $setWindowText(::std::string const& title);
281
282 MCFOLD ::std::string $getTextBoxBackend() const;
283
284 MCFOLD void $setTextBoxBackend(::std::string const& newText);
285
286 MCFOLD int $getCaretPosition() const;
287
288 MCFOLD void $setCaretPosition(int position);
289
290 MCFOLD bool $hasBuyButtonWhenInvalidLicense();
291
292 MCAPI ::std::string $getApplicationId() const;
293
294 MCAPI bool $isCentennial() const;
295
296 MCAPI ::std::string $getPackageFamilyName() const;
297
298 MCFOLD ::PlatformType $getPlatformType() const;
299
300 MCFOLD ::BuildPlatform $getBuildPlatform() const;
301
302 MCAPI ::std::unique_ptr<::SecureStorage> $getSecureStorage();
303
304 MCAPI ::SecureStorageKey $getSecureStorageKey(::std::string const&);
305
306 MCFOLD void $setSecureStorageKey(::std::string const&, ::SecureStorageKey const&);
307
308 MCAPI ::std::string $getPlatformString() const;
309
310 MCAPI ::std::string $getSubPlatformString() const;
311
312 MCAPI uint64 $getFreeMemory() const;
313
314 MCAPI uint64 $getMemoryLimit() const;
315
316 MCAPI uint64 $getUsedMemory();
317
318 MCAPI uint64 $getTotalPhysicalMemory() const;
319
320 MCAPI ::std::string $getModelName();
321
322 MCAPI void $setFullscreenMode(::FullscreenMode const fullscreenMode);
323
324 MCAPI bool $isWebviewSupported() const;
325
326 MCFOLD ::std::shared_ptr<::WebviewInterface> $createWebview(::Webview::PlatformArguments&& args) const;
327
328 MCAPI bool $getPlatformTTSEnabled() const;
329
330 MCAPI ::std::variant<::HWND__*, ::std::monostate> $getRenderSurfaceParameters() const;
331
332 MCAPI ::std::optional<bool> $isOnWifiConnectionTelemetryValue();
333
334 MCAPI void $hideSplashScreen();
335
336 MCFOLD int $getPlatformDpi() const;
337
338 MCFOLD ::UIScalingRules $getPlatformUIScalingRules() const;
339 // NOLINTEND
340
341public:
342 // vftables
343 // NOLINTBEGIN
344 MCAPI static void** $vftableForIAppPlatform();
345
346 MCAPI static void** $vftableForISecureStorageKeySystem();
347 // NOLINTEND
348};
Definition AppPlatformWindows.h:15
Definition AppPlatform_win32.h:25
Definition Path.h:15
Definition HIDController.h:5
Definition Path.h:16
Definition SecureStorageKey.h:5
Definition SecureStorage.h:5
Definition WebviewInterface.h:5
Definition PlatformArguments.h:7
Definition OSInformation.h:5
Definition Alias.h:14