Navigation
API > API/Editor > API/Editor/DetailCustomizations > API/Editor/DetailCustomizations/Customizations
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
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsUsingSlider | True if the slider is being used to change the value of the property | |
| TSharedPtr< SComboBox< TSharedPtr< FName > > > | FontEntryCombo | Font entry combo box widget | |
| TArray< TSharedPtr< FName > > | FontEntryComboData | Source data for the font entry combo widget | |
| TSharedPtr< IPropertyHandle > | FontObjectProperty | Handle to the "FontObject" property being edited | |
| TSharedPtr< IPropertyHandle > | FontSizeProperty | Handle to the "Size" property being edited | |
| float | LastSliderFontSizeCommittedValue | When using the slider, what was the last committed value | |
| TSharedPtr< IPropertyHandle > | StructPropertyHandle | Handle to the struct property being edited | |
| TSharedPtr< IPropertyHandle > | TypefaceFontNameProperty | Handle to the "TypefaceFontName" property being edited |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddFontSizeProperty
(
IDetailChildrenBuilder& InStructBuilder |
||
| float | ConvertFontSizeFromDisplayToNative
(
float FontSize |
||
| float | ConvertFontSizeFromNativeToDisplay
(
float FontSize |
||
| FName | Get the name of the currently active font entry (may not be the selected entry if the entry is set to use "None") | ||
| FText | Get the text to use for the font entry combo button | ||
| TArray< FSlateFontInfo * > | Get the array of FSlateFontInfo instances this customization is currently editing | ||
| TArray< const FSlateFontInfo * > | Get the array of FSlateFontInfo instances this customization is currently editing | ||
| FText | |||
| bool | Called to see whether the font entry combo should be enabled | ||
| TSharedRef< SWidget > | MakeFontEntryWidget
(
TSharedPtr< FName > InFontEntry |
Make the widget for an entry in the font entry combo | |
| TSharedRef< IPropertyTypeCustomization > | MakeInstance () |
||
| bool | OnFilterFontAsset
(
const FAssetData& InAssetData |
Called to filter out invalid font assets | |
| void | OnFontChanged
(
const FAssetData& InAssetData |
Called when the font object used by this FSlateFontInfo has been changed | |
| void | Called before the font entry combo is opened - used to update the list of available font entries | ||
| void | OnFontEntrySelectionChanged
(
TSharedPtr< FName > InNewSelection, |
Called when the selection of the font entry combo is changed | |
| void | Called when the slider begins to move. We create a transaction here to undo the property | ||
| void | OnFontSizeEndSliderMovement
(
float NewDisplayValue |
Called when the slider stops moving. We end the previously created transaction | |
| TOptional< float > | |||
| void | OnFontSizeValueChanged
(
float NewDisplayValue |
||
| void | OnFontSizeValueCommitted
(
float NewDisplayValue, |
Overridden from IPropertyTypeCustomization
| Type | Name | Description | |
|---|---|---|---|
| void | CustomizeChildren
(
TSharedRef< class IPropertyHandle > PropertyHandle, |
Called when the children of the property should be customized or extra rows added | |
| void | CustomizeHeader
(
TSharedRef< class IPropertyHandle > InStructPropertyHandle, |
IPropertyTypeCustomization interface |