engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
UCheckBox类 参考

The checkbox widget allows you to display a toggled state of 'unchecked', 'checked' and 'indeterminable. 更多...

#include <CheckBox.h>

继承自 UContentWidget .

Public 成员函数

ECheckBoxState GetCheckedState () const
 Returns the full current checked state.
 
bool IsChecked () const
 Returns true if the checkbox is currently checked
 
bool IsPressed () const
 Returns true if this button is currently pressed
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
void SetCheckedState (ECheckBoxState InCheckedState)
 Sets the checked state.
 
void SetIsChecked (bool InIsChecked)
 Sets the checked state.
 
virtual void SynchronizeProperties () override
 Applies all properties to the native widget if possible. 更多...
 

Public 属性

FSlateColor BorderBackgroundColor_DEPRECATED
 The color of the background border
 
USlateBrushAsset * CheckedHoveredImage_DEPRECATED
 Image to use when the checkbox is checked and hovered
 
USlateBrushAsset * CheckedImage_DEPRECATED
 Image to use when the checkbox is checked
 
USlateBrushAsset * CheckedPressedImage_DEPRECATED
 Image to use when the checkbox is checked and pressed
 
ECheckBoxState CheckedState
 Whether the check box is currently in a checked state
 
FGetCheckBoxState CheckedStateDelegate
 A bindable delegate for the IsChecked.
 
TEnumAsByte< EButtonClickMethod::Type > ClickMethod
 The type of mouse action required by the user to trigger the buttons 'Click'
 
TEnumAsByte< EHorizontalAlignment > HorizontalAlignment
 How the content of the toggle button should align within the given space
 
bool IsFocusable
 Sometimes a button should only be mouse-clickable and never keyboard focusable.
 
FOnCheckBoxComponentStateChanged OnCheckStateChanged
 Called when the checked state has changed
 
FMargin Padding_DEPRECATED
 Spacing between the check box image and its content
 
TEnumAsByte< EButtonPressMethod::Type > PressMethod
 The type of keyboard/gamepad button press action required by the user to trigger the buttons 'Click'
 
USlateWidgetStyleAsset * Style_DEPRECATED
 Style of the check box
 
TEnumAsByte< EButtonTouchMethod::Type > TouchMethod
 The type of touch action required by the user to trigger the buttons 'Click'
 
USlateBrushAsset * UncheckedHoveredImage_DEPRECATED
 Image to use when the checkbox is unchecked and hovered
 
USlateBrushAsset * UncheckedImage_DEPRECATED
 Image to use when the checkbox is unchecked
 
USlateBrushAsset * UncheckedPressedImage_DEPRECATED
 Image to use when the checkbox is unchecked and pressed
 
USlateBrushAsset * UndeterminedHoveredImage_DEPRECATED
 Image to use when the checkbox is checked and hovered
 
USlateBrushAsset * UndeterminedImage_DEPRECATED
 Image to use when the checkbox is in an ambiguous state and hovered
 
USlateBrushAsset * UndeterminedPressedImage_DEPRECATED
 Image to use when the checkbox is in an ambiguous state and pressed
 
FCheckBoxStyle WidgetStyle
 The checkbox bar style
 

Protected 成员函数

virtual TSharedRef< SWidget > RebuildWidget () override
 Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.
 

详细描述

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.

成员函数说明

◆ PostLoad()

virtual void UCheckBox::PostLoad ( )
overridevirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UPanelWidget .

◆ SynchronizeProperties()

virtual void UCheckBox::SynchronizeProperties ( )
overridevirtual

Applies all properties to the native widget if possible.

This is called after a widget is constructed. It can also be called by the editor to update modified state, so ensure all initialization to a widgets properties are performed here, or the property and visual state may become unsynced.

重载 UWidget .


该类的文档由以下文件生成: