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