Navigation
API > API/Editor > API/Editor/ContentBrowser
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SAssetViewItem
- SAssetColumnItem
- SAssetListItem
- SAssetTileItem
References
| Module | ContentBrowser |
| Header | /Engine/Source/Editor/ContentBrowser/Public/AssetViewWidgets.h |
| Include | #include "AssetViewWidgets.h" |
Syntax
class SAssetViewItem : public SCompoundWidget
Remarks
A base class for all asset view items
Variables
| Type | Name | Description | |
|---|---|---|---|
| const FSlateBrush * | AssetDirtyBrush | Cached brushes for the dirty state | |
| TSharedPtr< FAssetViewItem > | AssetItem | The data for this item | |
| bool | bDraggedOver | True when a drag is over this item with a drag operation that we know how to handle. | |
| bool | bHasCCStateBrush | Whether the item has a valid scc state brush (not empty) | |
| bool | bItemDirty | Cached flag describing if the item is dirty | |
| bool | bSourceControlStateRequested | Flag indicating whether we have requested initial source control state | |
| TArray< FTagDisplayItem > | CachedDisplayTags | The cached display tags for this item | |
| TSharedPtr< STextBlock > | ClassTextWidget | ||
| TAttribute< FText > | HighlightText | The substring to be highlighted in the name and tooltip path | |
| TSharedPtr< SInlineEditableTextBlock > | InlineRenameWidget | ||
| FIsSelected | IsSelected | Delegate for getting the selection state of this item | |
| FGeometry | LastGeometry | ||
| FOnAssetToolTipClosing | OnAssetToolTipClosing | Called if bound when a tooltip is closing | |
| FOnGetCustomAssetToolTip | OnGetCustomAssetToolTip | Called if bound to get a custom asset item tooltip | |
| FOnIsAssetValidForCustomToolTip | OnIsAssetValidForCustomToolTip | Called to test if it is valid to make a custom tool tip for that asset | |
| FOnItemDestroyed | OnItemDestroyed | Called when any asset item is destroyed. Used in thumbnail management | |
| FOnRenameBegin | OnRenameBegin | Delegate for when an asset name has entered a rename state | |
| FOnRenameCommit | OnRenameCommit | Delegate for when an asset name has been entered for an item that is in a rename state | |
| FOnVerifyRenameCommit | OnVerifyRenameCommit | Delegate for when an asset name has been entered for an item to verify the name before commit | |
| FOnVisualizeAssetToolTip | OnVisualizeAssetToolTip | Called if bound when about to show a tooltip | |
| TSharedPtr< SLayeredImage > | SCCStateWidget | Widget for the source control state | |
| TAttribute< bool > | ShouldAllowToolTip | If false, the tooltip will not be displayed | |
| FDelegateHandle | SourceControlStateChangedDelegateHandle | Delegate handle for the HandleSourceControlStateChanged function callback | |
| float | SourceControlStateDelay | Delay timer before we request a source control state update, to prevent spam | |
| TAttribute< bool > | ThumbnailEditMode | If true, display the thumbnail edit mode UI |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddToToolTipInfoBox
(
const TSharedRef< SVerticalBox >& InfoBox, |
Helper function for CreateToolTipWidget. Adds a key value pair to the info box of the tooltip | |
| void | Cache the display tags for this item | ||
| void | Construct
(
const FArguments& InArgs |
Performs common initialization logic for all asset view items | |
| TSharedRef< SWidget > | Creates a tooltip widget for this item | ||
| void | Notification for when the dirty flag changes | ||
| TSharedRef< SWidget > | GenerateExtraStateIconWidget
(
TAttribute< float > InMaxExtraStateIconWidth |
Generate a widget to inject extra external state indicator on the asset. | |
| TSharedRef< SWidget > | Generate a widget to inject extra external state indicator on the asset tooltip. | ||
| TSharedRef< SWidget > | Generates the source control icon widget | ||
| FText | Gets the name of the class of this asset | ||
| FSlateColor | Returns the color this item should be tinted with | ||
| FText | Helper function for CreateToolTipWidget. Gets the user description for the asset, if it exists. | ||
| const FSlateBrush * | Get the border image to display | ||
| const FSlateBrush * | Gets the brush for the dirty indicator image | ||
| FText | GetNameText () |
Get the name text to be displayed for this item | |
| float | Returns the width at which the name label will wrap the name | ||
| FText | Gets the text for the source control text block in the tooltip | ||
| EVisibility | Gets the visibility of the source control text block in the tooltip | ||
| EVisibility | Gets the visibility for the thumbnail edit mode UI | ||
| void | HandleBeginNameChange
(
const FText& OriginalText |
Handles starting a name change | |
| void | HandleNameCommitted
(
const FText& NewText, |
Handles committing a name change | |
| void | HandleSourceControlProviderChanged
(
ISourceControlProvider& OldProvider, |
Delegate handler for when the source control provider changes | |
| void | Delegate handler for when source control state changes | ||
| bool | HandleVerifyNameChanged
(
const FText& NewText, |
Handles verifying a name change | |
| bool | IsDirty () |
Returns true if the item is dirty. | |
| bool | IsFolder () |
Whether this item is a folder | |
| bool | Check to see if the name should be read-only | ||
| void | Handles committing a name change | ||
| FReply | OnDrop
(
const FGeometry& MyGeometry, |
||
| void | Updates the bPackageDirty flag | ||
| void | UpdateSourceControlState
(
float InDeltaTime |
Update the source control state of this item if required |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< IToolTip > | GetToolTip () |
||
| void | OnDragEnter
(
const FGeometry& MyGeometry, |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. | |
| void | OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Called during drag and drop when the drag leaves a widget. | |
| FReply | OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. | |
| FReply | OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. | |
| void | Called when a tooltip displayed from this widget is being closed | ||
| bool | OnVisualizeTooltip
(
const TSharedPtr< SWidget >& TooltipContent |
Called when Slate wants to visualize tooltip. | |
| void | NOTE: Any functions overridden from the base widget classes must also be overridden by SAssetColumnViewRow and forwarded on to its internal item |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FTagDisplayItem | Data for a cached display tag for this item (used in the tooltip, and also as the display string in column views) |