nanogui: Microwindows implement
Subject:
Re: [nanogui] Microwindows implement
From:
Gary James ####@####.####
Date:
11 Sep 2001 02:04:37 -0000
Message-Id: <20010910220849.C818@pc.twcny.rr.com>
Hi Yao,
The request is actually transmitted in the "GrTypedReadBlock()" function.
"GrTypedReadBlock()" calls "GrReadBlock()", which calls "nxFlushReq()" (in
nxproto.c) which calls "nxWriteSocket()" which calls "write()".
Gary James
####@####.####
http://home.twcny.rr.com/embedded/
On Mon, 10 Sep 2001 21:14:21 «ÀZ³C Candy Yao wrote:
> GR_WINDOW_ID
> GrNewWindow(GR_WINDOW_ID parent, GR_COORD x, GR_COORD y, GR_SIZE width,
> GR_SIZE height, GR_SIZE bordersize, GR_COLOR background,
> GR_COLOR bordercolor)
> {
> nxNewWindowReq *req;
> GR_WINDOW_ID wid;
>
> req = AllocReq(NewWindow);
> req->parentid = parent;
> req->x = x;
> req->y = y;
> req->width = width;
> req->height = height;
> req->backgroundcolor = background;
> req->bordercolor = bordercolor;
> req->bordersize = bordersize;
> if(GrTypedReadBlock(&wid, sizeof(wid),GrNumNewWindow) == -1)
> return 0;
> return wid;
> }
>
> Hi, all:
> Read the souce code of GrNewWindow function, why can not find
> send
> request code? after AllocReq(...), GrTypedReadBlock(...)
> Thanks!
> yao
> 2001/9/11
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>