Navigation
API > API/Editor > API/Editor/ContentBrowser
A base class for all asset view items
| Name | SAssetViewItem |
| Type | class |
| Header File | /Engine/Source/Editor/ContentBrowser/Public/AssetViewWidgets.h |
| Include Path | #include "AssetViewWidgets.h" |
Syntax
class SAssetViewItem : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SAssetViewItem
- FSlateControlledConstruction → SWidget → SCompoundWidget → SAssetViewItem
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~SAssetViewItem() |
Virtual destructor | AssetViewWidgets.h |
Structs
| Name | Remarks |
|---|---|
| FArguments | |
| FTagDisplayItem | Data for a cached display tag for this item (used in the tooltip, and also as the display string in column views) |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Performs common initialization logic for all asset view items | AssetViewWidgets.h | |
virtual FSlateColor GetAssetColor() |
Returns the color this item should be tinted with | AssetViewWidgets.h | |
virtual const FSlateBrush * GetBorderImage() |
Get the border image to display | AssetViewWidgets.h | |
FText GetNameText() |
Get the name text to be displayed for this item | AssetViewWidgets.h | |
virtual TSharedPtr< IToolTip > GetToolTip() |
AssetViewWidgets.h | ||
virtual void OnDragEnter
(
const FGeometry& MyGeometry, |
AssetViewWidgets.h | ||
virtual void OnDragLeave
(
const FDragDropEvent& DragDropEvent |
AssetViewWidgets.h | ||
virtual FReply OnDragOver
(
const FGeometry& MyGeometry, |
AssetViewWidgets.h | ||
virtual FReply OnDrop
(
const FGeometry& MyGeometry, |
AssetViewWidgets.h | ||
virtual FReply OnDrop
(
const FGeometry& MyGeometry, |
AssetViewWidgets.h | ||
virtual void OnToolTipClosing() |
AssetViewWidgets.h | ||
virtual bool OnVisualizeTooltip
(
const TSharedPtr< SWidget >& TooltipContent |
AssetViewWidgets.h | ||
virtual void Tick
(
const FGeometry& AllottedGeometry, |
NOTE: Any functions overridden from the base widget classes must also be overridden by SAssetColumnViewRow and forwarded on to its internal item | AssetViewWidgets.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddToToolTipInfoBox
(
const TSharedRef< SVerticalBox >& InfoBox, |
Helper function for CreateToolTipWidget. Adds a key value pair to the info box of the tooltip | AssetViewWidgets.h | |
void CacheDirtyExternalPackageInfo() |
Caches the ExternalPackagesText | AssetViewWidgets.h | |
void CacheDisplayTags() |
Cache the display tags for this item | AssetViewWidgets.h | |
TSharedRef< SWidget > CreateToolTipWidget() |
Creates a tooltip widget for this item | AssetViewWidgets.h | |
virtual void DirtyStateChanged() |
Notification for when the dirty flag changes | AssetViewWidgets.h | |
TSharedRef< SWidget > GenerateExtraStateIconWidget
(
TAttribute< float > InMaxExtraStateIconWidth |
Generate a widget to inject extra external state indicator on the asset. | AssetViewWidgets.h | |
TSharedRef< SWidget > GenerateExtraStateTooltipWidget() |
Generate a widget to inject extra external state indicator on the asset tooltip. | AssetViewWidgets.h | |
TSharedPtr< SWidget > GenerateExtraStateTooltipWidgetNewStyle () |
Generate a widget to inject extra external state indicator on the asset tooltip. | AssetViewWidgets.h | |
TSharedRef< SWidget > GenerateSourceControlIconWidget() |
Generates the source control icon widget | AssetViewWidgets.h | |
TSharedRef< SWidget > GetAssetAccessSpecifierIconBox() |
Returns the SBox that will hold the AssetAccessSpecifierIcon | AssetViewWidgets.h | |
FText GetAssetAccessSpecifierText() |
Gets the AssetAccessSpecifier as FText. | AssetViewWidgets.h | |
FText GetAssetClassText() |
Gets the name of the class of this asset | AssetViewWidgets.h | |
FText GetAssetUserDescription() |
Helper function for CreateToolTipWidget. Gets the user description for the asset, if it exists. | AssetViewWidgets.h | |
const FSlateBrush * GetDirtyImage() |
Gets the brush for the dirty indicator image | AssetViewWidgets.h | |
FText GetExternalPackagesText() |
Gets the text detailing all the modified external packages (and their contained objects) | AssetViewWidgets.h | |
virtual float GetNameTextWrapWidth() |
Returns the width at which the name label will wrap the name | AssetViewWidgets.h | |
FText GetSourceControlText() |
Gets the text for the source control text block in the tooltip | AssetViewWidgets.h | |
EVisibility GetSourceControlTextVisibility() |
Gets the visibility of the source control text block in the tooltip | AssetViewWidgets.h | |
EVisibility GetThumbnailEditModeUIVisibility() |
Gets the visibility for the thumbnail edit mode UI | AssetViewWidgets.h | |
virtual void HandleBeginNameChange
(
const FText& OriginalText |
Handles starting a name change | AssetViewWidgets.h | |
virtual void HandleNameCommitted
(
const FText& NewText, |
Handles committing a name change | AssetViewWidgets.h | |
void HandleSourceControlProviderChanged
(
ISourceControlProvider& OldProvider, |
Delegate handler for when the source control provider changes | AssetViewWidgets.h | |
void HandleSourceControlStateChanged() |
Delegate handler for when source control state changes | AssetViewWidgets.h | |
virtual bool HandleVerifyNameChanged
(
const FText& NewText, |
Handles verifying a name change | AssetViewWidgets.h | |
bool IsDirty() |
Returns true if the item is dirty. | AssetViewWidgets.h | |
bool IsFolder() |
Whether this item is a folder | AssetViewWidgets.h | |
bool IsNameReadOnly() |
Check to see if the name should be read-only | AssetViewWidgets.h | |
virtual void OnAssetDataChanged() |
Handles committing a name change | AssetViewWidgets.h | |
bool ShouldExpandTooltip() |
If true it will expand the tooltip by default | AssetViewWidgets.h | |
void UpdateAssetAccessSpecifierIcon() |
Renders the appropriate AssetAccessSpecifierIcon based on the EAssetAccessSpecifier of the asset | AssetViewWidgets.h | |
void UpdateDirtyState() |
Updates the bPackageDirty flag | AssetViewWidgets.h | |
void UpdateSourceControlState
(
float InDeltaTime |
Update the source control state of this item if required | AssetViewWidgets.h |