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) ;
68 MCNAPI
void $reload(::UIComponent
const& rhs);
Definition ScreenInputContext.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5