Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
UIControl Class Reference
Inheritance diagram for UIControl:

Classes

struct  ControlResolutionInfo

Public Types

using CompIdType = uint64
using NameResolverFunc = ::std::function<void(::UIControl&, ::std::shared_ptr<::UIControl>)>
using PostCreateFunc = ::std::function<void(::UIControl&)>

Public Member Functions

UIControl & operator= (UIControl const &)
 UIControl (UIControl const &)
MCAPI void _propagateLockStateChange (bool broadcastEvent)
MCAPI void _registerControlNameResolver (::std::string const &controlName, ::ui::NameResolutionScope scope, ::std::function< void(::UIControl &, ::std::shared_ptr<::UIControl >)> setter)
MCAPI void _resolveControlNames (::UIControl &rootControl)
MCAPI void _resolvePostCreate ()
MCAPI void _setCachedPosition () const
MCAPI void _setPositionDirty ()
MCAPI void _setVisible (::ui::VisibilityFlag visibleFlags, bool setLayoutChangedFlag, bool doLayout, bool shrinkInvisible)
MCAPI void addChild (::std::shared_ptr<::UIControl > child, ::ui::ChildInsertPosition childInsertPosition)
MCAPI ::std::shared_ptr<::UIControl > clone (::UIControl *parent) const
MCAPI void findAllCollectionIndices (::brstd::function_ref< void(::std::string const &, int)> callback)
MCAPI int findCollectionIndex (::std::string const &collectionName) const
MCAPI ::std::shared_ptr<::UIControl > getAncestorWhere (::brstd::function_ref< bool(::UIControl const &)> predicate)
MCAPI::std::string const getPathedName () const
MCAPI::UIPropertyBag const & getPropertyBag () const
MCFOLD::UIPropertyBag & getPropertyBag ()
MCAPI ::std::shared_ptr<::UIControl > moveChild (int index, bool notify)
MCAPI void notifyBindingsUpdated (::std::vector<::std::string > controlList, ::std::string propertyName, bool value, bool siblingScope)
MCAPI void popBackChild ()
MCAPI void popFrontChild ()
MCAPI void processPropertyBags (::std::unique_ptr<::UIPropertyBag > propertyBag, ::std::unique_ptr<::UIPropertyBag > propertyBagForChildren)
MCAPI void reloadFromControl (::UIControl const &control)
MCAPI bool removeChild (::std::shared_ptr<::UIControl > control)
MCAPI void reset (bool recursive, bool shouldClearCollectionFlag)
MCAPI void setEnabled (bool enabled, bool broadcastEvent)
MCAPI void setIsTemplate (bool isTemplate)
MCAPI ~UIControl ()
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 4, 8, ::glm::vec2 > mCachedPosition
bool mCachedPositionDirty: 1
bool mHover: 1
::ui::VisibilityFlag mVisible: 2
bool mIsVisibleInTree: 1
bool mEnabled: 1
bool mAllAncestorsEnabled: 1
bool mSelected: 1
bool mClipsChildren: 1
bool mAllowClipping: 1
bool mIsClipped: 1
bool mEnableClippingScissorTest: 1
bool mIsTemplate: 1
bool mPropagateAlpha: 1
bool mDelayCollectionUpdate: 1
bool mTextToSpeechTriggered: 1
::ll::TypedStorage< 2, 2, ushort > mControlCollectionFlag
::ll::TypedStorage< 8, 32, ::std::string > mName
::ll::TypedStorage< 4, 8, ::glm::vec2 > mParentRelativePosition
::ll::TypedStorage< 4, 8, ::glm::vec2 > mSize
::ll::TypedStorage< 4, 8, ::glm::vec2 > mMinSize
::ll::TypedStorage< 4, 8, ::glm::vec2 > mMaxSize
::ll::TypedStorage< 4, 4, float > mAlpha
::ll::TypedStorage< 4, 4, int > mZOrder
::ll::TypedStorage< 4, 4, int > mLayer
::ll::TypedStorage< 4, 8, ::Vec2 > mClipOffset
::ll::TypedStorage< 4, 4, uint > mClipChangeEventId
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::UIPropertyBag > > mPropertyBag
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::UIPropertyBag > > mPropertyBagToPropagateToChildren
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mParent
::ll::TypedStorage< 8, 24, ::std::vector<::std::shared_ptr<::UIControl > > > mChildren
::ll::TypedStorage< 8, 8, uint64 > mComponentsInUse
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::UIComponent > > > mComponents
::ll::TypedStorage< 8, 24, ::std::vector<::RenderableComponent * > > mRenderableComponentLookup
::ll::TypedStorage< 8, 24, ::std::vector<::CustomFrameUpdateComponent * > > mCustomFrameUpdateComponentLookup
::ll::TypedStorage< 8, 24, ::std::vector<::UIControl::ControlResolutionInfo > > mControlResolvers
::ll::TypedStorage< 8, 24, ::std::vector<::std::function< void(::UIControl &)> > > mPostCreateVector
::ll::TypedStorage< 8, 8, ::ControlScreenAction & > mControlScreenAction
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::UIControl > > mModalAncestor

Constructor & Destructor Documentation

◆ ~UIControl()

MCAPI UIControl::~UIControl ( )
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

◆ _propagateLockStateChange()

MCAPI void UIControl::_propagateLockStateChange ( bool broadcastEvent)
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.

◆ _registerControlNameResolver()

MCAPI void UIControl::_registerControlNameResolver ( ::std::string const & controlName,
::ui::NameResolutionScope scope,
::std::function< void(::UIControl &, ::std::shared_ptr<::UIControl >)> setter )
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.

◆ _resolveControlNames()

MCAPI void UIControl::_resolveControlNames ( ::UIControl & rootControl)
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.

◆ _resolvePostCreate()

MCAPI void UIControl::_resolvePostCreate ( )
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.

◆ _setVisible()

MCAPI void UIControl::_setVisible ( ::ui::VisibilityFlag visibleFlags,
bool setLayoutChangedFlag,
bool doLayout,
bool shrinkInvisible )
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.

◆ addChild()

MCAPI void UIControl::addChild ( ::std::shared_ptr<::UIControl > child,
::ui::ChildInsertPosition childInsertPosition )
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.

◆ clone()

MCAPI ::std::shared_ptr<::UIControl > UIControl::clone ( ::UIControl * parent) 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.

◆ getAncestorWhere()

MCAPI ::std::shared_ptr<::UIControl > UIControl::getAncestorWhere ( ::brstd::function_ref< bool(::UIControl const &)> predicate)
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.

◆ getPathedName()

MCAPI::std::string const UIControl::getPathedName ( ) 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.

◆ getPropertyBag()

MCAPI::UIPropertyBag const & UIControl::getPropertyBag ( ) 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.

◆ moveChild()

MCAPI ::std::shared_ptr<::UIControl > UIControl::moveChild ( int index,
bool notify )
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.

◆ notifyBindingsUpdated()

MCAPI void UIControl::notifyBindingsUpdated ( ::std::vector<::std::string > controlList,
::std::string propertyName,
bool value,
bool siblingScope )
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.

◆ popBackChild()

MCAPI void UIControl::popBackChild ( )
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.

◆ popFrontChild()

MCAPI void UIControl::popFrontChild ( )
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.

◆ processPropertyBags()

MCAPI void UIControl::processPropertyBags ( ::std::unique_ptr<::UIPropertyBag > propertyBag,
::std::unique_ptr<::UIPropertyBag > propertyBagForChildren )
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.

◆ reloadFromControl()

MCAPI void UIControl::reloadFromControl ( ::UIControl const & 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.

◆ removeChild()

MCAPI bool UIControl::removeChild ( ::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.

◆ reset()

MCAPI void UIControl::reset ( bool recursive,
bool shouldClearCollectionFlag )
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.

◆ setEnabled()

MCAPI void UIControl::setEnabled ( bool enabled,
bool broadcastEvent )
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.

◆ setIsTemplate()

MCAPI void UIControl::setIsTemplate ( bool isTemplate)
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 UIControl::$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: