Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FocusManager Class Reference

Public Member Functions

MCAPI FocusManager ()
MCAPI ::std::shared_ptr<::UIControl > _findFocusContainerControlFor (::std::shared_ptr<::UIControl > forControl) const
MCAPI::SweepResult _getControlAtFocusPoint (::SweepDescription const &desc, ::std::vector<::std::shared_ptr<::UIControl > > const &controls)
MCAPI ::std::shared_ptr<::UIControl > _getLastGoodFocusedControl (::std::shared_ptr<::UIControl > oldFocusedControl)
MCAPI void _setFocusControlFromIndex (int focusControlIndex, bool overrideLastFocus)
MCAPI void _setFocusControlInternal (::UIControl const &control, bool allowDefault, bool overrideLastFocus)
MCAPI void _sweepForClosestControl (::std::shared_ptr<::UIControl > focusedControl)
MCAPI::SweepResult _sweepForControlDirectional (::SweepDescription const &desc, ::std::vector<::std::shared_ptr<::UIControl > > const &controls, bool hasWrapped)
MCAPI void _sweepToNextFocusObject (::ui::CardinalDirection direction, bool overrideOrigin, ::glm::vec2 const &overridePos)
MCAPI void _updateLostFocusControlList (::std::weak_ptr<::UIControl > control)
MCAPI void _updateRootOfFocusTree ()
MCAPI void addControl (::UIControl &control)
MCAPI void clearFocusTreeState ()
MCAPI void defaultFocus ()
MCAPI void removeControl (::UIControl &control, ::std::map<::std::vector<::std::shared_ptr<::UIControl > > *, ::std::vector<::std::shared_ptr<::UIControl > > > &controlsToRemove)
MCAPI bool setFocusControl (::UIControl const &control, bool allowDefault)
MCAPI void setFocusedControlToLostFocus ()
MCAPI void setModalRoot (::std::shared_ptr<::UIControl > &control)
MCAPI void updateDefaultFocusIfNeeded ()
MCAPI bool updatePendingFocusControl ()
MCAPI void validateFocusControl ()
MCAPI ~FocusManager ()
MCAPI void * $ctor ()
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 4, 8, ::glm::vec2 > mSize
::ll::TypedStorage< 8, 24, ::std::vector<::std::shared_ptr<::UIControl > > > mFocusControls
bool mFocusActive: 1
bool mFocusResetFlag: 1
bool mFindClosestControl: 1
bool mFocusPositionCaptured: 1
bool mNeedsDefaultFocusUpdate: 1
bool mIncludeMagnetControls: 1
bool mRepeatTTS: 1
::ll::TypedStorage< 1, 1, bool > mScrollToFocusedControlIfClipped
bool mHoverNothing: 1
::ll::TypedStorage< 4, 4, int > mFocusedControlIndex
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mFocusedControl
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mPreviousFocusedControl
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mLostFocusControl
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mCurrentModalRoot
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mCurrentFocusContainer
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mRootOfFocusTree
::ll::TypedStorage< 8, 32, ::RecentFocusVector > mRecentFocusList
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::FocusManagerProxy > > mProxy
::ll::TypedStorage< 8, 32, ::std::string > mPendingFocusControlID
::ll::TypedStorage< 4, 4, int > mPendingFocusControlIndex
::ll::TypedStorage< 1, 1, bool > mHasPendingFocusControl
::ll::TypedStorage< 8, 32, ::std::string > mPendingFocusCollectionIndexName
::ll::TypedStorage< 8, 48, ::Bedrock::PubSub::Publisher< void(::std::weak_ptr<::UIControl >, ::std::weak_ptr<::UIControl >), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0 > > mFocusChangePub

Constructor & Destructor Documentation

◆ FocusManager()

MCAPI FocusManager::FocusManager ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ ~FocusManager()

MCAPI FocusManager::~FocusManager ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _findFocusContainerControlFor()

MCAPI ::std::shared_ptr<::UIControl > FocusManager::_findFocusContainerControlFor ( ::std::shared_ptr<::UIControl > forControl) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getControlAtFocusPoint()

MCAPI::SweepResult FocusManager::_getControlAtFocusPoint ( ::SweepDescription const & desc,
::std::vector<::std::shared_ptr<::UIControl > > const & controls )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getLastGoodFocusedControl()

MCAPI ::std::shared_ptr<::UIControl > FocusManager::_getLastGoodFocusedControl ( ::std::shared_ptr<::UIControl > oldFocusedControl)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _setFocusControlFromIndex()

MCAPI void FocusManager::_setFocusControlFromIndex ( int focusControlIndex,
bool overrideLastFocus )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _setFocusControlInternal()

MCAPI void FocusManager::_setFocusControlInternal ( ::UIControl const & control,
bool allowDefault,
bool overrideLastFocus )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sweepForClosestControl()

MCAPI void FocusManager::_sweepForClosestControl ( ::std::shared_ptr<::UIControl > focusedControl)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sweepForControlDirectional()

MCAPI::SweepResult FocusManager::_sweepForControlDirectional ( ::SweepDescription const & desc,
::std::vector<::std::shared_ptr<::UIControl > > const & controls,
bool hasWrapped )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sweepToNextFocusObject()

MCAPI void FocusManager::_sweepToNextFocusObject ( ::ui::CardinalDirection direction,
bool overrideOrigin,
::glm::vec2 const & overridePos )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _updateLostFocusControlList()

MCAPI void FocusManager::_updateLostFocusControlList ( ::std::weak_ptr<::UIControl > control)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _updateRootOfFocusTree()

MCAPI void FocusManager::_updateRootOfFocusTree ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addControl()

MCAPI void FocusManager::addControl ( ::UIControl & control)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ clearFocusTreeState()

MCAPI void FocusManager::clearFocusTreeState ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ defaultFocus()

MCAPI void FocusManager::defaultFocus ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeControl()

MCAPI void FocusManager::removeControl ( ::UIControl & control,
::std::map<::std::vector<::std::shared_ptr<::UIControl > > *, ::std::vector<::std::shared_ptr<::UIControl > > > & controlsToRemove )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setFocusControl()

MCAPI bool FocusManager::setFocusControl ( ::UIControl const & control,
bool allowDefault )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setFocusedControlToLostFocus()

MCAPI void FocusManager::setFocusedControlToLostFocus ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setModalRoot()

MCAPI void FocusManager::setModalRoot ( ::std::shared_ptr<::UIControl > & control)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ updateDefaultFocusIfNeeded()

MCAPI void FocusManager::updateDefaultFocusIfNeeded ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ updatePendingFocusControl()

MCAPI bool FocusManager::updatePendingFocusControl ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ validateFocusControl()

MCAPI void FocusManager::validateFocusControl ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * FocusManager::$ctor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void FocusManager::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: