blob: 9addaeb29d5f671f40b20cf8a810a33fe7c96bce [file] [log] [blame]
rsc058b0112005-01-03 06:40:20 +00001.TH WCTL 3
2.SH NAME
3drawresizewindow, drawsetlabel, drawtopwindow \- window management
4.SH SYNOPSIS
5.B #include <draw.h>
6.PP
7.B
8void drawresizewindow(Rectangle r)
9.PP
10.B
11int drawsetlabel(Display *d, char *name)
12.PP
13.B
14void drawtopwindow(void)
15.SH DESCRIPTION
16These routines interact with a window manager
17to set the properties of the window running the current program.
18They substitute for interacting directly with the Plan 9
19.IR rio 's
20.BR /dev/wctl .
21.PP
22.I Drawresizewindow
23requests that the program's window be resized to have the
24width and height of the rectangle
25.IR r .
26Only the width and height
27are important; the offset is ignored.
28.PP
29.I Drawsetlabel
30requests that the program's window title be set to
31.IR name .
32.PP
33.I Drawtopwindow
34requests that the program's window be moved
35above all other windows and given the input focus.
36.SH SOURCE
rscc3674de2005-01-11 17:37:33 +000037.B \*9/src/libdraw/x11-init.c
rsc058b0112005-01-03 06:40:20 +000038.br
rscc3674de2005-01-11 17:37:33 +000039.B \*9/src/libdraw/x11-wsys.c