libghostty
Loading...
Searching...
No Matches
GhosttyRenderStateRowSelection Struct Reference

#include <ghostty/vt/render.h>

Data Fields

size_t size
uint16_t start_x
uint16_t end_x

Detailed Description

Row-local selection range.

This struct uses the sized-struct ABI pattern. Initialize with GHOSTTY_INIT_SIZED(GhosttyRenderStateRowSelection) before querying GHOSTTY_RENDER_STATE_ROW_DATA_SELECTION.

Querying GHOSTTY_RENDER_STATE_ROW_DATA_SELECTION returns GHOSTTY_NO_VALUE if the current row does not intersect the current selection.

Definition at line 253 of file render.h.

Field Documentation

◆ end_x

uint16_t end_x

End column of the row-local selection range, inclusive.

Definition at line 261 of file render.h.

◆ size

size_t size

Size of this struct in bytes. Must be set to sizeof(GhosttyRenderStateRowSelection).

Definition at line 255 of file render.h.

◆ start_x

uint16_t start_x

Start column of the row-local selection range, inclusive.

Definition at line 258 of file render.h.


The documentation for this struct was generated from the following file: