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

#include <ghostty/vt/selection.h>

Data Fields

size_t size
GhosttyGridRef start
GhosttyGridRef end
bool rectangle

Detailed Description

A selection range defined by two grid references.

This is a sized struct. Use GHOSTTY_INIT_SIZED() to initialize it.

Definition at line 33 of file selection.h.

Field Documentation

◆ end

End of the selection range (inclusive).

Definition at line 41 of file selection.h.

◆ rectangle

bool rectangle

Whether the selection is rectangular (block) rather than linear.

Definition at line 44 of file selection.h.

◆ size

size_t size

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

Definition at line 35 of file selection.h.

◆ start

Start of the selection range (inclusive).

Definition at line 38 of file selection.h.


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