All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.humbleui.jwm.TextInputClient Maven / Gradle / Ivy

package io.github.humbleui.jwm;

public interface TextInputClient {
    /**
     * 

Get UI rect in screen space for currently edited text region.

* *

This method is called if user currently in complex text input and IME mode types complex characters.

*

Returned rect is used to correctly position IME and system pop-up windows and elements nearly the edited text region.

* * @param selectionStart edited text region string start * @param selectionEnd edited text region string end * @return ui screen rect * * @see Text input example */ UIRect getRectForMarkedRange(int selectionStart, int selectionEnd); // todo: remove default int characterIndexForPoint(int x, int y) { return 0; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy