diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-06-15 13:06:18 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-06-15 13:06:38 -0700 |
| commit | e1ee180172ae5ba192dd4f272a70e21df11138ad (patch) | |
| tree | f17c531e989aaf0cb374213b633166d45c40c25a /include | |
| parent | c5f921bb066d5fb6b50d3a5570ef727a2f5ea35f (diff) | |
apprt/embedded: API to read text can get top left/bottom right coords
Diffstat (limited to 'include')
| -rw-r--r-- | include/ghostty.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ghostty.h b/include/ghostty.h index 9fc58aa87..fc2c915cb 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -366,8 +366,15 @@ typedef enum { GHOSTTY_POINT_SURFACE, } ghostty_point_tag_e; +typedef enum { + GHOSTTY_POINT_COORD_EXACT, + GHOSTTY_POINT_COORD_TOP_LEFT, + GHOSTTY_POINT_COORD_BOTTOM_RIGHT, +} ghostty_point_coord_e; + typedef struct { ghostty_point_tag_e tag; + ghostty_point_coord_e coord; uint32_t x; uint32_t y; } ghostty_point_s; |
