FFilterBase

The base class for all Filters that can be used with FilterBar Widgets

Inheritance Hierarchy

References

Module

ToolWidgets

Header

/Engine/Source/Developer/ToolWidgets/Public/Filters/FilterBase.h

Include

#include "Filters/FilterBase.h"

Syntax

template<typename FilterType>
class FFilterBase : public IFilter< FilterType >

Remarks

The base class for all Filters that can be used with FilterBar Widgets

Variables

Name Description

Protected variable

FChangedEvent

 

ChangedEvent

Protected variable

TSharedPtr< FFi...

 

FilterCategory

Protected variable

FSetActiveEvent

 

SetActiveEvent

Constructors

Name Description

Public function

FFilterBase

(
    TSharedPtr< FFilterCategory > InCat...
)

Functions

Name Description

Public function

void

 

ActiveStateChanged

(
    bool bActive
)

Notification that the filter became active or inactive

Protected function Const

void

 

BroadcastChangedEvent()

Public function

TSharedPtr< ...

 

GetCategory()

Public function Const

FLinearColor

 

GetColor()

Returns the color this filter button will be when displayed as a button

Public function Const

FText

 

GetDisplayName()

Returns the human readable name for this filter

Public function Const

FName

 

GetIconName()

Returns the name of the icon to use in menu entries

Public function Const

FString

 

GetName()

Returns the system name for this filter

Public function Const

FText

 

GetToolTipText()

Returns the tooltip for this filter, shown in the filters menu

Public function Const

bool

 

IsInverseFilter()

If true, the filter will be active in the FilterBar when it is inactive in the UI (i.e the filter pill is grayed out) : FFrontendFilter_ShowOtherDevelopers in Content Browser

Public function

void

 

LoadSettings

(
    const FString& IniFilename,
    const FString& IniSection,
    const FString& SettingsString
)

Can be overriden for custom FilterBar subclasses to load settings, currently not implemented in any gneeric Filter Bar

Public function

void

 

ModifyContextMenu

(
    FMenuBuilder& MenuBuilder
)

Called when the right-click context menu is being built for this filter

Public function Const

void

 

SaveSettings

(
    const FString& IniFilename,
    const FString& IniSection,
    const FString& SettingsString
)

Can be overriden for custom FilterBar subclasses to save settings, currently not implemented in any gneeric Filter Bar

Public function

void

 

SetActive

(
    bool bInActive
)

Set this filter as active/inactive

Overridden from IFilter

Name Description

Public function Virtual

FChangedEven...

 

OnChanged()

IFilter implementation.

Classes

Name

Description

Protected class

FSetActiveEvent

This event is broadcast to when this filter is set Active

See Also

FGenericFilterfor a subclass that allows easy creation of filters

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel