A widget that displays a text label and accepts a single widget as a child.
More...
#include <WSLabel.h>
|
FText | GetLabelText () const |
| Returns the labels text.
|
|
FWSTextStyle | GetLabelOptions () const |
| Returns the text options for the label.
|
|
EWSPlacement | GetLabelPlacement () const |
| Returns the placement of the label in relevance to the slotted widget.
|
|
float | GetLabelPadding () const |
| Returns the padding between the label and the slotted widget.
|
|
UWidget * | GetSlottedWidget () const |
| Returns the slotted widget.
|
|
void | SetLabelText (FText NewText) |
| Set the text displayed on the label.
|
|
void | SetLabelOptions (FWSTextStyle NewLabelOptions) |
| Set the text options for the label. More...
|
|
void | SetLabelPlacement (EWSPlacement NewPlacement) |
| Set the placement of the label in relevance to the slotted widget. More...
|
|
void | SetLabelPadding (float NewPadding) |
| Set the padding between the label and the slotted widget. More...
|
|
FVector2D | GetDimensions () const |
| Returns the current X and Y dimensions of the Widget. More...
|
|
int32 | GetBorderRadius () const |
| Returns the current border radius of the Widget. More...
|
|
void | ForceStyleUpdate () |
| Refresh the dynamic styling of the Widget Studio widget.
|
|
void | SetSizeModifier (ESizeModifier InSizeModifier) |
| Set the size modifier of the Widget Studio widget.
|
|
|
virtual TSharedRef< SWidget > | RebuildWidget () override |
|
virtual int32 | NativePaint (const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override |
|
virtual void | SynchronizeProperties () override |
|
virtual void | InitializeStyling () override |
|
virtual void | UpdateStyling () override |
|
virtual void | NativeOnMouseEnter (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
|
virtual void | NativeOnMouseLeave (const FPointerEvent &InMouseEvent) override |
|
virtual void | NativeOnMouseCaptureLost (const FCaptureLostEvent &CaptureLostEvent) override |
|
|
UOverlay * | Retainer = nullptr |
|
UHorizontalBox * | HBox = nullptr |
|
UVerticalBox * | VBox = nullptr |
|
UWidgetStudioText * | TextItem = nullptr |
|
UNamedSlot * | WidgetSlot = nullptr |
|
FText | LabelText = FText().FromString("Label") |
| The text to display on the label.
|
|
FWSTextStyle | TextStyle = FWSTextStyle{} |
| Setup how the text is styled.
|
|
EWSPlacement | LabelPlacement = EWSPlacement::Left |
| Where to place the label in relevance to the child widget.
|
|
float | LabelPadding = 30.0f |
| The spacing/padding between the label and the widget. More...
|
|
|
FWSBaseHoverStateDelegate | OnHoverStateChanged |
| Called when the hover state has been changed.
|
|
bool | bCanOverrideDimensions = true |
| Used to enable or disable dimension override's.
|
|
bool | bCanOverrideBorderRadius = true |
| Used to enable or disable dimension override's.
|
|
FVector2D | MinimumDimensions = FVector2D(50, 7) |
| The minimum dimensions of the widget. More...
|
|
bool | bDisablePainting = false |
| Used for debugging. More...
|
|
float | AnimationTime = 7 |
| The animation interpolation speed. More...
|
|
ESizeModifier | SizeModifier = ESizeModifier::Regular |
| Quickly modify the overall size of the widget. More...
|
|
FVector2D | OverrideDimensions = FVector2D(0, 0) |
| Manually adjust the X and Y dimensions of the widget. More...
|
|
int32 | OverrideBorderRadius = -1 |
| Manually adjust the border radius of the widget. More...
|
|
A widget that displays a text label and accepts a single widget as a child.
◆ InitializeStyling()
void UWidgetStudioLabel::InitializeStyling |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ SetLabelOptions()
void UWidgetStudioLabel::SetLabelOptions |
( |
FWSTextStyle |
NewLabelOptions | ) |
|
Set the text options for the label.
- Parameters
-
NewLabelOptions | The text options for the label. |
◆ SetLabelPadding()
void UWidgetStudioLabel::SetLabelPadding |
( |
float |
NewPadding | ) |
|
Set the padding between the label and the slotted widget.
- Parameters
-
NewPadding | The padding between the label and the slotted widget. |
◆ SetLabelPlacement()
void UWidgetStudioLabel::SetLabelPlacement |
( |
EWSPlacement |
NewPlacement | ) |
|
Set the placement of the label in relevance to the slotted widget.
- Parameters
-
NewPlacement | The placement of the label in relevance to the slotted widget. |
◆ UpdateStyling()
void UWidgetStudioLabel::UpdateStyling |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ LabelPadding
float UWidgetStudioLabel::LabelPadding = 30.0f |
|
protected |
The spacing/padding between the label and the widget.
The documentation for this class was generated from the following files:
- src/WidgetStudio/Source/WidgetStudioRuntime/Public/Widgets/Basic/WSLabel.h
- src/WidgetStudio/Source/WidgetStudioRuntime/Private/Widgets/Basic/WSLabel.cpp