add struct ct_surface as a struct _win_st (ncurses) replacement

This commit is contained in:
Emile Clark-Boman 2025-09-24 15:47:56 +10:00
parent bcfcbaf529
commit 08e4376a35
3 changed files with 186 additions and 0 deletions

16
src/surface.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef _CURSETREE_SURFACE_H
#define _CURSETREE_SURFACE_H
/* Initial row and column coordinates */
#define ROW0 1
#define COL0 1
typedef unsigned short pos;
typedef struct ct_surface {
pos x, y, w, h;
char **buf;
pos vcx, vcy; /* virtual cursor position */
} surface;
#endif /* _CURSETREE_SURFACE_H */