libghostty
Loading...
Searching...
No Matches
Point

Detailed Description

Types for referencing x/y positions in the terminal grid under different coordinate systems (active area, viewport, full screen, scrollback history).

Enumerations

enum  GhosttyPointTag { GHOSTTY_POINT_TAG_ACTIVE = 0 , GHOSTTY_POINT_TAG_VIEWPORT = 1 , GHOSTTY_POINT_TAG_SCREEN = 2 , GHOSTTY_POINT_TAG_HISTORY = 3 }

Data Structures

struct  GhosttyPointCoordinate
union  GhosttyPointValue
struct  GhosttyPoint

Enumeration Type Documentation

◆ GhosttyPointTag

Point reference tag.

Determines which coordinate system a point uses.

Enumerator
GHOSTTY_POINT_TAG_ACTIVE 

Active area where the cursor can move.

GHOSTTY_POINT_TAG_VIEWPORT 

Visible viewport (changes when scrolled).

GHOSTTY_POINT_TAG_SCREEN 

Full screen including scrollback.

GHOSTTY_POINT_TAG_HISTORY 

Scrollback history only (before active area).

Definition at line 45 of file point.h.