Navigation
Unreal Engine C++ API Reference > Editor > KismetWidgets
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SPinTypeSelector
References
Module | KismetWidgets |
Header | /Engine/Source/Editor/KismetWidgets/Public/SPinTypeSelector.h |
Include | #include "SPinTypeSelector.h" |
Syntax
class SPinTypeSelector : public SCompoundWidget
Remarks
Widget for modifying the type for a variable or pin
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< FObjectReferenceListItem > | AllowedObjectReferenceTypes | Holds a cache of the allowed Object Reference types for the last sub-menu opened. |
![]() |
bool | bIsRightMousePressed | TRUE when the right mouse button is pressed, keeps from handling a right click that does not begin in the widget |
![]() |
bool | bMenuContentIsSecondary | True if GetMenuContent was last called with bForSecondaryType == true |
![]() |
TArray< FObjectReferenceListItem > | CurrentPinAllowedObjectReferenceTypes | Holds a cache of the allowed Object Reference types for the current pin type, to be shown inline. |
![]() |
TArray< TSharedPtr< class IPinTypeSelectorFilter > > | CustomFilters | An interface to optionally apply a custom filter to the available pin type items for display. |
![]() |
TArray< FPinTypeTreeItem > | FilteredTypeTreeRoot | Array containing a filtered list, according to the text in the searchbox |
![]() |
TSharedPtr< SSearchBox > | FilterTextBox | |
![]() |
FGetPinTypeTree | GetPinTypeTree | Delegate for the type selector to retrieve the pin type tree (passed into the Construct so the tree can depend on the situation) |
![]() |
TSharedPtr< SMenuOwner > | MenuContent | Reference to the menu content that's displayed when the type button is clicked on |
![]() |
int32 | NumFilteredPinTypeItems | Total number of filtered pin type items. This count excludes category items and reference subtypes. |
![]() |
FOnPinTypeChanged | OnTypeChanged | Delegate that is called every time the pin type changes (before and after). |
![]() |
FOnPinTypeChanged | OnTypePreChanged | |
![]() |
TWeakPtr< SMenuOwner > | PinTypeSelectorMenuOwner | |
![]() |
TAttribute< bool > | ReadOnly | Whether or not the type is read only and not editable (implies a different style) |
![]() |
const UEdGraphSchema * | Schema | Schema in charge of determining available types for this pin |
![]() |
TWeakPtr< const FEdGraphSchemaAction > | SchemaAction | Schema action related to the pin selection |
![]() |
FText | SearchText | Type searching support |
![]() |
TSharedPtr< SComboButton > | SecondaryTypeComboButton | |
![]() |
ESelectorType | SelectorType | Whether the selector is using the compact or full mode, or not a selector at all, but just the type image. |
![]() |
TAttribute< FEdGraphPinType > | TargetPinType | The pin attribute that we're modifying with this widget |
![]() |
TAttribute< FOptionalSize > | TreeViewHeight | Desired height of the tree view widget |
![]() |
TAttribute< FOptionalSize > | TreeViewWidth | Desired width of the tree view widget |
![]() |
TSharedPtr< SComboButton > | TypeComboButton | |
![]() |
ETypeTreeFilter | TypeTreeFilter | UEdgraphSchema::ETypeTreeFilter flags for filtering available types |
![]() |
TArray< FPinTypeTreeItem > | TypeTreeRoot | Array containing the unfiltered list of all supported types this pin could possibly have |
![]() |
TSharedPtr< SPinTypeTreeView > | TypeTreeView | |
![]() |
TWeakPtr< SListView< FObjectReferenceListItem > > | WeakListView |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Construct
(
const FArguments& InArgs, |
|
![]() ![]() |
TSharedRef< SWidget > | ConstructPinTypeImage
(
UEdGraphPin* Pin |
|
![]() ![]() |
TSharedRef< SWidget > | ConstructPinTypeImage
(
TAttribute< const FSlateBrush* > PrimaryIcon, |
|
![]() ![]() |
TSharedRef< SWidget > | ConstructPinTypeImage
(
const FSlateBrush* PrimaryIcon, |
|
![]() ![]() |
TSharedRef< SWidget > | CreateObjectReferenceWidget
(
FPinTypeTreeItem InItem, |
Helper function to create widget for the sub-menu |
![]() ![]() |
void | GenerateAllowedObjectTypesList
(
TArray< FObjectReferenceListItem >& OutList, |
Fills the provided array with generated list items based on a pin type's allowed reference types, which could then be used as the item source for a list view |
![]() |
TSharedRef< ITableRow > | GenerateObjectReferenceTreeRow
(
FObjectReferenceListItem InItem, |
Listview support functions for sub-menu |
![]() ![]() |
TSharedRef< ITableRow > | GenerateTypeTreeRow
(
FPinTypeTreeItem InItem, |
Treeview support functions |
![]() |
TSharedRef< SWidget > | GetAllowedObjectTypes
(
FPinTypeTreeItem InItem, |
Gets the allowable object types for an tree item, used for building the sub-menu |
![]() |
bool | GetChildrenMatchingSearch
(
const FText& SearchText, |
Helper to generate the filtered list of types, based on the search string matching |
![]() |
bool | GetChildrenWithSupportedTypes
(
const TArray< FPinTypeTreeItem >& UnfilteredList, |
Helper to generate the filtered list of types, based on the supported types of the schema |
![]() ![]() |
FText | GetCombinedTypeDescription
(
bool bIncludeSubcategory |
Gets a combined description of the primary, container, and secondary types. |
![]() ![]() |
TSharedRef< SWidget > | GetMenuContent
(
bool bForSecondaryType |
|
![]() |
TSharedRef< SWidget > | ||
![]() ![]() |
FText | Callback to get the display text for the total pin type item count | |
![]() ![]() |
FText | GetSecondaryTypeDescription
(
bool bIncludeSubcategory |
Gets the secondary type description. E.g. the value type for TMaps |
![]() ![]() |
FSlateColor | Gets the secondary type-specific color for the type being manipulated | |
![]() ![]() |
const FSlateBrush * | Gets the secondary icon (for maps, otherwise null) for the type being manipulated | |
![]() ![]() |
FText | Callback to get the tooltip for the array button widget | |
![]() ![]() |
FText | Callback to get the tooltip text for the secondary pin type combo box | |
![]() ![]() |
FText | Callback to get the tooltip text for the pin type combo box | |
![]() ![]() |
FText | Callback to get the tooltip for the container type dropdown widget | |
![]() |
void | GetTypeChildren
(
FPinTypeTreeItem InItem, |
|
![]() ![]() |
FText | GetTypeDescription
(
bool bIncludeSubcategory |
Gets a succinct type description for the type being manipulated |
![]() ![]() |
FSlateColor | Gets the type-specific color for the type being manipulated | |
![]() ![]() |
const FSlateBrush * | Gets the icon (value, array, set, or map) for the type being manipulated | |
![]() ![]() |
ECheckBoxState | Array checkbox support functions | |
![]() |
void | OnArrayCheckStateChanged
(
ECheckBoxState NewState |
|
![]() |
void | Toggles the variable type as an array | |
![]() |
void | OnContainerTypeSelectionChanged
(
EPinContainerType PinContainerType |
Updates the variable container type: |
![]() |
void | Called whenever the custom filter options are changed. | |
![]() |
void | OnFilterTextChanged
(
const FText& NewText |
|
![]() |
void | OnFilterTextCommitted
(
const FText& NewText, |
|
![]() |
void | OnObjectReferenceSelectionChanged
(
FObjectReferenceListItem InItem, |
|
![]() |
void | OnSelectPinType
(
FPinTypeTreeItem InItem, |
When a pin type is selected, handle it |
![]() |
void | OnTypeSelectionChanged
(
FPinTypeTreeItem Selection, |
Overridden from SWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. |
![]() ![]() |
FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. |
![]() ![]() |
void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
The system will use this event to notify a widget that the cursor has left it. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FArguments |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
ESelectorType | Which type of selector should be used: compact or full mode, or not a selector at all, but just the type image. |