![]() |
MCRO
C++23 utilities for Unreal Engine.
|
Extra functionalities for general Slate programming chores, including enhancements of the Slate declarative syntax. More...
Data Structures | |
struct | TArgumentsOf_S |
struct | TArgumentsOf_S< T > |
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... | |
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. | |
Typedefs | |
template<typename T > | |
using | TArgumentsOf = typename TArgumentsOf_S<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 | |
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_S<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.
TAttributeBlock<T> Mcro::Slate::InertAttributeBlock = [](TArgumentsOf<T>& args) -> auto& { return args; } |