FCheckBoxStyle

Represents the appearance of an [SCheckBox](API\Runtime\Slate\Widgets\Input\SCheckBox)

Windows
MacOS
Linux

Inheritance Hierarchy

FSlateWidgetStyle

FCheckBoxStyle

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Styling/SlateTypes.h

Include

#include "Styling/SlateTypes.h"

Syntax

struct FCheckBoxStyle : public FSlateWidgetStyle

Remarks

Represents the appearance of an SCheckBox

Variables

Name Description

Public variable

FSlateColor

 

BorderBackgroundColor

BorderBackgroundColor refers to the actual color and opacity of the supplied border image on toggle buttons

Public variable

TEnumAsByte< ES...

 

CheckBoxType

The visual type of the checkbox

Public variable

FSlateBrush

 

CheckedHoveredImage

CheckBox appearance when checked and hovered

Public variable

FSlateBrush

 

CheckedImage

CheckBox appearance when the CheckBox is checked

Public variable

FSlateBrush

 

CheckedPressedImage

CheckBox appearance when checked and pressed

Public variable

FSlateSound

 

CheckedSlateSound

The sound the check box should play when checked

Public variable

FSlateColor

 

ForegroundColor

The foreground color

Public variable

FSlateSound

 

HoveredSlateSound

The sound the check box should play when initially hovered over

Public variable

FMargin

 

Padding

Padding

Public variable

FSlateBrush

 

UncheckedHoveredImage

CheckBox appearance when the CheckBox is unchecked and hovered

Public variable

FSlateBrush

 

UncheckedImage

CheckBox appearance when the CheckBox is unchecked (normal)

Public variable

FSlateBrush

 

UncheckedPressedImage

CheckBox appearance when the CheckBox is unchecked and hovered

Public variable

FSlateSound

 

UncheckedSlateSound

The sound the check box should play when unchecked

Public variable

FSlateBrush

 

UndeterminedHoveredImage

CheckBox appearance when CheckBox is undetermined and hovered

Public variable

FSlateBrush

 

UndeterminedImage

CheckBox appearance when the CheckBox is undetermined

Public variable

FSlateBrush

 

UndeterminedPressedImage

CheckBox appearance when CheckBox is undetermined and pressed

Constructors

Name Description

Public function

FCheckBoxStyle()

Destructors

Name Description

Public function Virtual

~FCheckBoxStyle()

Functions

Name Description

Public function Static

const FCheck...

 

GetDefault()

Public function

void

 

PostSerialize

(
    const FArchive& Ar
)

Used to upgrade the deprecated FName sound properties into the new-style FSlateSound properties

Public function

FCheckBoxSty...

 

SetBorderBackgroundColor

(
    const FSlateColor& InBorderBackgro...
)

Public function

FCheckBoxSty...

 

SetCheckBoxType

(
    ESlateCheckBoxType::Type InCheckBox...
)

Public function

FCheckBoxSty...

 

SetCheckedHoveredImage

(
    const FSlateBrush& InCheckedHovere...
)

Public function

FCheckBoxSty...

 

SetCheckedImage

(
    const FSlateBrush& InCheckedImage
)

Public function

FCheckBoxSty...

 

SetCheckedPressedImage

(
    const FSlateBrush& InCheckedPresse...
)

Public function

FCheckBoxSty...

 

SetCheckedSound

(
    const FSlateSound& InCheckedSound
)

Public function

FCheckBoxSty...

 

SetForegroundColor

(
    const FSlateColor& InForegroundCol...
)

Public function

FCheckBoxSty...

 

SetHoveredSound

(
    const FSlateSound& InHoveredSound
)

Public function

FCheckBoxSty...

 

SetPadding

(
    const FMargin& InPadding
)

Public function

FCheckBoxSty...

 

SetUncheckedHoveredImage

(
    const FSlateBrush& InUncheckedHove...
)

Public function

FCheckBoxSty...

 

SetUncheckedImage

(
    const FSlateBrush& InUncheckedImag...
)

Public function

FCheckBoxSty...

 

SetUncheckedPressedImage

(
    const FSlateBrush& InUncheckedPres...
)

Public function

FCheckBoxSty...

 

SetUncheckedSound

(
    const FSlateSound& InUncheckedSoun...
)

Public function

FCheckBoxSty...

 

SetUndeterminedHoveredImage

(
    const FSlateBrush& InUndeterminedH...
)

Public function

FCheckBoxSty...

 

SetUndeterminedImage

(
    const FSlateBrush& InUndeterminedI...
)

Public function

FCheckBoxSty...

 

SetUndeterminedPressedImage

(
    const FSlateBrush& InUndeterminedP...
)

Public function

void

 

UnlinkColors()

Unlinks all colors in this style.

Overridden from FSlateWidgetStyle

Name Description

Public function Virtual Const

void

 

GetResources

(
    TArray< const FSlateBrush* >&...
)

Gets the brush resources associated with this style.

Public function Virtual Const

const FName

 

GetTypeName()

Gets the name of this style.

This method must be implemented by inherited structures.

Constants

Name

Description

TypeName

Deprecated Variables

Name Description

Public variable

FName

 

CheckedSound_DEPRECATED

Public variable

FName

 

HoveredSound_DEPRECATED

Public variable

FName

 

UncheckedSound_DEPRECATED

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