You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can context be provided in this function
virtual void Rml::SystemInterface::ActivateKeyboard(Rml::Vector2f caret_position, float line_height) override;
like
virtual void Rml::SystemInterface::ActivateKeyboard(Rml::Context* context, Rml::Vector2f caret_position, float line_height) override;
I need to get context to implement unreal ITextInputMethodContext to use IME
In the following two functions I am missing context
bool FRmlTextInputMethodContext::GetTextBounds(const uint32 BeginIndex, const uint32 Length, FVector2D& Position, FVector2D& Size)
{
if (RmlWidget.IsValid())
{
CUnrealRmlSystemInterface* SystemInterface = static_cast<CUnrealRmlSystemInterface*>(Rml::GetSystemInterface());
if (SystemInterface)
{
//// Let the IME editor follow the cursor
//Position = FVector2D(CachedGeometry.AbsolutePosition.X + ImGuiContext->PlatformImeLastPos.x,
// CachedGeometry.AbsolutePosition.Y + ImGuiContext->PlatformImeLastPos.y + 20);
}
}
return false;
}
void FRmlTextInputMethodContext::EndComposition()
{
if (bIsComposing)
{
bIsComposing = false;
if (RmlWidget.IsValid())
{
CUnrealRmlSystemInterface* SystemInterface = static_cast<CUnrealRmlSystemInterface*>(Rml::GetSystemInterface());
if (SystemInterface)
{
auto CharArray = CompositionString.GetCharArray();
for (int i = 0; i < CharArray.Num(); i++)
{
CharArray[i];
SystemInterface->pro();
}
CompositionString.Empty();
CompositionBeginIndex = 0;
CompositionLength = 0;
SelectionRangeBeginIndex = 0;
SelectionRangeLength = 0;
}
}
}
}
The text was updated successfully, but these errors were encountered:
We don't provide the context here in this function, we don't necessarily assume that a keyboard is tied to a context. You will have to find another way to keep track of it.
Can context be provided in this function
virtual void Rml::SystemInterface::ActivateKeyboard(Rml::Vector2f caret_position, float line_height) override;
like
virtual void Rml::SystemInterface::ActivateKeyboard(Rml::Context* context, Rml::Vector2f caret_position, float line_height) override;
I need to get context to implement unreal ITextInputMethodContext to use IME
In the following two functions I am missing context
bool FRmlTextInputMethodContext::GetTextBounds(const uint32 BeginIndex, const uint32 Length, FVector2D& Position, FVector2D& Size)
{
if (RmlWidget.IsValid())
{
CUnrealRmlSystemInterface* SystemInterface = static_cast<CUnrealRmlSystemInterface*>(Rml::GetSystemInterface());
if (SystemInterface)
{
//// Let the IME editor follow the cursor
//Position = FVector2D(CachedGeometry.AbsolutePosition.X + ImGuiContext->PlatformImeLastPos.x,
// CachedGeometry.AbsolutePosition.Y + ImGuiContext->PlatformImeLastPos.y + 20);
}
}
return false;
}
void FRmlTextInputMethodContext::EndComposition()
{
if (bIsComposing)
{
bIsComposing = false;
}
The text was updated successfully, but these errors were encountered: