Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
GridComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/OrientationType.h"
7#include "mc/client/gui/controls/UIComponent.h"
8#include "mc/deps/core/utility/pub_sub/Publisher.h"
9
10// auto generated forward declare list
11// clang-format off
12class UIControl;
14namespace Bedrock::PubSub::ThreadModel { struct MultiThreaded; }
15// clang-format on
16
17class GridComponent : public ::UIComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 8, ::glm::ivec2> mDimensions;
22 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIControl>> mGridItemTemplate;
23 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControlFactory>> mControlFactory;
24 ::ll::TypedStorage<8, 32, ::std::string> mGridDimensionBinding;
25 ::ll::TypedStorage<8, 32, ::std::string> mCollectionName;
26 ::ll::TypedStorage<1, 1, ::ui::OrientationType> mGridRescalingType;
27 ::ll::TypedStorage<1, 1, ::ui::OrientationType> mGridFillDirection;
28 ::ll::TypedStorage<4, 4, int> mMaximumGridItems;
29 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::UIControl>>> mCachedControls;
30 ::ll::TypedStorage<1, 1, bool> mLowMemoryMode;
31 ::ll::TypedStorage<4, 4, int> mPartialCreationStartIndex;
32 ::ll::TypedStorage<4, 4, int> mPartialCreationEndIndex;
33 ::ll::TypedStorage<
34 8,
35 128,
36 ::Bedrock::PubSub::Publisher<void(uint64), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0>>
37 mPublisher;
38 // NOLINTEND
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner) const /*override*/;
44
45 virtual void reset() /*override*/;
46
47 virtual void onNotifyChildAdded() /*override*/;
48
49 virtual void onNotifyChildRemoved() /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCNAPI bool partiallyCreateGridItems(int startIndex, int endIndex);
56
57 MCNAPI void reassignGridPositions();
58
59 MCNAPI void refreshGridItems();
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCNAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
66
67 MCNAPI void $reset();
68
69 MCNAPI void $onNotifyChildAdded();
70
71 MCNAPI void $onNotifyChildRemoved();
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition GridComponent.h:5
MCAPI void $onNotifyChildRemoved()
MCAPI void $onNotifyChildAdded()
MCAPI ::std::unique_ptr<::UIComponent > $clone(::UIControl &cloneOwner) const
MCAPI bool partiallyCreateGridItems(int startIndex, int endIndex)
static MCAPI void ** $vftable()
MCAPI void reassignGridPositions()
MCAPI void $reset()
MCAPI void refreshGridItems()
Definition UIComponent.h:5
Definition UIControlFactory.h:5
Definition UIControl.h:5