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() = default;
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 // virtual function thunks
73 // NOLINTBEGIN
74 MCFOLD ::ComponentReceiveActionType $receive(
75 ::VisualTree& visualTree,
76 ::ScreenInputContext& context,
77 ::UIAnimationController& animationController,
78 ::ScreenEvent const& screenEvent
79 );
80
81 MCFOLD ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
82
83 MCFOLD void $onNotifyChildAdded();
84
85 MCFOLD void $onNotifyChildRemoved();
86
87 MCFOLD void $onRemoved();
88
89 MCFOLD void $onAdded();
90
91 MCFOLD void $onVisibilityChanged(bool visible);
92
93 MCFOLD void $onEnabledChanged(bool enabled);
94
95 MCFOLD bool $isRenderableComponent() const;
96
97 MCFOLD bool $isCustomFrameUpdateComponent() const;
98
99 MCFOLD bool $onLayoutChange();
100
101 MCFOLD void $reload(::UIComponent const& rhs);
102
103 MCFOLD ::std::string const& $getTextToSpeechComponentValue() const;
104 // NOLINTEND
105};
Definition ScreenInputContext.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition UIControl.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5