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> mConsumeEvents;
33 virtual ~ButtonComponent() =
default;
35 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
37 virtual void reset() ;
39 virtual void reload(::UIComponent
const& rhs) ;
41 virtual ::ComponentReceiveActionType receive(
42 ::VisualTree& visualTree,
43 ::ScreenInputContext& context,
44 ::UIAnimationController& animationController,
45 ::ScreenEvent
const& screenEvent
48 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
50 virtual void onVisibilityChanged(
bool visible) ;
52 virtual void onEnabledChanged(
bool enabled) ;
58 MCAPI
void _updateControlVisibility();
64 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner)
const;
68 MCAPI
void $reload(::UIComponent
const& rhs);
70 MCAPI ::ComponentReceiveActionType $receive(
71 ::VisualTree& visualTree,
72 ::ScreenInputContext& context,
73 ::UIAnimationController& animationController,
74 ::ScreenEvent
const& screenEvent
77 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent
const& screenEvent);
79 MCAPI
void $onVisibilityChanged(
bool visible);
81 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