[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
nanogui-unsubscribe@linuxhacker.org
From: "Taha Jiruwala" ####@####.#### Date: 14 Sep 2001 04:14:28 -0000 Message-Id: <NEBBKOMHALJCEFEIKBOIEEOACAAA.taha@sasken.com> -----Original Message----- From: ??? Candy Yao ####@####.#### Sent: Friday, September 14, 2001 8:10 AM To: ####@####.#### Cc: ####@####.#### Subject: RE: [nanogui] Microwindows implement void GrMapWindow(GR_WINDOW_ID wid) { nxMapWindowReq *req; req = AllocReq(MapWindow); req->windowid = wid; } Hi, James: In GrNewWindow, there is a line code of "GrTypedReadBlock(&wid, sizeof(wid),GrNumNewWindow) ", but in GrMapWindow function, just set the request, server how to get the request and show the windows? Please help me, thank you very much! yao 2001/9/14 -----Original Message----- From: Gary James ####@####.#### Sent: Tuesday, September 11, 2001 10:04 AM To: «ÀZ³C Candy Yao Subject: Re: [nanogui] Microwindows implement 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: ####@####.#### > > --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |