3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/CardinalDirection.h"
7#include "mc/client/gui/controls/ComponentReceiveActionType.h"
8#include "mc/client/gui/controls/UIComponent.h"
24 ::ll::TypedStorage<8, 8, ::FocusManager*> mFocusManager;
25 ::ll::TypedStorage<4, 4, int> mDefaultFocusPrecedence;
26 ::ll::TypedStorage<4, 8, ::glm::vec2> mCapturedFocusPoint;
27 ::ll::TypedStorage<8, 32, ::std::string> mFocusIdentifier;
28 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ui::CardinalDirection, ::std::string>> mDirectionalFocusOverrides;
32 ::std::unordered_map<::std::string, ::std::unordered_map<::ui::CardinalDirection, ::std::string>>>
33 mNamedMappingLookupData;
34 bool mFocusEnabled : 1;
35 bool mFocusWrapEnabled : 1;
36 bool mFocusPointCaptured : 1;
37 bool mFocusMagnetEnabled : 1;
38 bool mResetOnFocusLost : 1;
44 virtual ~FocusComponent() ;
46 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
48 virtual void reset() ;
50 virtual ::ComponentReceiveActionType receive(
51 ::VisualTree& visualTree,
52 ::ScreenInputContext& context,
53 ::UIAnimationController& animationController,
54 ::ScreenEvent
const& screenEvent
57 virtual ::ComponentReceiveActionType receive(::ScreenEvent
const& screenEvent) ;
63 MCAPI
void _captureFocusPoint();
65 MCAPI
void _resetDirectionalOverrides();
67 MCAPI
bool checkFocusChangeOverride(::ui::CardinalDirection dir, ::std::string
const& checkName)
const;
69 MCAPI
void registerNewLookupMapEntry(
70 ::std::string
const& focusID,
71 ::std::unordered_map<::ui::CardinalDirection, ::std::string>
const& mapping
74 MCAPI
void setFocusChangeOverride(::ui::CardinalDirection dir, ::std::string
const& str);
76 MCAPI
void setFocusIdentifier(::std::string
const& str);
88 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner)
const;
92 MCAPI ::ComponentReceiveActionType $receive(
93 ::VisualTree& visualTree,
94 ::ScreenInputContext& context,
95 ::UIAnimationController& animationController,
96 ::ScreenEvent
const& screenEvent
99 MCAPI ::ComponentReceiveActionType $receive(::ScreenEvent
const& screenEvent);
Definition FocusComponent.h:5
static MCAPI void ** $vftable()
Definition FocusManager.h:5
Definition ScreenInputContext.h:5
Definition UIAnimationController.h:5
Definition UIComponent.h:5
Definition VisualTree.h:5
Definition ScreenEvent.h:5