Stream Chat Unreal SDK
Loading...
Searching...
No Matches
UIconButton Class Reference

A button with an icon which can be disabled and themed. More...

#include <IconButton.h>

Inherits UStreamWidget.

Public Member Functions

void SetEnabled (bool bInEnabled)
 
void SetIconFromTexture (UTexture2D *Texture)
 
void SetIconPadding (const FMargin &InIconPadding)
 
void SetIconPaletteColor (const FName &InPaletteColor)
 
void SetEnabledBackgroundColor (const FName &InPaletteColor)
 
void SetDisabledBackgroundColor (const FName &InPaletteColor)
 

Public Attributes

UTexture2D * IconTexture
 
UTexture2D * DisabledIconTexture
 
FMargin IconPadding
 
FName IconPaletteColor = TEXT("text-high-emphasis")
 
FName EnabledBackgroundColor = TEXT("accent-primary")
 
FName DisabledBackgroundColor = TEXT("disabled")
 
bool bEnabled = true
 
FOnButtonClickedEvent OnClicked
 

Protected Attributes

UButton * Button
 
UImage * Icon
 
FButtonStyle EnabledStyle
 
FButtonStyle DisabledStyle
 

Detailed Description

A button with an icon which can be disabled and themed.

UMG disabling affects the style in a way which we can't control.

Member Data Documentation

◆ OnClicked

FOnButtonClickedEvent UIconButton::OnClicked

Called when the button is clicked


The documentation for this class was generated from the following files: