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#include "mc/deps/input/TextBoxCaretMovement.h"
10
11// auto generated forward declare list
12// clang-format off
14class ScreenContext;
16namespace OreUI { class IScene; }
17namespace OreUI { class IViewTestHelper; }
18namespace OreUI { class RouterLocation; }
19// clang-format on
20
21namespace OreUI {
22
23class IView : public ::Bedrock::EnableNonOwnerReferences {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ~IView() /*override*/;
28
29 virtual void pushCurrentScene(::OreUI::IScene& scene, ::OreUI::RouteMode routeMode) = 0;
30
31 virtual bool hasScenes() const = 0;
32
33 virtual void removeScene(::OreUI::IScene const& scene) = 0;
34
35 virtual void update(double time) = 0;
36
37 virtual void render(::ScreenContext& screenContext) = 0;
38
39 virtual void resize(uint width, uint height) = 0;
40
41 virtual void reload() = 0;
42
43 virtual void leave() = 0;
44
45 virtual void onSuspend() = 0;
46
47 virtual void onResume() = 0;
48
49 virtual void onRouteChanged(
50 ::std::optional<::OreUI::RouterLocation> const& previousLocation,
51 ::std::optional<::OreUI::RouterLocation> const& currentLocation
52 ) = 0;
53
54 virtual ::std::string_view getUrl() const = 0;
55
56 virtual ::OreUI::RouteMode getRouteMode() const = 0;
57
58 virtual uint getWidth() const = 0;
59
60 virtual uint getHeight() const = 0;
61
62 virtual ::OreUI::ViewState getState() const = 0;
63
64 virtual void setTextBoxState(::TextBoxStateChange const& stateChange) = 0;
65
66 virtual ::std::optional<int> calculateCaretPositionAfterMovement(::TextBoxCaretMovement movement) = 0;
67
68 virtual void onKeyboardDismissed() = 0;
69
70 virtual void setCaretLocation(int caretLocation) = 0;
71
72 virtual void triggerEvent(::std::string const& eventName, ::std::string const& eventData) = 0;
73
74 virtual ::std::unique_ptr<::IGamefaceTextInputProxy> getTextInputProxy() = 0;
75
76 virtual ::OreUI::IViewTestHelper* getViewTestHelper() = 0;
77 // NOLINTEND
78
79public:
80 // destructor thunk
81 // NOLINTBEGIN
82 MCFOLD void $dtor();
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
97
98} // 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