On Mon, 18 May 1998, Trevor Harmon wrote:
> Gary Mart (GAM22) admin0 wrote:
>
> > I have 2 problems:
> > 1) drawLines()ith XORmMode set does not work correctly and,
> > 2) I want to move the mouse pointer under program control
> >
>
> Warping pointers in Java 1.1.x is impossible, so you'll have to write a
> native function.
Agreed, a native function is probably the only way to do it. But, all
Xlib drawing functions require a Display (usually trivial) and a Window or
Drawable. That Window or Drawable has to be the peer for the
corresponding Java object.
So, a native function that does ANY drawing on the screen must have access
to the correct peer Window or Drawable. But, how how do I get the peer
Window or Drawable from Java???
>
> As for passing Java graphics contexts to native functions, I'm not sure
> if that's even possible.
Not sure what you are referring to by 'graphics contexts'. I don't think
I need to pass a Java Graphics object to a native function, and 'graphics
context' has a specific meaning in Xlib which is something different than
Java's Grphics object.
>
> Trevor
>
>
Gary Mart
[EMAIL PROTECTED]