mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
TextInputTarget: Improve IME support on Android
This commit is contained in:
parent
5ed4b19e4d
commit
da38c1ed2a
22 changed files with 1796 additions and 928 deletions
|
|
@ -336,6 +336,28 @@ namespace juce
|
|||
#include "native/juce_linux_FileChooser.cpp"
|
||||
|
||||
#elif JUCE_ANDROID
|
||||
|
||||
namespace juce
|
||||
{
|
||||
static jobject makeAndroidRect (Rectangle<int> r)
|
||||
{
|
||||
return getEnv()->NewObject (AndroidRect,
|
||||
AndroidRect.constructor,
|
||||
r.getX(),
|
||||
r.getY(),
|
||||
r.getRight(),
|
||||
r.getBottom());
|
||||
}
|
||||
|
||||
static jobject makeAndroidPoint (Point<int> p)
|
||||
{
|
||||
return getEnv()->NewObject (AndroidPoint,
|
||||
AndroidPoint.create,
|
||||
p.getX(),
|
||||
p.getY());
|
||||
}
|
||||
} // namespace juce
|
||||
|
||||
#include "juce_core/files/juce_common_MimeTypes.h"
|
||||
#include "native/accessibility/juce_android_Accessibility.cpp"
|
||||
#include "native/juce_android_Windowing.cpp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue