DreamGUI
类参考

FDreamToggleStyle

What a toggle looks like, separated from what it is.

本页由 DreamGUIReferenceDocs commandlet 从反射生成,正文是头文件注释的原文(英文),所以不翻译——这样它永远和代码一致。概念讲解见核心概念。

Declared in Public/Controls/DreamControlStyles.h.

What a toggle looks like, separated from what it is.

This is the FButtonStyle shape, and it exists for the reason Slate's does: the control assembles itself, so every appearance decision has to be a knob or it is a fork. The box and the tick have separate colour sets because they carry separate transitions -- the pointer one tints the box, the checked one tints the tick, and one visual cannot hold both.

Properties

NameTypeCategoryIn the details panelFrom BlueprintDescription
BoxSizeFVector2DToggle Styleyesread / write
TickSizeFVector2DToggle Styleyesread / write
BoxNormalFColorToggle Styleyesread / write
BoxHoveredFColorToggle Styleyesread / write
BoxPressedFColorToggle Styleyesread / write
BoxDisabledFColorToggle Styleyesread / write
BoxFocusedFColorToggle Styleyesread / write
TransitionDurationfloatToggle Styleyesread / write
TickCheckedFColorToggle Styleyesread / write
TickUncheckedFColorToggle Styleyesread / write
CornerRadiusfloatToggle Styleyesread / write
BoxBrushFDreamUIFaceBrushToggle Styleyesread / write
CheckedBrushFDreamUIFaceBrushToggle Styleyesread / write
UncheckedBrushFDreamUIFaceBrushToggle Styleyesread / write
UndeterminedBrushFDreamUIFaceBrushToggle Styleyesread / write
StateFacesFDreamUIStateFacesToggle Styleyesread / write

本页目录