Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Input/SCheckBox.h |
Include |
#include "Widgets/Input/SCheckBox.h" |
class SCheckBox : public SCompoundWidget
Check box Slate control
Name | Description | ||
---|---|---|---|
|
const FSlateBru... |
BackgroundHoveredImage |
Image to use for the checkbox background when hovered |
|
const FSlateBru... |
BackgroundImage |
Image to use for the checkbox background |
|
const FSlateBru... |
BackgroundPressedImage |
Image to use for the checkbox background when pressed |
|
bCheckBoxContentUsesAutoWidth |
Whether or not the checkbox content is arranged using auto-width when in checkbox mode. |
|
|
bIsFocusable |
When true, this checkbox will be keyboard focusable. Defaults to true. |
|
|
bIsPressed |
True if this check box is currently in a pressed state |
|
|
TAttribute< FSl... |
BorderBackgroundColorOverride |
Overrides border background color in the widget style, if set |
|
CheckBoxTypeOverride |
Overrides checkbox type in the widget style, if set |
|
|
const FSlateBru... |
CheckedHoveredImage |
Image to use when the checkbox is checked and hovered |
|
const FSlateBru... |
CheckedImage |
Image to use when the checkbox is checked |
|
const FSlateBru... |
CheckedPressedImage |
Image to use when the checkbox is checked and pressed |
|
CheckedSound |
The Sound to play when the check box is checked |
|
|
ClickMethod |
Sets whether a click should be triggered on mouse down, mouse up, or that both a mouse down and up are required. |
|
|
TSharedPtr< SBo... |
ContentContainer |
When in toggle button mode, this will hold the pointer to the toggle button's border |
|
TAttribute< FSl... |
ForegroundColorOverride |
Overrides foreground color in the widget style, if set |
|
HorizontalAlignment |
Horiz align setting if in togglebox mode |
|
|
HoveredSound |
The Sound to play when the check box is hovered |
|
|
TAttribute< ECh... |
IsCheckboxChecked |
Are we checked |
|
OnCheckStateChanged |
Delegate called when the check box changes state |
|
|
OnGetMenuContent |
Delegate to execute to get the menu content of this button |
|
|
TAttribute< FMa... |
PaddingOverride |
Overrides padding in the widget style, if set |
|
TEnumAsByte< EB... |
PressMethod |
How should the button be clicked with keyboard/controller button events? |
|
const FCheckBox... |
Style |
|
|
TEnumAsByte< EB... |
TouchMethod |
How should the button be clicked with touch events? |
|
const FSlateBru... |
UncheckedHoveredImage |
Image to use when the checkbox is unchecked and hovered |
|
const FSlateBru... |
UncheckedImage |
Image to use when the checkbox is unchecked |
|
const FSlateBru... |
UncheckedPressedImage |
Image to use when the checkbox is unchecked and pressed |
|
UncheckedSound |
The Sound to play when the check box is unchecked |
|
|
const FSlateBru... |
UndeterminedHoveredImage |
Image to use when the checkbox is in an ambiguous state and hovered |
|
const FSlateBru... |
UndeterminedImage |
Image to use when the checkbox is in an ambiguous state |
|
const FSlateBru... |
UndeterminedPressedImage |
Image to use when the checkbox is in an ambiguous state and pressed |
Name | Description | |
---|---|---|
|
SCheckBox() |
Name | Description | ||
---|---|---|---|
|
BuildCheckBox ( |
Rebuilds the checkbox based on the current ESlateCheckBoxType |
|
|
Construct ( |
Construct this widget |
|
|
const FSlate... |
GetBackgroundHoveredImage() |
|
|
const FSlate... |
GetBackgroundImage() |
|
|
const FSlate... |
GetBackgroundPressedImage() |
|
|
const FSlate... |
GetCheckedHoveredImage() |
|
|
const FSlate... |
GetCheckedImage() |
|
|
const FSlate... |
GetCheckedPressedImage() |
|
|
ECheckBoxSta... |
GetCheckedState() |
|
|
TEnumAsByte<... |
GetClickMethodFromInputType ( |
Utility function to translate other input click methods to regular ones. |
|
const FSlate... |
GetUncheckedHoveredImage() |
|
|
const FSlate... |
GetUncheckedImage() |
|
|
const FSlate... |
GetUncheckedPressedImage() |
|
|
const FSlate... |
GetUndeterminedHoveredImage() |
|
|
const FSlate... |
GetUndeterminedImage() |
|
|
const FSlate... |
GetUndeterminedPressedImage() |
|
|
IsChecked() |
Returns true if the checkbox is currently checked |
|
|
IsPreciseTapOrClick ( |
Utility function to determine if the incoming mouse event is for a precise tap or click |
|
|
IsPressed() |
Returns true if this button is currently pressed |
|
|
const FSlate... |
OnGetBackgroundImage() |
Attribute getter for the background image |
|
OnGetBorderBackgroundColor() |
Attribute getter for the border background color |
|
|
ESlateCheckB... |
OnGetCheckBoxType() |
Attribute getter for the checkbox type |
|
const FSlate... |
OnGetCheckImage() |
Gets the check image to display for the current state of the check box |
|
OnGetPadding() |
Attribute getter for the padding |
|
|
PlayCheckedSound() |
Play the checked sound |
|
|
PlayHoverSound() |
Play the hovered sound |
|
|
PlayUncheckedSound() |
Play the unchecked sound |
|
|
SetCheckedHoveredImage ( |
See the CheckedHoveredImage attribute |
|
|
SetCheckedImage ( |
See the CheckedImage attribute |
|
|
SetCheckedPressedImage ( |
See the CheckedPressedImage attribute |
|
|
SetClickMethod ( |
||
|
SetContent ( |
See the Content slot |
|
|
SetIsChecked ( |
See the IsChecked attribute |
|
|
SetPressMethod ( |
||
|
SetStyle ( |
See the Style attribute |
|
|
SetTouchMethod ( |
||
|
SetUncheckedHoveredImage ( |
See the UncheckedHoveredImage attribute |
|
|
SetUncheckedImage ( |
See the UncheckedImage attribute |
|
|
SetUncheckedPressedImage ( |
See the UncheckedPressedImage attribute |
|
|
SetUndeterminedHoveredImage ( |
See the UndeterminedHoveredImage attribute |
|
|
SetUndeterminedImage ( |
See the UndeterminedImage attribute |
|
|
SetUndeterminedPressedImage ( |
See the UndeterminedPressedImage attribute |
|
|
ToggleCheckedState() |
Toggles the checked state for this check box, fire events as needed |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
CreateAccessibleWidget() |
|
|
GetForegroundColor() |
||
|
IsInteractable() |
||
|
OnKeyDown |
Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
|
|
OnKeyUp |
Called after a key is released when this widget has focus |
|
|
OnMouseButtonDoubleClick ( |
||
|
OnMouseButtonDown ( |
||
|
OnMouseButtonUp ( |
||
|
OnMouseEnter ( |
The system will use this event to notify a widget that the cursor has entered it. |
|
|
OnMouseLeave ( |
The system will use this event to notify a widget that the cursor has left it. |
|
|
SupportsKeyboardFocus() |
Name |
Description |
|
---|---|---|
|
FArguments |