Files
UnrealEngine/Engine/Source/Runtime/Slate/Public/Framework/Text/BaseTextLayoutMarshaller.h
2025-05-18 13:04:45 +08:00

52 lines
790 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Text/ITextLayoutMarshaller.h"
/**
* Base class implementing some common functionality for all text marshallers
*/
class FBaseTextLayoutMarshaller : public ITextLayoutMarshaller
{
public:
//~ Begin ITextLayoutMarshaller Interface
virtual bool RequiresLiveUpdate() const override
{
return false;
}
virtual void MakeDirty() override
{
bIsDirty = true;
}
virtual void ClearDirty() override
{
bIsDirty = false;
}
virtual bool IsDirty() const override
{
return bIsDirty;
}
//~ End ITextLayoutMarshaller Interface
protected:
FBaseTextLayoutMarshaller()
: bIsDirty(false)
{
}
virtual ~FBaseTextLayoutMarshaller()
{
}
private:
bool bIsDirty;
};