nanogui: Thread: Microwindows implement


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Microwindows implement
From: 姚茂彪 Candy ####@####.####
Date: 11 Sep 2001 01:15:36 -0000
Message-Id: <2C111A6965E01E4AB9DBCCF75D0F0AF911FBE5@kes01.kinposh.com.cn>

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

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

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.