LeviLamina
Loading...
Searching...
No Matches
RouterHistory.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/RouteType.h"
8#include "mc/client/gui/oreui/routing/RouterAction.h"
9
10// auto generated forward declare list
11// clang-format off
12class AbstractScene;
13namespace OreUI { class RouterLocation; }
14// clang-format on
15
16namespace OreUI {
17
18class RouterHistory {
19public:
20 // RouterHistory inner types define
21 using OnChangeCallback = ::std::function<
22 void(::std::optional<::OreUI::RouterLocation> const&, ::std::optional<::OreUI::RouterLocation> const&)>;
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 24, ::std::vector<::OreUI::RouterLocation>> mEntries;
28 ::ll::TypedStorage<4, 4, ::OreUI::RouterAction> mLastAction;
29 ::ll::TypedStorage<
30 8,
31 64,
32 ::std::function<
33 void(::std::optional<::OreUI::RouterLocation> const&, ::std::optional<::OreUI::RouterLocation> const&)>>
34 mOnChangeCallback;
35 ::ll::TypedStorage<8, 32, ::std::string> mGetActionHelper;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI ::std::string const& getAction() const;
42
43 MCAPI ::std::optional<::OreUI::RouterLocation> getCurrentLocation() const;
44
45 MCAPI ::std::optional<::OreUI::RouterLocation> getPreviousLocation() const;
46
47 MCAPI void goBack();
48
49 MCAPI void goBackAndReplace(
50 ::std::weak_ptr<::AbstractScene> const& scene,
51 ::std::string const& url,
52 ::OreUI::RouteMode mode,
53 ::OreUI::RouteType routeType
54 );
55
56 MCAPI void push(
57 ::std::weak_ptr<::AbstractScene> const& scene,
58 ::std::string const& url,
59 ::OreUI::RouteMode mode,
60 ::OreUI::RouteType routeType
61 );
62
63 MCAPI void replace(
64 ::std::weak_ptr<::AbstractScene> const& scene,
65 ::std::string const& url,
66 ::OreUI::RouteMode mode,
67 ::OreUI::RouteType routeType
68 );
69
70 MCAPI ~RouterHistory();
71 // NOLINTEND
72
73public:
74 // static variables
75 // NOLINTBEGIN
76 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_POP();
77
78 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_PUSH();
79
80 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_REPLACE();
81
82 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_UNKNOWN();
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCAPI void $dtor();
89 // NOLINTEND
90};
91
92} // namespace OreUI
Definition AbstractScene.h:5
Definition RouterHistory.h:7
Definition RouterLocation.h:7