LeviLamina
Loading...
Searching...
No Matches
ButtonComponent.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#include "mc/client/gui/controls/UIComponent.h"
8
9// auto generated forward declare list
10// clang-format off
13class UIControl;
14class VisualTree;
15struct ScreenEvent;
16// clang-format on
17
18class ButtonComponent : public ::UIComponent {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mDefaultStateControl;
23 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mHoverStateControl;
24 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mPressedStateControl;
25 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::UIControl>> mLockedStateControl;
26 ::ll::TypedStorage<1, 1, bool> mPressed;
27 ::ll::TypedStorage<1, 1, bool> mConsumeEvents;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~ButtonComponent() /*override*/ = default;
34
35 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner) const /*override*/;
36
37 virtual void reset() /*override*/;
38
39 virtual void reload(::UIComponent const& rhs) /*override*/;
40
41 virtual ::ComponentReceiveActionType receive(
42 ::VisualTree& visualTree,
43 ::ScreenInputContext& context,
44 ::UIAnimationController& animationController,
45 ::ScreenEvent const& screenEvent
46 ) /*override*/;
47
48 virtual ::ComponentReceiveActionType receive(::ScreenEvent const& screenEvent) /*override*/;
49
50 virtual void onVisibilityChanged(bool visible) /*override*/;
51
52 virtual void onEnabledChanged(bool enabled) /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI void _updateControlVisibility();
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
65
66 MCAPI void $reset();
67
68 MCAPI void $reload(::UIComponent const& rhs);
69
70 MCAPI ::ComponentReceiveActionType $receive(
71 ::VisualTree& visualTree,
72 ::ScreenInputContext& context,
73 ::UIAnimationController& animationController,
74 ::ScreenEvent const& screenEvent
75 );
76
77 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent const& screenEvent);
78
79 MCAPI void $onVisibilityChanged(bool visible);
80
81 MCAPI void $onEnabledChanged(bool enabled);
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition ButtonComponent.h:5
static MCAPI void ** $vftable()
Definition ScreenInputContext.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition UIControl.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5