Menu

[b959bd]: / joe / qw.h  Maximize  Restore  History

Download this file

29 lines (24 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* Single-key query windows
* Copyright
* (C) 1992 Joseph H. Allen
*
* This file is part of JOE (Joe's Own Editor)
*/
/* Single-key Query window */
struct query {
W *parent; /* Window we're in */
int (*func)(W *w, int k, void *object, int *notify); /* Func. which gets called when key is hit */
int (*abrt)(W *w, void *object);
void *object;
char *prompt; /* Prompt string */
ptrdiff_t promptlen; /* Width of prompt string */
ptrdiff_t org_w;
ptrdiff_t org_h;
};
/* QW *mkqw(W *w, char *prompt, int (*func)(), int (*abrt)(), void *object);
* Create a query window for the given window
*/
QW *mkqw(W *w, const char *prompt, ptrdiff_t len, int (*func)(W *w, int k, void *object, int *notify), int (*abrt)(W *w, void *object), void *object, int *notify);
QW *mkqwna(W *w, const char *prompt, ptrdiff_t len, int (*func)(W *w, int k, void *object, int *notify), int (*abrt)(W *w, void *object), void *object, int *notify);
QW *mkqwnsr(W *w, const char *prompt, ptrdiff_t len, int (*func)(W *w, int k, void *object, int *notify), int (*abrt)(W *w, void *object), void *object, int *notify);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.