]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/mothra/libpanel/group.c
exec(2): fix prototypes
[plan9front.git] / sys / src / cmd / mothra / libpanel / group.c
1 #include <u.h>
2 #include <libc.h>
3 #include <draw.h>
4 #include <event.h>
5 #include <panel.h>
6 #include "pldefs.h"
7 void pl_drawgroup(Panel *p){
8         USED(p);
9 }
10 int pl_hitgroup(Panel *p, Mouse *m){
11         USED(p, m);
12         return 0;
13 }
14 void pl_typegroup(Panel *p, Rune c){
15         USED(p, c);
16 }
17 Point pl_getsizegroup(Panel *p, Point children){
18         USED(p);
19         return children;
20 }
21 void pl_childspacegroup(Panel *p, Point *ul, Point *size){
22         USED(p, ul, size);
23 }
24 void plinitgroup(Panel *v, int flags){
25         v->flags=flags;
26         v->draw=pl_drawgroup;
27         v->hit=pl_hitgroup;
28         v->type=pl_typegroup;
29         v->getsize=pl_getsizegroup;
30         v->childspace=pl_childspacegroup;
31         v->kind="group";
32 }
33 Panel *plgroup(Panel *parent, int flags){
34         Panel *p;
35         p=pl_newpanel(parent, 0);
36         plinitgroup(p, flags);
37         return p;
38 }