Re: [clutter] event coordinates from an event on a group are relative to stage

2009-06-22 Thread Bartosz Kostrzewa
> Emmanuele Bassi wrote:
>>
>> It would be nice to have a way to convert coordinates between arbitrary
>>  actors though.
> 
> clutter_actor_apply_relative_transform_to_point() is the function you
> want.
> 
> remember, though, that transformations are performed by the CPU and
> might be costly or even fail.
> 

Hey, thanks a lot, I should probably take a deeper look at the api
reference for clutter in addition to that for cluttermm.

As for the speed: I'm sure my own transformation functions aren't any
faster and I can't do without them to do what I'm doing.

Bartek

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



Re: [clutter] event coordinates from an event on a group are relative to stage

2009-06-22 Thread Emmanuele Bassi
On Sun, 2009-06-21 at 12:20 +0200, Bartosz Kostrzewa wrote:
> Bartosz Kostrzewa wrote:
> > Because the group coordinates rotate and transform with the group (so
> > that x in a rotated group is actually a position along a possibly
> > diagonal line) one cannot easily make natural comparisons between the
> > coordinates of the event and coordinates on the group grid.
> > 
> > Does clutter provide transform matrices for this purpose? 
> 
> Ah, transform_stage_point :)
> 
> It would be nice to have a way to convert coordinates between arbitrary
>  actors though.

clutter_actor_apply_relative_transform_to_point() is the function you
want.

remember, though, that transformations are performed by the CPU and
might be costly or even fail.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Senior Engineer| emmanuele.ba...@intel.com
Intel Open Source Technology Center | http://oss.intel.com

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



Re: [clutter] event coordinates from an event on a group are relative to stage

2009-06-21 Thread Bartosz Kostrzewa
Bartosz Kostrzewa wrote:
> Because the group coordinates rotate and transform with the group (so
> that x in a rotated group is actually a position along a possibly
> diagonal line) one cannot easily make natural comparisons between the
> coordinates of the event and coordinates on the group grid.
> 
> Does clutter provide transform matrices for this purpose? 

Ah, transform_stage_point :)

It would be nice to have a way to convert coordinates between arbitrary
 actors though.

-Bartek

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



[clutter] event coordinates from an event on a group are relative to stage

2009-06-20 Thread Bartosz Kostrzewa
Hi,

when a group is made reactive and receives a mouse event the event
coordinates are relative to the stage.

Because the group coordinates rotate and transform with the group (so
that x in a rotated group is actually a position along a possibly
diagonal line) one cannot easily make natural comparisons between the
coordinates of the event and coordinates on the group grid.

Does clutter provide transform matrices for this purpose? Wouldn't it
make sense to have events received by a group automatically produce
coordinates relevant there?

Thanks,
Bartek
-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com