Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/CheckBox.h |
Include |
#include "Components/CheckBox.h" |
class UCheckBox : public UContentWidget
The checkbox widget allows you to display a toggled state of 'unchecked', 'checked' and 'indeterminable. You can use the checkbox for a classic checkbox, or as a toggle button, or as radio buttons.
Single Child Toggle
Name | Description | ||
---|---|---|---|
|
CheckedState |
Whether the check box is currently in a checked state |
|
|
CheckedStateDelegate |
A bindable delegate for the IsChecked. |
|
|
TEnumAsByte< EB... |
ClickMethod |
The type of mouse action required by the user to trigger the buttons 'Click' |
|
TEnumAsByte< EH... |
HorizontalAlignment |
How the content of the toggle button should align within the given space |
|
IsFocusable |
Sometimes a button should only be mouse-clickable and never keyboard focusable. |
|
|
K2_Cache_CheckedState |
||
|
TSharedPtr< SCh... |
MyCheckbox |
|
|
OnCheckStateChanged |
Called when the checked state has changed |
|
|
TEnumAsByte< EB... |
PressMethod |
The type of keyboard/gamepad button press action required by the user to trigger the buttons 'Click' |
|
TEnumAsByte< EB... |
TouchMethod |
The type of touch action required by the user to trigger the buttons 'Click' |
|
WidgetStyle |
The checkbox bar style |
Name | Description | |
---|---|---|
|
UCheckBox ( |
Name | Description | ||
---|---|---|---|
|
ECheckBoxSta... |
GetCheckedState() |
Returns the full current checked state. |
|
IsChecked() |
Returns true if the checkbox is currently checked |
|
|
IsPressed() |
Returns true if this button is currently pressed |
|
|
ECheckBoxSta... |
K2_Gate_CheckedState() |
|
|
SetCheckedState ( |
Sets the checked state. |
|
|
SetClickMethod ( |
||
|
SetIsChecked ( |
Sets the checked state. |
|
|
SetPressMethod ( |
||
|
SetTouchMethod ( |
||
|
SlateOnCheckStateChangedCallback ( |
Name | Description | ||
---|---|---|---|
|
OnSlotAdded ( |
||
|
OnSlotRemoved ( |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
GetAccessibleWidget() |
Gets the widget that accessibility properties should synchronize to. |
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
TSharedRef< ... |
RebuildDesignWidget ( |
|
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
PostLoad() |
Begin UObject. |
Name | Description | ||
---|---|---|---|
|
BorderBackgroundColor_DEPRECATED |
The color of the background border |
|
|
TObjectPtr< USl... |
CheckedHoveredImage_DEPRECATED |
Image to use when the checkbox is checked and hovered |
|
TObjectPtr< USl... |
CheckedImage_DEPRECATED |
Image to use when the checkbox is checked |
|
TObjectPtr< USl... |
CheckedPressedImage_DEPRECATED |
Image to use when the checkbox is checked and pressed |
|
Padding_DEPRECATED |
Spacing between the check box image and its content |
|
|
TObjectPtr< USl... |
Style_DEPRECATED |
Style of the check box |
|
TObjectPtr< USl... |
UncheckedHoveredImage_DEPRECATED |
Image to use when the checkbox is unchecked and hovered |
|
TObjectPtr< USl... |
UncheckedImage_DEPRECATED |
Image to use when the checkbox is unchecked |
|
TObjectPtr< USl... |
UncheckedPressedImage_DEPRECATED |
Image to use when the checkbox is unchecked and pressed |
|
TObjectPtr< USl... |
UndeterminedHoveredImage_DEPRECATED |
Image to use when the checkbox is checked and hovered |
|
TObjectPtr< USl... |
UndeterminedImage_DEPRECATED |
Image to use when the checkbox is in an ambiguous state and hovered |
|
TObjectPtr< USl... |
UndeterminedPressedImage_DEPRECATED |
Image to use when the checkbox is in an ambiguous state and pressed |