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 void goBack();
44
45 MCAPI void goBackAndReplace(
46 ::std::weak_ptr<::AbstractScene> const& scene,
47 ::std::string const& url,
48 ::OreUI::RouteMode mode,
49 ::OreUI::RouteType routeType
50 );
51
52 MCAPI void push(
53 ::std::weak_ptr<::AbstractScene> const& scene,
54 ::std::string const& url,
55 ::OreUI::RouteMode mode,
56 ::OreUI::RouteType routeType
57 );
58
59 MCAPI void replace(
60 ::std::weak_ptr<::AbstractScene> const& scene,
61 ::std::string const& url,
62 ::OreUI::RouteMode mode,
63 ::OreUI::RouteType routeType
64 );
65
66 MCAPI ~RouterHistory();
67 // NOLINTEND
68
69public:
70 // static variables
71 // NOLINTBEGIN
72 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_POP();
73
74 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_PUSH();
75
76 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_REPLACE();
77
78 MCAPI static ::std::add_lvalue_reference_t<char const[]> ACTION_UNKNOWN();
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86};
87
88} // namespace OreUI
Definition AbstractScene.h:5
Definition RouterHistory.h:7
Definition RouterLocation.h:7