Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Types > Attributes
Inheritance Hierarchy
- FSlateAttributeBase
- FSlateAttributeImpl
- TSlateAttributeBase
- TSlateContainedAttribute
- TWidgetSlotWithAttributeSupport::TSlateSlotAttribute
- TSlateManagedAttribute
- SWidget::TSlateManagedAttribute
- SWidget::TSlateManagedAttribute< FText, InInvalidationReasonValue >
- TSlateManagedAttribute< FText, EInvalidateWidgetReason::None >
- TSlateMemberAttribute
- SWidget::TSlateAttribute
- SWidget::TSlateAttribute< FText, InInvalidationReasonValue >
- TSlateAttribute< FText, EInvalidateWidgetReason::None >
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Types/Attributes/SlateAttributeBase.inl |
Include | #include "Types/Attributes/SlateAttributeBase.inl" |
Syntax
template<typename ContainerType, typename InObjectType, typename InInvalidationReasonPredicate, typename InComparePredicateType, ESlateAttributeType InAttributeType>
struct TSlateAttributeBase : public SlateAttributePrivate::FSlateAttributeImpl
Remarks
Attribute object InObjectType - Type of the value to store InInvalidationReasonPredicate - Predicate that returns the type of invalidation to do when the value changes (e.g layout or paint) The invalidation can be overridden per widget. (This use memory allocation. See FSlateAttributeMetadata.) InComparePredicateType - Predicate to compare the cached value with the Getter. bInIsExternal - The attribute life is not controlled by the SWidget.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
|||
![]() |
TSlateAttributeBase
(
SWidget& Widget, |
||
![]() |
TSlateAttributeBase
(
SWidget& Widget, ) |
||
![]() |
TSlateAttributeBase
(
const ObjectType& InValue |
||
![]() |
|||
![]() |
TSlateAttributeBase
(
SWidget& Widget |
||
![]() |
TSlateAttributeBase
(
SWidget& Widget, |
||
![]() |
|||
![]() |
TSlateAttributeBase
(
SWidget& Widget, |
||
![]() |
|||
![]() |
TSlateAttributeBase
(
SWidget& Widget, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | Assign
(
ContainerType& Widget, |
Bind the SlateAttribute to the Attribute Getter function (if it exist). |
![]() |
bool | Assign
(
ContainerType& Widget, |
|
![]() |
bool | Assign
(
ContainerType& Widget, |
|
![]() |
bool | Assign
(
ContainerType& Widget, |
|
![]() |
bool | Assign
(
ContainerType& Widget, ) |
|
![]() |
bool | Assign
(
ContainerType& Widget, ) |
|
![]() |
void | Bind the SlateAttribute to the Getter function. | |
![]() |
void | Bind the SlateAttribute to the Getter function. | |
![]() |
void | Bind
(
WidgetType& Widget, |
Bind the SlateAttribute to the newly create getter function. |
![]() ![]() |
UE_NODISCARD const ObjectType & | Get () |
|
![]() ![]() |
EInvalidateWidgetReason | GetInvalidationReason
(
const ISlateAttributeContainer& Container |
|
![]() ![]() |
EInvalidateWidgetReason | GetInvalidationReason
(
const SWidget& Widget |
|
![]() ![]() |
bool | IdenticalTo
(
const ISlateAttributeContainer& Container, |
|
![]() ![]() |
bool | IdenticalTo
(
const SWidget& Widget, |
|
![]() ![]() |
UE_NODISCARDbool | IdenticalTo
(
const ContainerType& Widget, |
|
![]() ![]() |
UE_NODISCARDbool | IdenticalTo
(
const ContainerType& Widget, |
|
![]() ![]() |
UE_NODISCARDbool | IsBound
(
const ContainerType& Widget |
|
![]() |
bool | Set
(
ContainerType& Widget, |
Unbind the SlateAttribute and set its value. |
![]() |
bool | Unbind the SlateAttribute and set its value. | |
![]() ![]() |
UE_NODISCARDTAttribute< ObjectType > | ToAttribute
(
const ContainerType& Widget |
Build a Attribute from this SlateAttribute. |
![]() |
void | Unbind
(
ContainerType& Widget |
Remove the Getter function. |
![]() |
void | UpdateNow
(
ContainerType& Widget |
Update the cached value and invalidate the widget if needed. |
Typedefs
Name | Description |
---|---|
FComparePredicate | |
FGetter | |
FInvalidationReasonPredicate | |
ObjectType |
Constants
Name | Description |
---|---|
AttributeType | |
HasDefinedInvalidationReason |