engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FButtonStyle结构体 参考

Represents the appearance of an SButton 更多...

#include <SlateTypes.h>

+ 类 FButtonStyle 继承关系图:

Public 成员函数

virtual void GetResources (TArray< const FSlateBrush * > &OutBrushes) const override
 Gets the brush resources associated with this style. 更多...
 
virtual const FName GetTypeName () const override
 Gets the name of this style. 更多...
 
void UnlinkColors ()
 Unlinks all colors in this style. 更多...
 
- Public 成员函数 继承自 FSlateWidgetStyle
 FSlateWidgetStyle ()
 Default constructor.
 
virtual void GetResources (TArray< const FSlateBrush * > &OutBrushes) const
 Gets the brush resources associated with this style. 更多...
 
virtual const FName GetTypeName () const
 Gets the name of this style. 更多...
 
virtual ~FSlateWidgetStyle ()
 Virtual Destructor.
 

Public 属性

FSlateBrush Disabled
 Button appearance when disabled, by default this is set to an invalid resource when that is the case default disabled drawing is used.
 
FSlateBrush Hovered
 Button appearance when hovered
 
FSlateSound HoveredSlateSound
 The sound the button should play when initially hovered over
 
FSlateBrush Normal
 Button appearance when the button is not hovered or pressed
 
FMargin NormalPadding
 Padding that accounts for the border in the button's background image. 更多...
 
FSlateBrush Pressed
 Button appearance when pressed
 
FMargin PressedPadding
 Same as NormalPadding but used when the button is pressed. 更多...
 
FSlateSound PressedSlateSound
 The sound the button should play when pressed
 

详细描述

Represents the appearance of an SButton

成员函数说明

◆ GetResources()

virtual void FButtonStyle::GetResources ( TArray< const FSlateBrush * > &  OutBrushes) const
overridevirtual

Gets the brush resources associated with this style.

This method must be implemented by inherited structures.

参数
OutBrushesThe brush resources.

重载 FSlateWidgetStyle .

◆ GetTypeName()

virtual const FName FButtonStyle::GetTypeName ( ) const
inlineoverridevirtual

Gets the name of this style.

This method must be implemented by inherited structures.

返回
Widget style name.

重载 FSlateWidgetStyle .

◆ UnlinkColors()

void FButtonStyle::UnlinkColors ( )
inline

Unlinks all colors in this style.

参见
FSlateColor::Unlink

类成员变量说明

◆ NormalPadding

FMargin FButtonStyle::NormalPadding

Padding that accounts for the border in the button's background image.

When this is applied, the content of the button should appear flush with the button's border. Use this padding when the button is not pressed.

◆ PressedPadding

FMargin FButtonStyle::PressedPadding

Same as NormalPadding but used when the button is pressed.

Allows for moving the content to match any "movement" in the button's border image.


该结构体的文档由以下文件生成: