Files
UnrealEngineUWP/Engine/Source/Developer/ToolWidgets/Public/SPrimaryButton.h

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);
};