![]() |
MCRO
C++23 utilities for Unreal Engine.
|
Extra functionalities for general Slate programming chores, including enhancements of the Slate declarative syntax. More...
Namespaces | |
| namespace | Detail |
Data Structures | |
| struct | TArgumentsOf_Struct |
| struct | TArgumentsOf_Struct< T > |
| class | TArrayReactiveWidget |
| A widget template which can automatically handle changes in an input array state, with given delegates which tell this widget how children are supposed to be created, updated and removed. More... | |
| struct | TAttributeBlockFunctor |
| An attribute block functor which takes in reference of FArguments or FSlotArguments and returns the same reference but presumably setting some Slate attributes before that. This is useful for modularizing the Slate declarative syntax. More... | |
| class | TMapReactiveWidget |
| A widget template which can automatically handle changes in an input map state, with given delegates which tell this widget how children are supposed to be created, updated and removed. More... | |
| struct | TSlots |
| Add multiple slots at the same time with the declarative syntax derived from an input data array. More... | |
Concepts | |
| concept | CWidget |
| Constraining given type to a Slate widget. | |
| concept | CSlot |
| Constraining given type to a slot of a widget. | |
| concept | CWidgetOrSlot |
| Constraining given type to either a slot or a widget. | |
| concept | CWidgetOrSlotArguments |
| Constraining given type to the arguments of either a widget or a slot. | |
| concept | CWidgetArguments |
| Constraining given type to the arguments of a widget | |
| concept | CSlotArguments |
| Constraining given type to the arguments of a slot | |
| concept | CWidgetWithSlots |
| Constraining given type to a widget which can receive slots. | |
| concept | CBoxPanelWidget |
Typedefs | |
| template<typename T > | |
| using | TArgumentsOf = typename TArgumentsOf_Struct<T>::Type |
| Get the type of arguments from either a widget or a slot type (FArguments or FSlotArguments) | |
| template<CWidgetOrSlot T> | |
| using | TAttributeBlock = TAttributeBlockFunctor<TArgumentsOf<T>> |
| An attribute block functor which takes in reference of FArguments or FSlotArguments and returns the same reference but presumably setting some Slate attributes before that. This is useful for modularizing the Slate declarative syntax. | |
Functions | |
| template<CFunctionLike Transform, Mcro::Range::CRangeOfTuplesCompatibleWithFunction< Transform > Range, CFunctionLike OnEmpty = TUniqueFunction<TFunction_Return<Transform>()>, CSlotArguments = TFunction_Return<Transform>> requires (TFunction_ArgCount<Transform> >= 1) | |
| auto | SlotsFromTuples (Range &&range, Transform &&transform, TOptional< OnEmpty > &&onEmpty={}) |
| Create widget slots from ranges of tuples via a transformation with structured binding arguments. | |
| MCRO_API EVisibility | IsVisible (bool visible, EVisibility hiddenState=EVisibility::Collapsed) |
| Convenience function for typing less when widget visibility depends on a boolean. | |
Variables | |
| template<CWidgetOrSlot T> | |
| TAttributeBlock< T > | InertAttributeBlock = [](TArgumentsOf<T>& args) -> auto& { return args; } |
| An attribute block which does nothing. | |
Extra functionalities for general Slate programming chores, including enhancements of the Slate declarative syntax.
| using Mcro::Slate::TArgumentsOf = typename TArgumentsOf_Struct<T>::Type |
| using Mcro::Slate::TAttributeBlock = TAttributeBlockFunctor<TArgumentsOf<T>> |
| MCRO_API EVisibility Mcro::Slate::IsVisible | ( | bool | visible, |
| EVisibility | hiddenState = EVisibility::Collapsed ) |
Convenience function for typing less when widget visibility depends on a boolean.
| auto Mcro::Slate::SlotsFromTuples | ( | Range && | range, |
| Transform && | transform, | ||
| TOptional< OnEmpty > && | onEmpty = {} ) |
Create widget slots from ranges of tuples via a transformation with structured binding arguments.
For example:
| TAttributeBlock<T> Mcro::Slate::InertAttributeBlock = [](TArgumentsOf<T>& args) -> auto& { return args; } |