Navigation
API > API/Editor > API/Editor/DetailCustomizations
Customize the appearance of an FSlateFontInfo
| Name | FSlateFontInfoStructCustomization |
| Type | class |
| Header File | /Engine/Source/Editor/DetailCustomizations/Public/Customizations/SlateFontInfoCustomization.h |
| Include Path | #include "Customizations/SlateFontInfoCustomization.h" |
Syntax
class FSlateFontInfoStructCustomization : public IPropertyTypeCustomization
Implements Interfaces
Functions
Public
Overridden from IPropertyTypeCustomization
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CustomizeChildren
(
TSharedRef< class IPropertyHandle > InStructPropertyHandle, |
Customizations/SlateFontInfoCustomization.h | ||
virtual void CustomizeHeader
(
TSharedRef< class IPropertyHandle > InStructPropertyHandle, |
IPropertyTypeCustomization interface | Customizations/SlateFontInfoCustomization.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddFontSizeProperty
(
IDetailChildrenBuilder& InStructBuilder |
Customizations/SlateFontInfoCustomization.h | ||
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") | Customizations/SlateFontInfoCustomization.h | |
FText GetFontEntryComboText() |
Get the text to use for the font entry combo button | Customizations/SlateFontInfoCustomization.h | |
| Get the array of FSlateFontInfo instances this customization is currently editing | Customizations/SlateFontInfoCustomization.h | ||
TArray< const FSlateFontInfo * > GetFontInfoBeingEdited () |
Customizations/SlateFontInfoCustomization.h | ||
FText GetFontSizeTooltipText() |
Customizations/SlateFontInfoCustomization.h | ||
bool IsFontEntryComboEnabled() |
Called to see whether the font entry combo should be enabled | Customizations/SlateFontInfoCustomization.h | |
bool IsFontSizeEnabled() |
Customizations/SlateFontInfoCustomization.h | ||
TSharedRef< SWidget > MakeFontEntryWidget
(
TSharedPtr< FName > InFontEntry |
Make the widget for an entry in the font entry combo | Customizations/SlateFontInfoCustomization.h | |
void OnFontChanged
(
const FAssetData& InAssetData |
Called when the font object used by this FSlateFontInfo has been changed | Customizations/SlateFontInfoCustomization.h | |
void OnFontEntryComboOpening() |
Called before the font entry combo is opened - used to update the list of available font entries | Customizations/SlateFontInfoCustomization.h | |
void OnFontEntrySelectionChanged
(
TSharedPtr< FName > InNewSelection, |
Called when the selection of the font entry combo is changed | Customizations/SlateFontInfoCustomization.h | |
void OnFontSizeBeginSliderMovement() |
Called when the slider begins to move. We create a transaction here to undo the property | Customizations/SlateFontInfoCustomization.h | |
void OnFontSizeEndSliderMovement
(
float NewDisplayValue |
Called when the slider stops moving. We end the previously created transaction | Customizations/SlateFontInfoCustomization.h | |
TOptional< float > OnFontSizeGetValue() |
Customizations/SlateFontInfoCustomization.h | ||
void OnFontSizeValueChanged
(
float NewDisplayValue |
Customizations/SlateFontInfoCustomization.h | ||
void OnFontSizeValueCommitted
(
float NewDisplayValue, |
Customizations/SlateFontInfoCustomization.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float ConvertFontSizeFromDisplayToNative
(
float FontSize |
Customizations/SlateFontInfoCustomization.h | ||
static float ConvertFontSizeFromNativeToDisplay
(
float FontSize |
Customizations/SlateFontInfoCustomization.h | ||
static TSharedRef< IPropertyTypeCustomization > MakeInstance() |
Customizations/SlateFontInfoCustomization.h | ||
static bool OnFilterFontAsset
(
const FAssetData& InAssetData |
Called to filter out invalid font assets | Customizations/SlateFontInfoCustomization.h |