From 33de2d046acfc7ee42fb71b1804b091f671b098a Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 20 Sep 2023 13:15:48 +0000 Subject: more work on the menulist of matches. --- dat.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'dat.h') diff --git a/dat.h b/dat.h index 29eb6e0..7828287 100644 --- a/dat.h +++ b/dat.h @@ -108,7 +108,7 @@ struct Stands typedef struct Mentry Mentry; typedef struct Mlist Mlist; -typedef struct Matchlist Matchlist; +typedef struct Menulist Menulist; struct Mentry { @@ -123,8 +123,15 @@ struct Mlist int filling; }; -struct Matchlist +struct Menulist { Mlist; - int selected; /* [-1,nitems) where -1 is none */ + char *title; + Rectangle r, sr; /* content and scroll rects */ + int high; /* [-1,nitems) where -1 is none */ + + void (*add)(Menulist*, int, char*); + void (*clear)(Menulist*); + void (*update)(Menulist*, Mousectl*); + void (*draw)(Menulist*, Image*); }; -- cgit v1.2.3