Skip to content
LeviMC
English
AutoLightDark
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>
57 _readAssetFileInternal(::Core::PathView filename, ::std::string& buffer) /*override*/;
58
59 virtual ::Core::PathBuffer<::std::string> getAssetFileFullPath(::Core::Path const& filename) /*override*/;
60
61 virtual ::Core::PathBuffer<::std::string> copyImportFileToTempFolder(::Core::Path const& filePath) /*override*/;
62
63 virtual bool canLaunchUri(::std::string const& uri) /*override*/;
64
65 virtual void launchUri(::std::string const& uri) /*override*/;
66
67 virtual ::Core::PathBuffer<::std::string> getPackagePath() const /*override*/;
68
69 virtual ::Core::PathBuffer<::std::string> getLoggingPath() const /*override*/;
70
71 virtual ::std::string getEdition() const /*override*/;
72
73 virtual ::OsVersion getOSVersion() const /*override*/;
74
75 virtual bool supportsVibration() const /*override*/;
76
77 virtual bool supportsFliteTTS() const /*override*/;
78
79 virtual int getScreenWidth() const /*override*/;
80
81 virtual int getScreenHeight() const /*override*/;
82
83 virtual int getDisplayWidth() /*override*/;
84
85 virtual int getDisplayHeight() /*override*/;
86
87 virtual void setScreenSize(int, int) /*override*/;
88
89 virtual void setWindowSize(int width, int height) /*override*/;
90
91 virtual void setWindowText(::std::string const& title) /*override*/;
92
93 virtual ::std::string getTextBoxBackend() const /*override*/;
94
95 virtual void setTextBoxBackend(::std::string const& newText) /*override*/;
96
97 virtual int getCaretPosition() const /*override*/;
98
99 virtual void setCaretPosition(int position) /*override*/;
100
101 virtual bool hasBuyButtonWhenInvalidLicense() /*override*/;
102
103 virtual ::std::string getApplicationId() const /*override*/;
104
105 virtual bool isCentennial() const /*override*/;
106
107 virtual ::std::string getPackageFamilyName() const /*override*/;
108
109 virtual ::PlatformType getPlatformType() const /*override*/;
110
111 virtual ::BuildPlatform getBuildPlatform() const /*override*/;
112
113 virtual ::std::unique_ptr<::SecureStorage> getSecureStorage() /*override*/;
114
115 virtual ::std::unique_ptr<::SecureStorage> getSharedSecureStorage() /*override*/;
116
117 virtual ::SecureStorageKey getSecureStorageKey(::std::string const&) /*override*/;
118
119 virtual void setSecureStorageKey(::std::string const&, ::SecureStorageKey const&) /*override*/;
120
121 virtual ::std::string getPlatformString() const /*override*/;
122
123 virtual uint64 getFreeMemory() const /*override*/;
124
125 virtual uint64 getMemoryLimit() const /*override*/;
126
127 virtual uint64 getUsedMemory() /*override*/;
128
129 virtual uint64 getTotalPhysicalMemory() const /*override*/;
130
131 virtual ::std::string getModelName() /*override*/;
132
133 virtual void setFullscreenMode(::FullscreenMode const fullscreenMode) /*override*/;
134
135 virtual bool isWebviewSupported() const /*override*/;
136
137 virtual ::std::shared_ptr<::WebviewInterface> createWebview(::Webview::PlatformArguments&& args) const /*override*/;
138
139 virtual bool getPlatformTTSEnabled() const /*override*/;
140
141 virtual ::dragon::platform::SurfaceParameters getRenderSurfaceParameters() const /*override*/;
142
143 virtual ::std::optional<bool> isOnWifiConnectionTelemetryValue() /*override*/;
144
145 virtual void hideSplashScreen() /*override*/;
146
147 virtual int getPlatformDpi() const /*override*/;
148
149 virtual ::UIScalingRules getPlatformUIScalingRules() const /*override*/;
150 // NOLINTEND
151
152public:
153 // member functions
154 // NOLINTBEGIN
156 ::std::unique_ptr<::IAppPlatformImpl> impl,
157 ::HWND__* hWnd,
158 ::std::string const& dataFolder,
159 ::std::string_view,
160 ::std::shared_ptr<::HIDController> HIDControllerWinRT,
161 int screenWidth,
162 int screenHeight
163 );
164 // NOLINTEND
165
166public:
167 // static functions
168 // NOLINTBEGIN
169 MCNAPI static void setupWorkingDirectory();
170 // NOLINTEND
171
172public:
173 // constructor thunks
174 // NOLINTBEGIN
175 MCNAPI void* $ctor(
176 ::std::unique_ptr<::IAppPlatformImpl> impl,
177 ::HWND__* hWnd,
178 ::std::string const& dataFolder,
179 ::std::string_view,
180 ::std::shared_ptr<::HIDController> HIDControllerWinRT,
181 int screenWidth,
182 int screenHeight
183 );
184 // NOLINTEND
185
186public:
187 // destructor thunk
188 // NOLINTBEGIN
189 MCNAPI void $dtor();
190 // NOLINTEND
191
192public:
193 // virtual function thunks
194 // NOLINTBEGIN
195 MCNAPI ::Bedrock::Result<::std::string> $_readAssetFileInternal(::Core::PathView filename, ::std::string& buffer);
196
197 MCNAPI ::Core::PathBuffer<::std::string> $getAssetFileFullPath(::Core::Path const& filename);
198
199 MCNAPI ::Core::PathBuffer<::std::string> $copyImportFileToTempFolder(::Core::Path const& filePath);
200
201 MCNAPI bool $canLaunchUri(::std::string const& uri);
202
203 MCNAPI void $launchUri(::std::string const& uri);
204
205 MCNAPI ::Core::PathBuffer<::std::string> $getPackagePath() const;
206
207 MCNAPI ::Core::PathBuffer<::std::string> $getLoggingPath() const;
208
209 MCNAPI ::std::string $getEdition() const;
210
211 MCNAPI ::OsVersion $getOSVersion() const;
212
213 MCNAPI bool $supportsVibration() const;
214
215 MCNAPI bool $supportsFliteTTS() const;
216
217 MCNAPI int $getScreenWidth() const;
218
219 MCNAPI int $getScreenHeight() const;
220
221 MCNAPI int $getDisplayWidth();
222
223 MCNAPI int $getDisplayHeight();
224
225 MCNAPI void $setScreenSize(int, int);
226
227 MCNAPI void $setWindowSize(int width, int height);
228
229 MCNAPI void $setWindowText(::std::string const& title);
230
231 MCNAPI ::std::string $getTextBoxBackend() const;
232
233 MCNAPI void $setTextBoxBackend(::std::string const& newText);
234
235 MCNAPI int $getCaretPosition() const;
236
237 MCNAPI void $setCaretPosition(int position);
238
240
241 MCNAPI ::std::string $getApplicationId() const;
242
243 MCNAPI bool $isCentennial() const;
244
245 MCNAPI ::std::string $getPackageFamilyName() const;
246
247 MCNAPI ::PlatformType $getPlatformType() const;
248
249 MCNAPI ::BuildPlatform $getBuildPlatform() const;
250
251 MCNAPI ::std::unique_ptr<::SecureStorage> $getSecureStorage();
252
253 MCNAPI ::std::unique_ptr<::SecureStorage> $getSharedSecureStorage();
254
255 MCNAPI ::SecureStorageKey $getSecureStorageKey(::std::string const&);
256
257 MCNAPI void $setSecureStorageKey(::std::string const&, ::SecureStorageKey const&);
258
259 MCNAPI ::std::string $getPlatformString() const;
260
261 MCNAPI uint64 $getFreeMemory() const;
262
263 MCNAPI uint64 $getMemoryLimit() const;
264
265 MCNAPI uint64 $getUsedMemory();
266
267 MCNAPI uint64 $getTotalPhysicalMemory() const;
268
269 MCNAPI ::std::string $getModelName();
270
271 MCNAPI void $setFullscreenMode(::FullscreenMode const fullscreenMode);
272
273 MCNAPI bool $isWebviewSupported() const;
274
275 MCNAPI ::std::shared_ptr<::WebviewInterface> $createWebview(::Webview::PlatformArguments&& args) const;
276
277 MCNAPI bool $getPlatformTTSEnabled() const;
278
279 MCNAPI ::dragon::platform::SurfaceParameters $getRenderSurfaceParameters() const;
280
281 MCNAPI ::std::optional<bool> $isOnWifiConnectionTelemetryValue();
282
283 MCNAPI void $hideSplashScreen();
284
285 MCNAPI int $getPlatformDpi() const;
286
287 MCNAPI ::UIScalingRules $getPlatformUIScalingRules() const;
288 // NOLINTEND
289};
MCAPI::BuildPlatform $getBuildPlatform() const
MCAPI bool $hasBuyButtonWhenInvalidLicense()
MCAPI bool $canLaunchUri(::std::string const &uri)
MCAPI int $getDisplayWidth()
MCAPI void $setWindowText(::std::string const &title)
MCAPI void $dtor()
MCAPI::std::string $getPackageFamilyName() const
MCAPI bool $supportsVibration() const
MCAPI bool $isCentennial() const
MCAPI ::std::unique_ptr<::SecureStorage > $getSecureStorage()
MCAPI int $getScreenHeight() const
MCAPI::UIScalingRules $getPlatformUIScalingRules() const
MCAPI::dragon::platform::SurfaceParameters $getRenderSurfaceParameters() const
MCAPI::OsVersion $getOSVersion() const
MCAPI int $getPlatformDpi() const
MCAPI uint64 $getFreeMemory() const
MCAPI ::std::unique_ptr<::SecureStorage > $getSharedSecureStorage()
MCAPI void $setTextBoxBackend(::std::string const &newText)
static MCAPI void setupWorkingDirectory()
MCAPI bool $getPlatformTTSEnabled() const
MCAPI ::Core::PathBuffer<::std::string > $copyImportFileToTempFolder(::Core::Path const &filePath)
MCAPI void $setFullscreenMode(::FullscreenMode const fullscreenMode)
MCAPI ::std::optional< bool > $isOnWifiConnectionTelemetryValue()
MCAPI AppPlatform_win32(::std::unique_ptr<::IAppPlatformImpl > impl, ::HWND__ *hWnd, ::std::string const &dataFolder, ::std::string_view, ::std::shared_ptr<::HIDController > HIDControllerWinRT, int screenWidth, int screenHeight)
MCAPI uint64 $getMemoryLimit() const
MCAPI::std::string $getTextBoxBackend() const
MCAPI ::std::shared_ptr<::WebviewInterface > $createWebview(::Webview::PlatformArguments &&args) const
MCAPI int $getCaretPosition() const
MCAPI::std::string $getEdition() const
MCAPI uint64 $getTotalPhysicalMemory() const
MCAPI::SecureStorageKey $getSecureStorageKey(::std::string const &)
MCAPI void $setScreenSize(int, int)
MCAPI ::Bedrock::Result<::std::string > $_readAssetFileInternal(::Core::PathView filename, ::std::string &buffer)
MCAPI::std::string $getModelName()
MCAPI void $hideSplashScreen()
MCAPI void $setCaretPosition(int position)
MCAPI::std::string $getPlatformString() const
MCAPI ::Core::PathBuffer<::std::string > $getAssetFileFullPath(::Core::Path const &filename)
MCAPI ::Core::PathBuffer<::std::string > $getLoggingPath() const
MCAPI::PlatformType $getPlatformType() const
MCAPI ::Core::PathBuffer<::std::string > $getPackagePath() const
MCAPI void $setWindowSize(int width, int height)
MCAPI void $launchUri(::std::string const &uri)
MCAPI int $getDisplayHeight()
MCAPI bool $isWebviewSupported() const
MCAPI::std::string $getApplicationId() const
MCAPI bool $supportsFliteTTS() const
MCAPI void * $ctor(::std::unique_ptr<::IAppPlatformImpl > impl, ::HWND__ *hWnd, ::std::string const &dataFolder, ::std::string_view, ::std::shared_ptr<::HIDController > HIDControllerWinRT, int screenWidth, int screenHeight)
MCAPI void $setSecureStorageKey(::std::string const &, ::SecureStorageKey const &)
MCAPI int $getScreenWidth() const
MCAPI uint64 $getUsedMemory()
Definition PathView.h:19
Definition Path.h:10
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 buffer.h:5
Definition SurfaceParameters.h:7