LeviLamina
Loading...
Searching...
No Matches
UIComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/ComponentReceiveActionType.h"
7
8// auto generated forward declare list
9// clang-format off
12class UIControl;
13class VisualTree;
14struct ScreenEvent;
15// clang-format on
16
17class UIComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::UIControl&> mOwner;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 UIComponent& operator=(UIComponent const&);
27 UIComponent(UIComponent const&);
28 UIComponent();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~UIComponent();
34
35 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner) const = 0;
36
37 virtual ::ComponentReceiveActionType receive(
38 ::VisualTree& visualTree,
39 ::ScreenInputContext& context,
40 ::UIAnimationController& animationController,
41 ::ScreenEvent const& screenEvent
42 );
43
44 virtual ::ComponentReceiveActionType receive(::ScreenEvent const& screenEvent);
45
46 virtual void onNotifyChildAdded();
47
48 virtual void onNotifyChildRemoved();
49
50 virtual void onRemoved();
51
52 virtual void onAdded();
53
54 virtual void onVisibilityChanged(bool visible);
55
56 virtual void onEnabledChanged(bool enabled);
57
58 virtual bool isRenderableComponent() const;
59
60 virtual bool isCustomFrameUpdateComponent() const;
61
62 virtual bool onLayoutChange();
63
64 virtual void reset() = 0;
65
66 virtual void reload(::UIComponent const& rhs);
67
68 virtual ::std::string const& getTextToSpeechComponentValue() const;
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCFOLD void $dtor();
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCFOLD ::ComponentReceiveActionType $receive(
81 ::VisualTree& visualTree,
82 ::ScreenInputContext& context,
83 ::UIAnimationController& animationController,
84 ::ScreenEvent const& screenEvent
85 );
86
87 MCFOLD ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
88
89 MCFOLD void $onNotifyChildAdded();
90
91 MCFOLD void $onNotifyChildRemoved();
92
93 MCFOLD void $onRemoved();
94
95 MCFOLD void $onAdded();
96
97 MCFOLD void $onVisibilityChanged(bool visible);
98
99 MCFOLD void $onEnabledChanged(bool enabled);
100
101 MCFOLD bool $isRenderableComponent() const;
102
103 MCFOLD bool $isCustomFrameUpdateComponent() const;
104
105 MCFOLD bool $onLayoutChange();
106
107 MCFOLD void $reload(::UIComponent const& rhs);
108
109 MCFOLD ::std::string const& $getTextToSpeechComponentValue() const;
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117};
Definition ScreenInputContext.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
static MCAPI void ** $vftable()
Definition UIControl.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5