On Sat, 27 Apr 2002, Balarama Chandra N R wrote:

> If you want to build X-Server, 
  No. 

> In case if you are looking for knowing the architectrual 
> details of X-Server I have some PDF's, let me know I will 
> forward the same.
  Yes, I want to know abt arch of XServer.

Already i requested some idea for solving the below
problem. Sorry for reposting :(

Date: Tue, 23 Apr 2002 17:45:03 +0530 (IST)
From: Bharathi S <[EMAIL PROTECTED]>
Subject: Re: [Xpert]Window ID

On Mon, 22 Apr 2002, Vladimir Dergachev wrote:
> On Mon, 22 Apr 2002, Bharathi S wrote:
> > On Mon, 22 Apr 2002, Vladimir Dergachev wrote:
> > > >   How find the window id by using the following structures
> > > >   Display, Drawable, Graphics Context ?
> > >
> > > AFAIK, Window id is the same thing as the drawable, provided the
> > > drawable points to the window. I.e. where the man page says Xblahblah
> > > function takes a drawable as an argument it means that you can 
> > > either pass a window id or a pixmap (but not XImage) handle to it.

> > Most of the functions taking Pixmap(DRAWABLE) as argument.
> > I need the window id for maintaining a virtual buffer
> > and window id as the key.

> You lost me at this point. Could you provide more detail about what is
> it you are trying to do ? Is it in the user application or in Xserver 
> code ?

Thanks to all for the reply.

  All our modification is only in XLIB.
  If it is not possible at Xlib level, we
  may move to XServer.

  If we did this modification in the XLib,
  the application running on top xlib will
  automatically inherit this facility.


KeyBoard
  |
 \|/
keycode
  |
 \|/
keysym(ASCII)
  |
 \|/
ISCII -----> File
  |
  |
 \|/
 Display
 XDrawString() / XDrawImageString()
 Inside this functions I am doing the Encoding to Glyph code conversion
 The Resulting Glyph is sent for display.
 ( No of resulting glyph code  may not equal
  to the No of Encoding code )  :(
   |
   |
  \|/
 XDrawLine() to move the Cursor
 Application calculating the cursor position or width
 based on the Encoding code. It should calculate the
 new position based on the resulting glyph.

 So when ever application try to move the cursor position
 we have to calculate the new position by converting the
 encoding to glyph.

 But for XDrawLine, App won't send the strings
 So I planned to store the encoding codes coming
 to the XDrawString / XDrawImageString in a
 List of VirtualWindowBuffer ( Window ID as Key )

 VirtualWindowBuffer --> 2 Dimension Array and one KeyID

 Inside the XDrawLine i will find the VirtualWindowBuffer
 and I will take the Whole line VirtualWindowBuffer(x, y)
 and i am calculating the new position.

 i tried  Pixmap value as ID. But
 pixmap is keep on changing. :(

TIA,
-- 
--==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
A help rendered in hour of need
Though small is greater then the world.
*In Tirukkural of Holy Tamil poet Tiruvalluvar.



_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to