MCRO
C++23 utilities for Unreal Engine.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
Mcro::Slate Namespace Reference

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.
 

Detailed Description

Extra functionalities for general Slate programming chores, including enhancements of the Slate declarative syntax.

Typedef Documentation

◆ TArgumentsOf

template<typename T >
using Mcro::Slate::TArgumentsOf = typename TArgumentsOf_S<T>::Type

Get the type of arguments from either a widget or a slot type (FArguments or FSlotArguments)

Definition at line 79 of file Slate.h.

◆ TAttributeBlock

template<CWidgetOrSlot T>
using Mcro::Slate::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.

Definition at line 148 of file Slate.h.

Function Documentation

◆ IsVisible()

MCRO_API EVisibility Mcro::Slate::IsVisible ( bool visible,
EVisibility hiddenState = EVisibility::Collapsed )

Convenience function for typing less when widget visibility depends on a boolean.

Variable Documentation

◆ InertAttributeBlock

template<CWidgetOrSlot T>
TAttributeBlock<T> Mcro::Slate::InertAttributeBlock = [](TArgumentsOf<T>& args) -> auto& { return args; }

An attribute block which does nothing.

Definition at line 152 of file Slate.h.