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