LeviLamina
Loading...
Searching...
No Matches
IAppPlatformImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/platform/UIScalingRules.h"
7#include "mc/deps/core/threading/Async.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9#include "mc/options/UIProfile.h"
10
11// auto generated forward declare list
12// clang-format off
13class AppPlatform;
16class SuspendHandler;
19namespace Bedrock::PubSub { class Subscription; }
20namespace Core { class DiskAccessTracker; }
21namespace Core { class LoadTimeProfiler; }
22// clang-format on
23
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~IAppPlatformImpl() = default;
29
30#ifdef LL_PLAT_C
31 virtual ::Bedrock::NonOwnerPointer<::SuspendHandler>
32 getSuspendHandler(bool updateCachedValue, ::AppPlatform& appPlatform) = 0;
33
34 virtual ::BatteryMonitorInterface const& getBatteryMonitorInterface() const = 0;
35
36 virtual ::ThermalMonitorInterface const& getThermalMonitorInterface() const = 0;
37
38#endif
39 virtual ::IPlatformScreenshots& getPlatformScreenshots() = 0;
40
41 virtual void setServiceLocators(::AppPlatform& platform) = 0;
42
43 virtual void resetServiceLocators() = 0;
44
45 virtual void setDiskAccessEventing(::Core::DiskAccessTracker& diskAccessTracker) = 0;
46
47 virtual bool isRealmsEnabled() const = 0;
48
49 virtual ::Bedrock::PubSub::Subscription initializeLoadProfiler(::Core::LoadTimeProfiler& profiler) = 0;
50
51 virtual ::Bedrock::Threading::Async<::IntegrityTokenResult> requestIntegrityToken(::std::string const&) = 0;
52
53 virtual ::std::string getFullLanguageCode() = 0;
54
55 virtual bool mouseInputHandledByImGui() = 0;
56
57 virtual bool keyboardInputHandledByImGui() = 0;
58
59 virtual void updateImGuiMousePosition(float x, float y) = 0;
60
61 virtual void updateImGuiMouseButton(uchar button, bool isDown) = 0;
62
63 virtual void updateImGuiMouseScrollBar(float value) = 0;
64
65 virtual void imGuiAddInputChar(ushort c) = 0;
66
67 virtual bool updateImGuiKeyboard(uchar param, bool isDown) = 0;
68
69 virtual ::UIProfile getDefaultUIProfile(::UIScalingRules uiScalingRules) const = 0;
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75
76 // NOLINTEND
77};
Definition AppPlatform.h:91
Definition BatteryMonitorInterface.h:9
Definition Subscription.h:10
Definition DiskAccessTracker.h:17
Definition LoadTimeProfiler.h:10
Definition IAppPlatformImpl.h:24
Definition IPlatformScreenshots.h:10
Definition SuspendHandler.h:14
Definition ThermalMonitorInterface.h:8
Definition IntegrityTokenResult.h:5