FSlateFontInfoStructCustomization

Customize the appearance of an [FSlateFontInfo](API\Runtime\SlateCore\Fonts\FSlateFontInfo)

Windows
MacOS
Linux

Inheritance Hierarchy

TSharedFromThis

IPropertyTypeCustomization

FSlateFontInfoStructCustomization

References

Module

DetailCustomizations

Header

/Engine/Source/Editor/DetailCustomizations/Public/Customizations/SlateFontInfoCustomization.h

Include

#include "Customizations/SlateFontInfoCustomization.h"

Syntax

class FSlateFontInfoStructCustomization : public IPropertyTypeCustomization

Remarks

Customize the appearance of an FSlateFontInfo

Variables

Name Description

Protected variable

TSharedPtr< SCo...

 

FontEntryCombo

Font entry combo box widget

Protected variable

TArray< TShared...

 

FontEntryComboData

Source data for the font entry combo widget

Protected variable

TSharedPtr< IPr...

 

FontObjectProperty

Handle to the "FontObject" property being edited

Protected variable

TSharedPtr< IPr...

 

FontSizeProperty

Handle to the "Size" property being edited

Protected variable

TSharedPtr< IPr...

 

StructPropertyHandle

Handle to the struct property being edited

Protected variable

TSharedPtr< IPr...

 

TypefaceFontNameProperty

Handle to the "TypefaceFontName" property being edited

Functions

Name Description

Protected function Const

FName

 

GetActiveFontEntry()

Get the name of the currently active font entry (may not be the selected entry if the entry is set to use "None")

Protected function Const

FText

 

GetFontEntryComboText()

Get the text to use for the font entry combo button

Protected function

TArray< FSla...

 

GetFontInfoBeingEdited()

Get the array of FSlateFontInfo instances this customization is currently editing

Protected function Const

TArray< cons...

 

GetFontInfoBeingEdited()

Get the array of FSlateFontInfo instances this customization is currently editing

Protected function Const

bool

 

IsFontEntryComboEnabled()

Called to see whether the font entry combo should be enabled

Protected function

TSharedRef< ...

 

MakeFontEntryWidget

(
    TSharedPtr< FName > InFontEntry
)

Make the widget for an entry in the font entry combo

Public function Static

TSharedRef< ...

 

MakeInstance()

Protected function Static

bool

 

OnFilterFontAsset

(
    const FAssetData& InAssetData
)

Called to filter out invalid font assets

Protected function

void

 

OnFontChanged

(
    const FAssetData& InAssetData
)

Called when the font object used by this FSlateFontInfo has been changed

Protected function

void

 

OnFontEntryComboOpening()

Called before the font entry combo is opened - used to update the list of available font entries

Protected function

void

 

OnFontEntrySelectionChanged

(
    TSharedPtr< FName > InNewSelection,
    ESelectInfo::Type
)

Called when the selection of the font entry combo is changed

Overridden from IPropertyTypeCustomization

Name Description

Public function Virtual

void

 

CustomizeChildren

(
    TSharedRef< class IPropertyHandle >...,
    IDetailChildrenBuilder& ChildBuild...,
    IPropertyTypeCustomizationUtils& C...
)

Called when the children of the property should be customized or extra rows added

Public function Virtual

void

 

CustomizeHeader

(
    TSharedRef< class IPropertyHandle >...,
    FDetailWidgetRow& InHeaderRow,
    IPropertyTypeCustomizationUtils& I...
)

IPropertyTypeCustomization interface

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss