MCRO
C++23 utilities for Unreal Engine.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
Slate.h File Reference
#include "CoreMinimal.h"
#include "Mcro/FunctionTraits.h"
#include "Mcro/Range/Iterators.h"

Go to the source code of this file.

Data Structures

struct  Mcro::Slate::TArgumentsOf_S< T >
 
struct  Mcro::Slate::TArgumentsOf_S< T >
 
struct  Mcro::Slate::TAttributeBlockFunctor< 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. More...
 
struct  Mcro::Slate::TSlots< Range, Transform, OnEmpty, CSlotArguments >
 Add multiple slots at the same time with the declarative syntax derived from an input data array. More...
 

Namespaces

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

Concepts

concept  Mcro::Slate::CWidget
 Constraining given type to a Slate widget.
 
concept  Mcro::Slate::CSlot
 Constraining given type to a slot of a widget.
 
concept  Mcro::Slate::CWidgetOrSlot
 Constraining given type to either a slot or a widget.
 
concept  Mcro::Slate::CWidgetOrSlotArguments
 Constraining given type to the arguments of either a widget or a slot.
 
concept  Mcro::Slate::CWidgetArguments
 Constraining given type to the arguments of a widget

 
concept  Mcro::Slate::CSlotArguments
 Constraining given type to the arguments of a slot

 
concept  Mcro::Slate::CWidgetWithSlots
 Constraining given type to a widget which can receive slots.
 

Typedefs

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)
 
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.
 

Functions

MCRO_API EVisibility Mcro::Slate::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 > Mcro::Slate::InertAttributeBlock = [](TArgumentsOf<T>& args) -> auto& { return args; }
 An attribute block which does nothing.
 

Detailed Description

Author
David Mórász
Date
2025

Definition in file Slate.h.