ref: adf4a1f0608eaf424e39993c42ef54737d63e624
dir: /acme.h/
#pragma lib "libacme.a" enum { AEventSz = 256 * UTFmax, }; typedef struct AWin AWin; typedef struct AEvent AEvent; struct AWin { int id; /* acme window id */ /* file descriptors */ int ctl; int event; int addr; int data; void *aux; /* user data */ }; struct AEvent { char origin; /* mouse, keyboard, etc. */ char type; /* delete, exec, etc. */ int p; /* click point */ int q0, q1; /* expanded text */ int flags; /* event flags */ int ntext; /* how much text */ char text[AEventSz + 1]; /* text from the event */ }; int awinfsopen(AWin *, char *, int); AWin * awincreate(void); void awinclose(AWin *); void awintitle(AWin *, char *, ...); void awinctl(AWin *, char *, ...); void awinclear(AWin *); void awinappend(AWin *, char *, ...); void awinerror(AWin *, char *, ...); void awinaddtag(AWin *, char *); void awinsettag(AWin *, char *); int aeventnext(AWin *, AEvent *); void aeventsend(AWin *, AEvent *);