UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CEFImeHandler.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7#if WITH_CEF3 && !PLATFORM_LINUX
8
9#include "Widgets/SWidget.h"
10
11#if PLATFORM_WINDOWS
14#endif
15#pragma push_macro("OVERRIDE")
16#undef OVERRIDE // cef headers provide their own OVERRIDE macro
18#if PLATFORM_APPLE
20#endif
21#include "include/cef_client.h"
22#include "include/cef_values.h"
23#if PLATFORM_APPLE
25#endif
27#pragma pop_macro("OVERRIDE")
28#if PLATFORM_WINDOWS
31#endif
32#include "Layout/Geometry.h"
33
37class SWidget;
38
40 : public TSharedFromThis<FCEFImeHandler>
41{
42public:
44
45 void UnbindCefBrowser();
47 void SetFocus(bool bHasFocus);
48 void UpdateCachedGeometry(const FGeometry& AllottedGeometry);
49
56 void CEFCompositionRangeChanged(const CefRange& SelectionRange, const CefRenderHandler::RectList& CharacterBounds);
57
67
75
76 // FWebImeHandler Interface
77
78 void BindInputMethodSystem(ITextInputMethodSystem* InTextInputMethodSystem);
79 void UnbindInputMethodSystem();
80
81
82private:
83
84 bool IsValid()
85 {
86 return InternalCefBrowser.get() != nullptr;
87 }
88
89 void InitContext();
90 void DeactivateContext();
91 void DestroyContext();
92
95
98
100
101 ITextInputMethodSystem* TextInputMethodSystem;
102
104 TSharedPtr<FCEFTextInputMethodContext> TextInputMethodContext;
105
107 TSharedPtr<ITextInputMethodChangeNotifier> TextInputMethodChangeNotifier;
108
109 // Allow IME context to access functions only it needs.
110 friend class FCEFTextInputMethodContext;
111};
112
113#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define THIRD_PARTY_INCLUDES_START
Definition GenericPlatformCompilerPreSetup.h:63
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
Definition ITextInputMethodSystem.h:147
Definition ITextInputMethodSystem.h:169
Definition SWidget.h:165
Definition SharedPointer.h:1640
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition SharedPointer.h:1295
Definition Voronoi.cpp:10
Definition Geometry.h:40