You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
29 lines
615 B
C++
29 lines
615 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Framework/SlateDelegates.h"
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
#include "Widgets/Input/SButton.h"
|
|
|
|
class TOOLWIDGETS_API SPrimaryButton : public SButton
|
|
{
|
|
public:
|
|
|
|
SLATE_BEGIN_ARGS(SPrimaryButton)
|
|
{}
|
|
/** The text to display in the button. */
|
|
SLATE_ATTRIBUTE(FText, Text)
|
|
|
|
/** Optional icon to display in the button. */
|
|
SLATE_ATTRIBUTE(const FSlateBrush*, Icon)
|
|
|
|
/**
|
|
* Called when the button is clicked
|
|
*/
|
|
SLATE_EVENT(FOnClicked, OnClicked)
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs);
|
|
}; |