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. :(

 Sorry for my bad english. :(

Thank you,
Bharathi S
-- 
--==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
Even a single evil word
Will turn all good results to bad.
*In Tirukkural of Holy Tamil poet Tiruvalluvar.

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

Reply via email to