Widget Studio
FButtonOptions Struct Reference

Contains the data for a Widget Studio Modern Button. More...

#include <WSModernButton.h>

Public Member Functions

 FButtonOptions (const EButtonContentStyle InContentStyle=EButtonContentStyle::Label, const bool bInIsCheckedStateLocked=false, const FText InText=FText().FromString("New Option"), const EIconItem InIcon=EIconItem::Heart, UTexture2D *InCustomIcon=nullptr)
 

Public Attributes

EButtonContentStyle ContentStyle
 What content to display on the button.
 
FText Text
 The text that will display on the button.
 
EIconItem Icon
 The icon to display from the Icon Set.
 
UTexture2D * CustomIcon
 Use an icon not found in the icon library. More...
 
FText ToolTip
 The text that will displayed a mouse hovers over the button.
 
bool bIsCheckedStateLocked
 Locks the current checked state. More...
 

Detailed Description

Contains the data for a Widget Studio Modern Button.

This is usually in conjunction with a widget that automatically creates multiple buttons (e.g. WSModernTabBar, WSModernComboBox).

Member Data Documentation

◆ bIsCheckedStateLocked

bool FButtonOptions::bIsCheckedStateLocked

Locks the current checked state.

The user will not be able to change the state until this bool is set to false. Requires the bIsCheckable state to be enabled to utilize.

◆ CustomIcon

UTexture2D* FButtonOptions::CustomIcon

Use an icon not found in the icon library.

Clear this when you want to use the icons from the icon library.


The documentation for this struct was generated from the following file: