![]() |
MCRO
C++23 utilities for Unreal Engine.
|
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...
#include <Slate.h>
Public Types | |
using | Function = TFunction<T&(T&)> |
Public Member Functions | |
template<CConvertibleToDecayed< Function > Arg> | |
TAttributeBlockFunctor (Arg &&function) | |
T & | operator() (T &args) const |
Data Fields | |
Function | Storage |
Friends | |
T & | operator/ (TIdentity_T< T > &&args, TAttributeBlockFunctor const &attributes) |
The "append attribute block" operator which allows pre-defined "blocks of slate attributes" naturally fit inside the Slate declarative syntax. Traditionally repeated structures in Slate were expressed as either explicit mutations on widgets after they were created or as entirely separate compound widgets. Either way breaks the flow of the declarative syntax and makes using Slate sometimes pretty clunky. This operator aims to make widget composition more comfortable. | |
T & | operator/ (T &args, TAttributeBlockFunctor const &attributes) |
The "append attribute block" operator which allows pre-defined "blocks of slate attributes" naturally fit inside the Slate declarative syntax. Traditionally repeated structures in Slate were expressed as either explicit mutations on widgets after they were created or as entirely separate compound widgets. Either way breaks the flow of the declarative syntax and makes using Slate sometimes pretty clunky. This operator aims to make widget composition more comfortable. | |
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.
Use TAttributeBlock
alias for your functions for better convenience
using Mcro::Slate::TAttributeBlockFunctor< T >::Function = TFunction<T&(T&)> |
|
inline |
|
inline |
|
friend |
The "append attribute block" operator which allows pre-defined "blocks of slate attributes" naturally fit inside the Slate declarative syntax. Traditionally repeated structures in Slate were expressed as either explicit mutations on widgets after they were created or as entirely separate compound widgets. Either way breaks the flow of the declarative syntax and makes using Slate sometimes pretty clunky. This operator aims to make widget composition more comfortable.
Arguments | Right hand side FArguments or FSlotArguments |
args | l-value reference right hand side FArguments or FSlotArguments |
attributes | An attribute block function |
|
friend |
The "append attribute block" operator which allows pre-defined "blocks of slate attributes" naturally fit inside the Slate declarative syntax. Traditionally repeated structures in Slate were expressed as either explicit mutations on widgets after they were created or as entirely separate compound widgets. Either way breaks the flow of the declarative syntax and makes using Slate sometimes pretty clunky. This operator aims to make widget composition more comfortable.
Arguments | Right hand side FArguments or FSlotArguments |
args | r-value reference right hand side FArguments or FSlotArguments |
attributes | An attribute block function |
Function Mcro::Slate::TAttributeBlockFunctor< T >::Storage |