nanogui: GrmoveCursor()!


Previous by date: 9 Jul 2002 09:02:41 -0000 about chinese fonts, xgzhang
Next by date: 9 Jul 2002 09:02:41 -0000 Re: Problem with Nano-X, jonathan.foster.philips.com
Previous in thread: 9 Jul 2002 09:02:41 -0000 GrmoveCursor()!, wangzhenyuan
Next in thread:

Subject: Re: [nanogui] GrmoveCursor()!
From: Alex Holden ####@####.####
Date: 9 Jul 2002 09:02:41 -0000
Message-Id: <3D2AA51C.40707@linuxhacker.org>

wangzhenyuan wrote:
>     GrMoveCursor(psd->xvirtres / 2, psd->yvirtres / 2);
> on the screen ,I don't understand the next
> step it does ,psd->xvirtres and psd->yvirtres 
> stand what? 

It just places the cursor in the middle of the screen. The reason it
uses ->xvirtres and ->yvirtres instead of ->xres and ->yres is because
the axes may be reversed if the screen is in portrait mode.

>   And I find two version of GrnewCursor() and
> Grsetwindowcursor() ,in srvfunc.c and client.c,
> which one can I read here?

The Gr*() functions in client.c are just stubs which generate some
network protocol that causes the corresponding Gr*Wrapper() function in
srvnet.c to be called, which in turn decodes the parameters and calls
the actual function in the server, usually located in srvfunc.c. When in
"client linked into server" mode, client.c and srvnet.c are not linked
in and the client calls the functions in srvfunc.c directly.

-- 
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer


Previous by date: 9 Jul 2002 09:02:41 -0000 about chinese fonts, xgzhang
Next by date: 9 Jul 2002 09:02:41 -0000 Re: Problem with Nano-X, jonathan.foster.philips.com
Previous in thread: 9 Jul 2002 09:02:41 -0000 GrmoveCursor()!, wangzhenyuan
Next in thread:


Powered by ezmlm-browse 0.20.