LeviLamina
Loading...
Searching...
No Matches
IView.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/interface/RouteMode.h"
7#include "mc/client/gui/oreui/interface/ViewState.h"
8#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
9
10// auto generated forward declare list
11// clang-format off
13class ScreenContext;
15namespace OreUI { class IScene; }
16namespace OreUI { class IViewTestHelper; }
17namespace OreUI { class RouterLocation; }
18// clang-format on
19
20namespace OreUI {
21
22class IView : public ::Bedrock::EnableNonOwnerReferences {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~IView() /*override*/ = default;
27
28 virtual void pushCurrentScene(::OreUI::IScene& scene, ::OreUI::RouteMode routeMode) = 0;
29
30 virtual bool hasScenes() const = 0;
31
32 virtual void removeScene(::OreUI::IScene const& scene) = 0;
33
34 virtual void update(double time) = 0;
35
36 virtual void render(::ScreenContext& screenContext) = 0;
37
38 virtual void resize(uint width, uint height) = 0;
39
40 virtual void reload() = 0;
41
42 virtual void leave() = 0;
43
44 virtual void onSuspend() = 0;
45
46 virtual void onResume() = 0;
47
48 virtual void onRouteChanged(
49 ::std::optional<::OreUI::RouterLocation> const& previousLocation,
50 ::std::optional<::OreUI::RouterLocation> const& currentLocation
51 ) = 0;
52
53 virtual ::std::string_view getUrl() const = 0;
54
55 virtual ::OreUI::RouteMode getRouteMode() const = 0;
56
57 virtual uint getWidth() const = 0;
58
59 virtual uint getHeight() const = 0;
60
61 virtual ::OreUI::ViewState getState() const = 0;
62
63 virtual void setTextBoxState(::TextBoxStateChange const& stateChange) = 0;
64
65 virtual void onKeyboardDismissed() = 0;
66
67 virtual void setCaretLocation(int caretLocation) = 0;
68
69 virtual void triggerEvent(::std::string const& eventName, ::std::string const& eventData) = 0;
70
71 virtual ::std::unique_ptr<::IGamefaceTextInputProxy> getTextInputProxy() = 0;
72
73 virtual ::OreUI::IViewTestHelper* getViewTestHelper() = 0;
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
88
89} // namespace OreUI
Definition IGamefaceTextInputProxy.h:5
Definition IScene.h:7
Definition IViewTestHelper.h:7
Definition IView.h:7
static MCAPI void ** $vftable()
Definition RouterLocation.h:7
Definition ScreenContext.h:5
Definition TextBoxStateChange.h:5