UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateTypes.h File Reference
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "UObject/Class.h"
#include "Styling/SlateColor.h"
#include "Fonts/CompositeFont.h"
#include "Fonts/SlateFontInfo.h"
#include "Layout/Margin.h"
#include "Misc/Attribute.h"
#include "Sound/SlateSound.h"
#include "Styling/SlateBrush.h"
#include "Styling/SlateWidgetStyle.h"
#include "Types/SlateVector2.h"
#include "SlateTypes.generated.h"

Go to the source code of this file.

Classes

struct  FCheckBoxStyle
 
struct  FTextBlockStyle
 
struct  FTextBlockStyle::CompareParams
 
struct  FButtonStyle
 
struct  TStructOpsTypeTraits< FButtonStyle >
 
struct  FComboButtonStyle
 
struct  FComboBoxStyle
 
struct  FHyperlinkStyle
 
struct  FEditableTextStyle
 
struct  FScrollBarStyle
 
struct  FEditableTextBoxStyle
 
struct  FInlineEditableTextBlockStyle
 
struct  FProgressBarStyle
 
struct  FExpandableAreaStyle
 
struct  FSearchBoxStyle
 
struct  FSliderStyle
 
struct  FVolumeControlStyle
 
struct  FInlineTextImageStyle
 
struct  FSpinBoxStyle
 
struct  FSplitterStyle
 
struct  FTableViewStyle
 
struct  FTableRowStyle
 
struct  FTableColumnHeaderStyle
 
struct  FHeaderRowStyle
 
struct  FDockTabStyle
 
struct  FScrollBoxStyle
 
struct  FScrollBorderStyle
 
struct  FWindowStyle
 
class  FInvalidatableBrushAttribute
 
class  USlateTypes
 

Namespaces

namespace  ESlateCheckBoxType
 

Enumerations

enum class  EConsumeMouseWheel : uint8 { WhenScrollingPossible , Always , Never }
 
enum class  ESlateParentWindowSearchMethod : uint8 { ActiveWindow , MainWindow }
 
enum  ESlateCheckBoxType::Type : int { ESlateCheckBoxType::CheckBox , ESlateCheckBoxType::ToggleButton }
 
enum class  ECheckBoxState : uint8 { Unchecked , Checked , Undetermined }
 
enum class  ETextOverflowPolicy : uint8 { Clip = 0 , Ellipsis , MultilineEllipsis , MiddleEllipsis }
 
enum class  ETextTransformPolicy : uint8 { None = 0 , ToLower , ToUpper }
 

Enumeration Type Documentation

◆ ECheckBoxState

enum class ECheckBoxState : uint8
strong

Current state of the check box

Enumerator
Unchecked 

Unchecked

Checked 

Checked

Undetermined 

Neither checked nor unchecked

Examples
/work/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

◆ EConsumeMouseWheel

enum class EConsumeMouseWheel : uint8
strong

Used to determine how we should handle mouse wheel input events when someone scrolls.

Enumerator
WhenScrollingPossible 

Only consume the mouse wheel event when we actually scroll some amount.

Always 

Always consume mouse wheel event even if we don't scroll at all.

Never 

Never consume the mouse wheel

◆ ESlateParentWindowSearchMethod

Used to determine which search method we should use when finding a suitable parent window

Enumerator
ActiveWindow 

Favor using the active window (will fallback to the main window if the active window is unsuitable)

MainWindow 

Favor using the main window

◆ ETextOverflowPolicy

enum class ETextOverflowPolicy : uint8
strong

The different methods that can be used to determine what happens to text when it is longer than its allowed length

Enumerator
Clip 

Overflowing text will be clipped

Ellipsis 

Overflowing text will be replaced with an ellipsis

MultilineEllipsis 

Overflowing text will be replaced with an ellipsis. A partially clipped line on the vertical axis will be totally clipped, and ellipsis displayed on previous line

MiddleEllipsis 

Overflowing text will be replaced with an ellipsis starting from the center
Current Limits:

  • Multiline is not supported
  • RichText is not fully supported
  • Highlight text is not supported
  • Arabic mix with western character is not supported

◆ ETextTransformPolicy

Text transformation policy that can be applied to the text before displaying it.

Enumerator
None 

No transform, just use the given text as-is

ToLower 

Convert the text to lowercase for display

ToUpper 

Convert the text to uppercase for display