3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/ComponentReceiveActionType.h"
7#include "mc/client/gui/controls/UIComponent.h"
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> mHover;
28 ::ll::TypedStorage<1, 1, bool> mConsumeEvents;
34 virtual ~ButtonComponent() =
default;
36 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
38 virtual void reset() ;
40 virtual void reload(::UIComponent
const& rhs) ;
42 virtual ::ComponentReceiveActionType receive(
43 ::VisualTree& visualTree,
44 ::ScreenInputContext& context,
45 ::UIAnimationController& animationController,
46 ::ScreenEvent
const& screenEvent
49 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
51 virtual void onVisibilityChanged(
bool visible) ;
53 virtual void onEnabledChanged(
bool enabled) ;
59 MCAPI
void _updateControlVisibility();
61 MCFOLD
void setVisible(::std::weak_ptr<::UIControl>
const& control,
bool visible);
67 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner)
const;
71 MCAPI
void $reload(::UIComponent
const& rhs);
73 MCAPI ::ComponentReceiveActionType $receive(
74 ::VisualTree& visualTree,
75 ::ScreenInputContext& context,
76 ::UIAnimationController& animationController,
77 ::ScreenEvent
const& screenEvent
80 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent
const& screenEvent);
82 MCAPI
void $onVisibilityChanged(
bool visible);
84 MCAPI
void $onEnabledChanged(
bool enabled);
Definition ScreenInputContext.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5