.. This file is auto-generated by //tools:generate_doc. Please do not edit directly

VirtualTextInputWidget
======================
.. class:: VirtualTextInputWidget

   A widget representing a text input field or text area.

   Provides functionality for selection, cursor insertion point, and text area mode.

   Inherited from :class:`VirtualWidget`

   .. method:: __init__() -> None

     Create a new VirtualTextInputWidget instance.

   .. method:: get_insertion_point() -> int

     Get the current cursor location in the text input, represented by an index starting at 0.

   For example, in "A|BCDEFG", this function returns 1.

   :return: Current cursor index.

   .. method:: get_selected_text() -> str

     Get the currently selected text in the input field.

   :return: Selected text.

   .. method:: is_text_area() -> bool

     Check if the current input widget is a text area.

   :return: True if it's a text area, otherwise False.

   .. method:: set_insertion_point(insertion_point) -> None

     Set the current cursor location index in the text input.

   See also: get_insertion_point()

   :param insertion_point: Index starting from 0.

   .. method:: set_is_text_area(is_text_area) -> None

     Set whether the input widget is a text area.

   :param is_text_area: True if it's a text area, otherwise False.

   .. method:: set_selected_text(selected_text) -> None

     Set the currently selected text in the input field.

   :param selected_text: Selected text string.
