S or /

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_end
def paint_cursor_end(painter: Painter, visuals: Visuals, cursor_rect: Rect) -> None

Paint one end of the selection, e.g. the primary cursor.

This will never blink.

SourceFunction paint_text_cursor§

from egui import paint_text_cursor
def paint_text_cursor(ui: Ui, painter: Painter, primary_cursor_rect: Rect, time_since_last_interaction: float) -> None

Paint one end of the selection, e.g. the primary cursor, with blinking (if enabled).

SourceFunction paint_text_selection§

from egui import paint_text_selection
def paint_text_selection(galley: Galley, visuals: Visuals, cursor_range: CCursorRange, collect_new_vertex_indices: bool = False) -> list[RowVertexIndices] |None

Adds text selection rectangles to the galley.

Constants§

Re-exports§