SourceModule visuals
Classes§
| RowVertexIndices |
Functions§
| paint_cursor_end | Paint one end of the selection, e.g. the primary cursor. |
| paint_text_cursor | Paint one end of the selection, e.g. the primary cursor, with blinking (if enabled). |
| paint_text_selection | Adds text selection rectangles to the galley. |
SourceFunction paint_cursor_end§
from egui import paint_cursor_enddef paint_cursor_end(painter: Painter, visuals: Visuals, cursor_rect: Rect) -> NonePaint one end of the selection, e.g. the primary cursor.
This will never blink.
SourceFunction paint_text_cursor§
from egui import paint_text_cursordef paint_text_cursor(ui: Ui, painter: Painter, primary_cursor_rect: Rect, time_since_last_interaction: float) -> NonePaint one end of the selection, e.g. the primary cursor, with blinking (if enabled).
SourceFunction paint_text_selection§
from egui import paint_text_selectiondef paint_text_selection(galley: Galley, visuals: Visuals, cursor_range: CCursorRange, collect_new_vertex_indices: bool = False) -> list[RowVertexIndices] |NoneAdds text selection rectangles to the galley.