You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
28 lines
561 B
C++
28 lines
561 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 SSimpleButton : public SButton
|
|
{
|
|
public:
|
|
|
|
SLATE_BEGIN_ARGS(SSimpleButton)
|
|
{}
|
|
/** The text to display in the button. */
|
|
SLATE_ATTRIBUTE(FText, Text)
|
|
|
|
SLATE_ATTRIBUTE(const FSlateBrush*, Icon)
|
|
|
|
/** The clicked handler. */
|
|
SLATE_EVENT(FOnClicked, OnClicked)
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
SSimpleButton() {}
|
|
|
|
void Construct(const FArguments& InArgs);
|
|
}; |