UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CapturedCefBuffer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6
7#define UE_WITH_CAPTURED_CEF_BUFFER (WITH_ENGINE && WITH_CEF3)
8
9
10#include "Layout/Geometry.h"
12
13#if UE_WITH_CAPTURED_CEF_BUFFER
14#include "Engine/Texture2D.h"
16#include "Styling/SlateBrush.h"
17#endif
18
19#include "CapturedCefBuffer.generated.h"
20
21
22USTRUCT()
24{
26
27
28public:
29
30
31 bool SetBufferAsB8G8R8A8(const void* InBufferB8G8R8A8, const int32 InBufferWidth, const int32 InBufferHeight, const float InViewportDPIScaleFactor, const bool bDoSkipBadBufferTest);
32 bool ClearBuffer();
33
34 bool MaybeUpdatePaintObjects();
35 bool ClearPaintObjects();
36 int32 PaintCentered(const FGeometry& AllottedGeometry, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle) const;
37
38 bool HasPaintObjects() const;
39
40
41private:
42
43
44#if UE_WITH_CAPTURED_CEF_BUFFER
45
46
47 bool IsBufferValid() const;
49
50
53
54 float ViewportDPIScaleFactor = 1.0f;
55
56 bool bDoesNeedNewPaintObjects = false;
57 bool bHasPaintObjects = false;
60
61
62#endif
63};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition DrawElements.h:220
Definition WidgetStyle.h:15
Definition Array.h:670
Definition StrongObjectPtrTemplates.h:26
Definition CapturedCefBuffer.h:24
Definition Geometry.h:40
Definition SlateBrush.h:239
Definition IntPoint.h:25
static const TIntPoint ZeroValue
Definition IntPoint.h:45