class EE::Window::InputMethod

#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);
};