class EE::Window::InputMethod¶
Overview¶
#include <inputmethod.hpp> class InputMethod { public: // typedefs typedef std::function<void(const String&, Int32, Int32)> TextEditingCb; // structs struct State; // methods void setLocation(Rect rect); bool isEditing() const; void reset(); void stop(); void onTextEditing(const String& text, const Int32& start, const Int32& length); const InputMethod::State& getState() const; void draw(const Vector2f& screenPos, const Float& lineHeight, const FontStyleConfig& fontStyle, const Color& lineColor = Color::Transparent, const Color& backgroundColor = Color::Transparent, bool drawText = false); Uint32 addTextEditingCb(TextEditingCb cb); void removeTextEditingCb(Uint32 cbId); };
Detailed Documentation¶
Methods¶
void setLocation(Rect rect)
Queues the text-input candidate location. Backend updates are coalesced globally and limited to one every 50 ms by default. Set EEPP_IME_LOCATION_UPDATE_INTERVAL_MS to a non-negative integer to override the interval (values are capped at 65535 ms); 0 applies the latest location once per rendered frame.