The visible rows of an editor as (first line, last line, line height), from its last layout.
- ui: the UI whose text system measures the lines.
- edit: the text being edited.
- node: the editor's node, whose height says how much fits.
- options: the editor's font and size.
visible_lines :: (
ui: *UI_State,
edit: *Text_Edit,
node: *Node,
options: Editor_Options
) -> (first: int, last: int, line_height: float)
The visible rows of an editor as (first line, last line, line height), from its last layout.
Parameters
- ui: *UI_State
- the UI whose text system measures the lines.
- edit: *Text_Edit
- the text being edited.
- node: *Node
- the editor's node, whose height says how much fits.
- options: Editor_Options
- the editor's font and size.
Returns
- first: int
- last: int
- line_height: float