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/platform/OSInformation.h"
13#include "mc/platform/Result.h"
14#include "mc/win/AppPlatformWindows.h"
15
16// auto generated forward declare list
17// clang-format off
18class HIDController;
19class SecureStorage;
22namespace Core { class Path; }
23namespace Core { class PathView; }
24namespace Webview { class PlatformArguments; }
25// clang-format on
26
27class AppPlatform_win32 : public ::AppPlatformWindows {
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HIDController>> mHIDController;
32 ::ll::TypedStorage<8, 8, ::HWND__*> mHWnd;
33 ::ll::TypedStorage<8, 8, ::HICON__*> mCursor;
34 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mDataFolder;
35 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mLoggingFolder;
36 ::ll::TypedStorage<1, 1, bool> mSimulateTouchWithMouse;
37 ::ll::TypedStorage<1, 1, bool> mMouseCapture;
38 ::ll::TypedStorage<8, 8, uint64> mPhysicalMemory;
39 ::ll::TypedStorage<8, 8, uint64> mVirtualMemory;
40 ::ll::TypedStorage<4, 16, ::tagRECT> mSavedWindowSize;
41 ::ll::TypedStorage<4, 4, long> mDefaultStyle;
42 ::ll::TypedStorage<8, 40, ::OSInformation> mOSInfo;
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 AppPlatform_win32();
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual ~AppPlatform_win32() /*override*/;
53
54 virtual ::Bedrock::Result<::std::string> _readAssetFileInternal(::Core::PathView filename) /*override*/;
55
56 virtual ::Core::PathBuffer<::std::string> getAssetFileFullPath(::Core::Path const& filename) /*override*/;
57
58 virtual ::Core::PathBuffer<::std::string> copyImportFileToTempFolder(::Core::Path const& filePath) /*override*/;
59
60 virtual bool canLaunchUri(::std::string const& uri) /*override*/;
61
62 virtual void launchUri(::std::string const& uri) /*override*/;
63
64 virtual ::Core::PathBuffer<::std::string> getPackagePath() const /*override*/;
65
66 virtual ::Core::PathBuffer<::std::string> getLoggingPath() const /*override*/;
67
68 virtual ::std::string getEdition() const /*override*/;
69
70 virtual ::OsVersion getOSVersion() const /*override*/;
71
72 virtual bool supportsVibration() const /*override*/;
73
74 virtual bool supportsFliteTTS() const /*override*/;
75
76 virtual int getScreenWidth() const /*override*/;
77
78 virtual int getScreenHeight() const /*override*/;
79
80 virtual int getDisplayWidth() /*override*/;
81
82 virtual int getDisplayHeight() /*override*/;
83
84 virtual void setScreenSize(int width, int height) /*override*/;
85
86 virtual void setWindowSize(int width, int height) /*override*/;
87
88 virtual void setWindowText(::std::string const& title) /*override*/;
89
90 virtual ::std::string getTextBoxBackend() const /*override*/;
91
92 virtual void setTextBoxBackend(::std::string const& newText) /*override*/;
93
94 virtual int getCaretPosition() const /*override*/;
95
96 virtual void setCaretPosition(int position) /*override*/;
97
98 virtual bool hasBuyButtonWhenInvalidLicense() /*override*/;
99
100 virtual ::std::string getApplicationId() const /*override*/;
101
102 virtual bool isCentennial() const /*override*/;
103
104 virtual ::std::string getPackageFamilyName() const /*override*/;
105
106 virtual ::PlatformType getPlatformType() const /*override*/;
107
108 virtual ::BuildPlatform getBuildPlatform() const /*override*/;
109
110 virtual ::std::unique_ptr<::SecureStorage> getSecureStorage() /*override*/;
111
112 virtual ::SecureStorageKey getSecureStorageKey(::std::string const& key) /*override*/;
113
114 virtual void setSecureStorageKey(::std::string const& key, ::SecureStorageKey const& value) /*override*/;
115
116 virtual ::std::string getPlatformString() const /*override*/;
117
118 virtual ::std::string getSubPlatformString() const /*override*/;
119
120 virtual uint64 getFreeMemory() const /*override*/;
121
122 virtual uint64 getMemoryLimit() const /*override*/;
123
124 virtual uint64 getUsedMemory() /*override*/;
125
126 virtual uint64 getTotalPhysicalMemory() const /*override*/;
127
128 virtual ::std::string getModelName() /*override*/;
129
130 virtual void setFullscreenMode(::FullscreenMode const fullscreenMode) /*override*/;
131
132 virtual bool isWebviewSupported() const /*override*/;
133
134 virtual ::std::shared_ptr<::WebviewInterface> createWebview(::Webview::PlatformArguments&& args) const /*override*/;
135
136 virtual bool getPlatformTTSEnabled() const /*override*/;
137
138 virtual ::std::variant<::HWND__*, ::std::monostate> getRenderSurfaceParameters() const /*override*/;
139
140 virtual ::std::optional<bool> isOnWifiConnectionTelemetryValue() /*override*/;
141
142 virtual void hideSplashScreen() /*override*/;
143
144 virtual int getPlatformDpi() const /*override*/;
145
146 virtual ::UIScalingRules getPlatformUIScalingRules() const /*override*/;
147 // NOLINTEND
148
149public:
150 // member functions
151 // NOLINTBEGIN
152 MCAPI AppPlatform_win32(
153 ::HWND__* hWnd,
154 ::std::string const& dataFolder,
155 ::std::string_view,
156 ::std::shared_ptr<::HIDController> HIDControllerWinRT,
157 int screenWidth,
158 int screenHeight
159 );
160
161 MCAPI ::OSInformation _fetchOSInformation() const;
162 // NOLINTEND
163
164public:
165 // constructor thunks
166 // NOLINTBEGIN
167 MCAPI void* $ctor(
168 ::HWND__* hWnd,
169 ::std::string const& dataFolder,
170 ::std::string_view,
171 ::std::shared_ptr<::HIDController> HIDControllerWinRT,
172 int screenWidth,
173 int screenHeight
174 );
175 // NOLINTEND
176
177public:
178 // destructor thunk
179 // NOLINTBEGIN
180 MCAPI void $dtor();
181 // NOLINTEND
182
183public:
184 // virtual function thunks
185 // NOLINTBEGIN
186 MCAPI ::Bedrock::Result<::std::string> $_readAssetFileInternal(::Core::PathView filename);
187
188 MCAPI ::Core::PathBuffer<::std::string> $getAssetFileFullPath(::Core::Path const& filename);
189
190 MCAPI ::Core::PathBuffer<::std::string> $copyImportFileToTempFolder(::Core::Path const& filePath);
191
192 MCFOLD bool $canLaunchUri(::std::string const& uri);
193
194 MCAPI void $launchUri(::std::string const& uri);
195
196 MCAPI ::Core::PathBuffer<::std::string> $getPackagePath() const;
197
198 MCAPI ::Core::PathBuffer<::std::string> $getLoggingPath() const;
199
200 MCAPI ::std::string $getEdition() const;
201
202 MCAPI ::OsVersion $getOSVersion() const;
203
204 MCFOLD bool $supportsVibration() const;
205
206 MCFOLD bool $supportsFliteTTS() const;
207
208 MCAPI int $getScreenWidth() const;
209
210 MCAPI int $getScreenHeight() const;
211
212 MCAPI int $getDisplayWidth();
213
214 MCAPI int $getDisplayHeight();
215
216 MCFOLD void $setScreenSize(int width, int height);
217
218 MCAPI void $setWindowSize(int width, int height);
219
220 MCAPI void $setWindowText(::std::string const& title);
221
222 MCFOLD ::std::string $getTextBoxBackend() const;
223
224 MCFOLD void $setTextBoxBackend(::std::string const& newText);
225
226 MCFOLD int $getCaretPosition() const;
227
228 MCFOLD void $setCaretPosition(int position);
229
230 MCFOLD bool $hasBuyButtonWhenInvalidLicense();
231
232 MCAPI ::std::string $getApplicationId() const;
233
234 MCAPI bool $isCentennial() const;
235
236 MCAPI ::std::string $getPackageFamilyName() const;
237
238 MCFOLD ::PlatformType $getPlatformType() const;
239
240 MCFOLD ::BuildPlatform $getBuildPlatform() const;
241
242 MCAPI ::std::unique_ptr<::SecureStorage> $getSecureStorage();
243
244 MCAPI ::SecureStorageKey $getSecureStorageKey(::std::string const& key);
245
246 MCFOLD void $setSecureStorageKey(::std::string const& key, ::SecureStorageKey const& value);
247
248 MCAPI ::std::string $getPlatformString() const;
249
250 MCAPI ::std::string $getSubPlatformString() const;
251
252 MCAPI uint64 $getFreeMemory() const;
253
254 MCAPI uint64 $getMemoryLimit() const;
255
256 MCAPI uint64 $getUsedMemory();
257
258 MCAPI uint64 $getTotalPhysicalMemory() const;
259
260 MCAPI ::std::string $getModelName();
261
262 MCAPI void $setFullscreenMode(::FullscreenMode const fullscreenMode);
263
264 MCAPI bool $isWebviewSupported() const;
265
266 MCFOLD ::std::shared_ptr<::WebviewInterface> $createWebview(::Webview::PlatformArguments&& args) const;
267
268 MCAPI bool $getPlatformTTSEnabled() const;
269
270 MCAPI ::std::variant<::HWND__*, ::std::monostate> $getRenderSurfaceParameters() const;
271
272 MCAPI ::std::optional<bool> $isOnWifiConnectionTelemetryValue();
273
274 MCAPI void $hideSplashScreen();
275
276 MCFOLD int $getPlatformDpi() const;
277
278 MCFOLD ::UIScalingRules $getPlatformUIScalingRules() const;
279 // NOLINTEND
280
281public:
282 // vftables
283 // NOLINTBEGIN
284 MCNAPI static void** $vftableForIAppPlatform();
285
287 // NOLINTEND
288};
static MCAPI void ** $vftableForIAppPlatform()
static MCAPI void ** $vftableForISecureStorageKeySystem()
Definition PathView.h:19
Definition Path.h:17
Definition HIDController.h:5
MCAPI void $dtor()
Definition SecureStorageKey.h:5
Definition SecureStorage.h:5
Definition WebviewInterface.h:5
Definition PlatformArguments.h:7