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

#include <ghostty/vt/types.h>

Data Fields

double x
double y

Detailed Description

A surface-space position in pixels.

This is not a terminal grid coordinate. It represents an x/y position in the rendered surface coordinate space, with (0, 0) at the top-left of the surface.

Examples
c-vt-selection-gesture/src/main.c.

Definition at line 237 of file types.h.

Field Documentation

◆ x

double x

X position in surface pixels.

Definition at line 239 of file types.h.

◆ y

double y

Y position in surface pixels.

Definition at line 242 of file types.h.


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