xref: /plan9/sys/src/cmd/rio/fns.h (revision d9306527b4a7229dcf0cf3c58aed36bb9da82854)
1 void	keyboardsend(char*, int);
2 int	whide(Window*);
3 int	wunhide(int);
4 void	freescrtemps(void);
5 int	parsewctl(char**, Rectangle, Rectangle*, int*, int*, int*, int*, char**, char*, char*);
6 int	writewctl(Xfid*, char*);
7 Window *new(Image*, int, int, int, char*, char*, char**);
8 void	riosetcursor(Cursor*, int);
9 int	min(int, int);
10 int	max(int, int);
11 Rune*	strrune(Rune*, Rune);
12 int	isalnum(Rune);
13 void	timerstop(Timer*);
14 void	timercancel(Timer*);
15 Timer*	timerstart(int);
16 void	error(char*);
17 void	killprocs(void);
18 int	shutdown(void*, char*);
19 void	iconinit(void);
20 void	*erealloc(void*, uint);
21 void *emalloc(uint);
22 char *estrdup(char*);
23 void	button3menu(void);
24 void	button2menu(Window*);
25 void	cvttorunes(char*, int, Rune*, int*, int*, int*);
26 /* was (byte*,int)	runetobyte(Rune*, int); */
27 char* runetobyte(Rune*, int, int*);
28 void	putsnarf(void);
29 void	getsnarf(void);
30 void	timerinit(void);
31 int	goodrect(Rectangle);
32 
33 #define	runemalloc(n)		malloc((n)*sizeof(Rune))
34 #define	runerealloc(a, n)	realloc(a, (n)*sizeof(Rune))
35 #define	runemove(a, b, n)	memmove(a, b, (n)*sizeof(Rune))
36