Navigation
API > API/Developer > API/Developer/ToolWidgets
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCustomTextFilter | A generic CustomTextFilter that can be created by providing a TTextFilter. | ||
| FCustomTextFilterData | Struct containing the data that SCustomTextFilterDialog is currently editing | ||
| FFilterBase | The base class for all Filters that can be used with FilterBar Widgets | ||
| FFilterCategory | |||
| FFrontendFilterExternalActivationHelper | Forward declaration for a helper struct used to activate external filters | ||
| FGenericFilter | A generic filter that can be used with the various FilterBar Widgets Takes in a Category, Name, Display Name and Delegate which specifies how to filter an item You can optionally specify a Tooltip, Icon Name or Color | ||
| ICustomTextFilter | Interface class to define how a custom text filter converts to/from FCustomTextFilterDataFCustomTextFilter contains a generic implementation that can be used for most cases, look at FFrontendFilter_CustomText in the Content Browser for an example of a specific implementation | ||
| SBasicFilterBar | A Basic Filter Bar widget, which can be used to filter items of type [FilterType] given a list of custom filters | ||
| UFilterBarContext | ToolMenuContext that is used to create the Add Filter Menu |
Typedefs
| Name | Description |
|---|---|
| FOnExtendAddFilterMenu | Delegate to extend a menu after it has been generated dynamically. |
| FOnPopulateAddFilterMenu | Delegate used by SBasicFilterBar to populate the add filter menu |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFilterBarLayout | Describes if the filters are laid out horizontally (ScrollBox) or vertically (WrapBox) | ||
| EFilterPillStyle | Describes how each individual filter pill looks like |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< SFilter > | AddFilterToBar
(
const TSharedRef< FFilterBase< FilterType > >& Filter |
'Activate' A filter by adding it to the filter bar, does not turn it on | |
| void | AddFilterToBar
(
const TSharedRef< SFilter >& FilterToAdd |
'Activate' A filter by adding it to the filter bar, does not turn it on | |
| void | AddWidgetToLayout
(
const TSharedRef< SWidget > WidgetToAdd |
Add a widget to the current filter layout | |
| void | Creates a dialog box to Add a custom text filter | ||
| void | CreateCustomTextFilterFromSearch
(
const FText& InSearchText |
Creates a dialog to add a custom text filter from the given search text | |
| void | CreateCustomTextFilterWindow
(
const FCustomTextFilterData& CustomTextFilterData, |
Creates a dialog box with the SCustomTextFilterDialog Widget | |
| void | CreateEditCustomTextFilterWindow
(
TSharedPtr< ICustomTextFilter< FilterType > > InFilter |
Creates a dialog box to Edit an existing custom text filter | |
| void | CreateOtherFiltersMenuCategory
(
FToolMenuSection& Section, |
Handler for when the add filter menu is populated by a non-category | |
| void | CreateOtherFiltersMenuCategory
(
UToolMenu* InMenu, |
Handler for when the add filter menu is populated by a non-category | |
| void | CreateTextFiltersMenu
(
UToolMenu* InMenu |
Populate the Custom Filters submenu in the Add Filter dropdown | |
| void | CustomTextFilterClicked
(
ECheckBoxState CheckBoxState, |
Handler for when a checkbox next to a custom text filter is clicked | |
| void | Disable all the filters that are currently visible on the filter bar | ||
| void | Enable all the filters that are currently visible on the filter bar | ||
| void | EnableOnlyThisFilter
(
const TSharedRef< SFilter >& FilterToEnable |
Handler for when the enable only this button was clicked on a single filter | |
| void | FrontendFilterCategoryClicked
(
TSharedPtr< FFilterCategory > MenuCategory |
Handler for when a filter category is clicked | |
| void | FrontendFilterChanged
(
TSharedRef< FFilterBase< FilterType > > FrontendFilter |
Handler for when a frontend filter state has changed | |
| void | FrontendFilterClicked
(
TSharedRef< FFilterBase< FilterType > > FrontendFilter |
Handler for a frontend filter is clicked | |
| TSharedPtr< TFilterCollection< FilterType > > | Use this function to get all currently active filters (to filter your items) Not const on purpose: Subclasses might need to update the filter collection before getting it | ||
| void | GetAllCustomTextFilterLabels
(
TArray< FText >& OutFilterLabels |
||
| TSharedPtr< FFilterBase< FilterType > > | Retrieve a specific filter | ||
| const FSlateBrush * | Overlay for filter icon, badge if there are any active filters | ||
| ECheckBoxState | GetFilterCheckState
(
const TSharedPtr< FFilterBase< FilterType > >& InFilter |
Returns the check box state of the specified filter (in the filter drop down). | |
| bool | Returns true if any filters are applied | ||
| bool | IsFilterActive
(
const TSharedPtr< FFilterBase< FilterType > >& InFilter |
Returns true if the specified filter is both checked (pinned on the filter bar) and active (contributing to filter the result). | |
| ECheckBoxState | IsFrontendFilterCategoryChecked
(
TSharedPtr< FFilterCategory > MenuCategory |
Handler to determine the "checked" state of a frontend filter category in the filter dropdown | |
| bool | IsFrontendFilterCategoryInUse
(
TSharedPtr< FFilterCategory > MenuCategory |
Handler to check if a filter category is in use | |
| bool | IsFrontendFilterInUse
(
TSharedRef< FFilterBase< FilterType > > FrontendFilter |
Handler to check if a frontend filter is in use | |
| TSharedRef< SWidget > | Handler for when the add filter button was clicked | ||
| void | Handler to close the custom text filter dialog | ||
| void | OnCreateCustomTextFilter
(
const FCustomTextFilterData& InFilterData, |
Handler for when a custom text filter is created | |
| void | OnDeleteCustomTextFilter
(
const TSharedPtr< ICustomTextFilter< FilterType > > InFilter |
Handler for when a custom text filter is deleted | |
| bool | OnIsFilterActive
(
TWeakPtr< FFilterBase< FilterType > > InWeakFilter |
Called externally to determine if a filter has been checked/pinned and activated | |
| void | OnModifyCustomTextFilter
(
const FCustomTextFilterData& InFilterData, |
Handler for when a custom text filter is modified | |
| void | Called when reset filters option is pressed | ||
| void | OnSetFilterActive
(
bool bActive, |
Called externally to check/pin a filter, and activates/deactivates it | |
| void | PopulateAddFilterMenu
(
UToolMenu* Menu |
Function to populate the add filter menu | |
| void | PopulateCommonFilterSections
(
UToolMenu* Menu |
Helper function to add common sections to the Add Filter Menu | |
| void | PopulateCustomFilters
(
UToolMenu* Menu |
Helper function to add all custom filters to the Add Filter Menu | |
| void | RemoveAllButThis
(
const TSharedRef< SFilter >& FilterToKeep |
Remove all filters except the specified one | |
| void | Remove all filters from the filter bar, while disabling any active ones | ||
| void | RemoveFilter
(
const TSharedRef< SFilter >& FilterToRemove |
Remove a filter from the filter bar | |
| void | RemoveFilter
(
const TSharedRef< FFilterBase< FilterType > >& InFilterToRemove, |
Remove a filter from the filter bar | |
| void | RemoveFilterAndUpdate
(
const TSharedRef< SFilter >& FilterToRemove |
Remove a filter from the filter bar | |
| void | RemoveWidgetFromLayout
(
const TSharedRef< SWidget > WidgetToRemove |
Remove a widget from the current filter layout | |
| void | SetFilterCheckState
(
const TSharedPtr< FFilterBase< FilterType > >& InFilter, |
Set the check box state of the specified filter (in the filter drop down) and pin/unpin a filter widget on/from the filter bar. | |
| void | SetFrontendFilterActive
(
const TSharedRef< FFilterBase< FilterType > >& Filter, |
Sets the active state of a frontend filter. |
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< TFilterCollection< FilterType > > | ActiveFilters | Currently active filter objects | |
| TArray< TSharedPtr< FFilterCategory > > | AllFilterCategories | All filter categories (for menu construction) | |
| TArray< TSharedRef< FFilterBase< FilterType > > > | AllFrontendFilters | All possible filter objects | |
| bool | bCanChangeOrientation | Whether the orientation can be changed after initailization | |
| bool | bPinAllFrontendFilters | Whether to pin all front end filters by default. | |
| bool | bUseSectionsForCategories | Whether to use submenus or sections for categories in the filter menu | |
| FCreateTextFilter | CreateTextFilter | A delegate used to create a TTextFilter for FilterType | |
| TArray< TSharedRef< ICustomTextFilter< FilterType > > > | CustomTextFilters | Custom text filters that a user can create | |
| TWeakPtr< SWindow > | CustomTextFilterWindow | The window containing the custom text filter dialog | |
| EFilterBarLayout | FilterBarLayout | The current Filter Layout being used | |
| TSharedPtr< SWidgetSwitcher > | FilterBox | The widget switcher containing the horizontal and vertical filter widgets | |
| EFilterPillStyle | FilterPillStyle | Determines how each individual pill looks like | |
| TArray< TSharedRef< SFilter > > | Filters | All SFilters in the list | |
| TSharedPtr< SWrapBox > | HorizontalFilterBox | The horizontal wrap box which contains all the filters (used in the horizontal layout) | |
| FOnExtendAddFilterMenu | OnExtendAddFilterMenu | Delegate to extend the AddFilter Menu | |
| FOnFilterChanged | OnFilterChanged | Delegate for when filters have changed | |
| TSharedPtr< SScrollBox > | VerticalFilterBox | The vertical scroll box which contains all the filters (used in the vertical layout) |