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> getSuspendHandler(bool, ::AppPlatform&) = 0;
32
33 virtual ::BatteryMonitorInterface const& getBatteryMonitorInterface() const = 0;
34
35 virtual ::ThermalMonitorInterface const& getThermalMonitorInterface() const = 0;
36
37#endif
38 virtual ::IPlatformScreenshots& getPlatformScreenshots() = 0;
39
40 virtual void setServiceLocators(::AppPlatform&) = 0;
41
42 virtual void resetServiceLocators() = 0;
43
44 virtual void setDiskAccessEventing(::Core::DiskAccessTracker&) = 0;
45
46 virtual bool isRealmsEnabled() const = 0;
47
48 virtual ::Bedrock::PubSub::Subscription initializeLoadProfiler(::Core::LoadTimeProfiler&) = 0;
49
50 virtual ::Bedrock::Threading::Async<::IntegrityTokenResult> requestIntegrityToken(::std::string const&) = 0;
51
52 virtual ::std::string getFullLanguageCode() = 0;
53
54 virtual bool mouseInputHandledByImGui() = 0;
55
56 virtual bool keyboardInputHandledByImGui() = 0;
57
58 virtual void updateImGuiMousePosition(float, float) = 0;
59
60 virtual void updateImGuiMouseButton(uchar, bool) = 0;
61
62 virtual void updateImGuiMouseScrollBar(float) = 0;
63
64 virtual void imGuiAddInputChar(ushort) = 0;
65
66 virtual bool updateImGuiKeyboard(uchar, bool) = 0;
67
68 virtual ::UIProfile getDefaultUIProfile(::UIScalingRules) const = 0;
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74
75 // NOLINTEND
76};
Definition AppPlatform.h:76
Definition BatteryMonitorInterface.h:9
Definition Subscription.h:10
Definition DiskAccessTracker.h:18
Definition LoadTimeProfiler.h:10
Definition IAppPlatformImpl.h:24
Definition IPlatformScreenshots.h:10
Definition SuspendHandler.h:14
Definition ThermalMonitorInterface.h:8
Definition IntegrityTokenResult.h:5