From: "Liu, Raymond" <[email protected]>

> Hi
>       Is there anyway to get absolute x,y coordinate of an actor in 
> clutter?=20
> 
>       clutter_actor_get_position can get relative x,y to an actor's parent 
> conta=
> iner, I can try to add the x,y offset up to the stage. But :
> 
>       1: the container itself might have some border or decorator, which I 
> have =
> no way to count in their width and height.
>       2: Seems I got no way to get the stage's absolute x,y relative to 
> desktop =
> root_window?

absolute x,y relative? I suppose that you mean the absolute x,y position of the 
stage
on the screen.

Some time ago a similar thread was sent to this list [1]

This information relies on the windowing system, so from clutter POV, you need 
to
use the backends to get this information.

For example, if you are using the X11 backend, you can use these functions:
   clutter_x11_get_root_window
   clutter_x11_get_stage_window

In order to get the root X window and the X window related to the stage. Using
both you can compute the absolute position of the stage on the screen.

I hope this helps

BR


[1] http://lists.o-hand.com/clutter/0870.html

===
API ([email protected])

-- 
To unsubscribe send a mail to [email protected]

Reply via email to