summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-11 23:47:57 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-11 23:47:57 +0000
commit7d9d81d6e8f6b0af6f0cca2fd7bed3ac885c8651 (patch)
tree8eeaafbc32d36e1b79515a08754db10338507842 /include
parentbbb5df408de0daa74c2c933bc184ff16538d87fb (diff)
Pass putglyph info in a struct rather than positional args. We need to break the API to add protected cells, so now is the least-breakage way of making more changes in future
Diffstat (limited to 'include')
-rw-r--r--include/vterm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/vterm.h b/include/vterm.h
index bfb605d..1613937 100644
--- a/include/vterm.h
+++ b/include/vterm.h
@@ -126,7 +126,12 @@ enum {
typedef void (*VTermMouseFunc)(int x, int y, int button, int pressed, int modifiers, void *data);
typedef struct {
- int (*putglyph)(const uint32_t chars[], int width, VTermPos pos, void *user);
+ const uint32_t *chars;
+ int width;
+} VTermGlyphInfo;
+
+typedef struct {
+ int (*putglyph)(VTermGlyphInfo *info, VTermPos pos, void *user);
int (*movecursor)(VTermPos pos, VTermPos oldpos, int visible, void *user);
int (*scrollrect)(VTermRect rect, int downward, int rightward, void *user);
int (*moverect)(VTermRect dest, VTermRect src, void *user);