nanogui: Microwindows implement


Previous by date: 14 Sep 2001 02:41:08 -0000 Re: gcc 2.95.3 problem., Sang Baek Lee
Next by date: 14 Sep 2001 02:41:08 -0000 nanogui-unsubscribe@linuxhacker.org, Taha Jiruwala
Previous in thread: 14 Sep 2001 02:41:08 -0000 Re: Microwindows implement, Gary James
Next in thread:

Subject: RE: [nanogui] Microwindows implement
From: "??? Candy Yao" ####@####.####
Date: 14 Sep 2001 02:41:08 -0000
Message-Id: <2C111A6965E01E4AB9DBCCF75D0F0AF9133D2F@kes01.kinposh.com.cn>

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: ####@####.####
> 
> 


Previous by date: 14 Sep 2001 02:41:08 -0000 Re: gcc 2.95.3 problem., Sang Baek Lee
Next by date: 14 Sep 2001 02:41:08 -0000 nanogui-unsubscribe@linuxhacker.org, Taha Jiruwala
Previous in thread: 14 Sep 2001 02:41:08 -0000 Re: Microwindows implement, Gary James
Next in thread:


Powered by ezmlm-browse 0.20.