Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
NestedButtonScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/ViewRequest.h"
7#include "mc/client/gui/screens/ScreenController.h"
8
9// auto generated forward declare list
10// clang-format off
11class UIPropertyBag;
12struct ScreenEvent;
13// clang-format on
14
16public:
17 // NestedButtonScreenController inner types define
18 using IndexSelectionFunc = ::std::function<int(::UIPropertyBag&)>;
19
20 using VisibilityFunc = ::std::function<bool(::UIPropertyBag&, int)>;
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 32, ::std::string> mFirstControlName;
26 ::ll::TypedStorage<1, 1, bool> mFocusFirst;
27 ::ll::TypedStorage<1, 1, bool> mNestedContentVisible;
28 ::ll::TypedStorage<4, 4, int> mSelectedIndex;
29 ::ll::TypedStorage<4, 4, uint> mBaseButtonId;
30 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mIgnoredControls;
31 // NOLINTEND
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ::ui::ViewRequest handleEvent(::ScreenEvent& screenEvent) /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
43 ::std::string const& nestedBaseButtonId,
44 ::std::string const& nestedControlEnabledBinding,
45 ::std::vector<uint> ignoredControls,
46 ::std::function<int(::UIPropertyBag&)> indexSelectionFunc,
47 ::std::function<bool(::UIPropertyBag&, int)> visibilityFunction,
48 ::std::string firstControlName
49 );
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCNAPI ::ui::ViewRequest $handleEvent(::ScreenEvent& screenEvent);
56 // NOLINTEND
57
58public:
59 // vftables
60 // NOLINTBEGIN
61 MCNAPI static void** $vftable();
62 // NOLINTEND
63};
Definition NestedButtonScreenController.h:5
MCAPI::ui::ViewRequest $handleEvent(::ScreenEvent &screenEvent)
MCAPI void setUpCallbacksForNestedButtonInCollection(::std::string const &nestedBaseButtonId, ::std::string const &nestedControlEnabledBinding, ::std::vector< uint > ignoredControls, ::std::function< int(::UIPropertyBag &)> indexSelectionFunc, ::std::function< bool(::UIPropertyBag &, int)> visibilityFunction, ::std::string firstControlName)
static MCAPI void ** $vftable()
Definition ScreenController.h:5
Definition UIPropertyBag.h:5
Definition ScreenEvent.h:5