Erick Pérez <[email protected]> wrote: > When i create a new ClutterCairoTexture to draw on it, it creates a > rectangular shape and draw over the that shape. The problem then is: > if i make it reactive, and draw a circle, it respond to clicks in > parts where there's nothing drawn cause it's the underlying rectangle > the ones who's getting the events.
If you are using Clutter version 1.3.4 or above there is a property of ClutterTexture which makes it take into account the alpha channel of the image when picking so that when the mouse is over a transparent part it won't get picked. ClutterCairoTexture is a subclass of ClutterTexture so you should just be able to enable it like so and then it should automatically do what you're describing: g_object_set (cairo_texture, "pick-with-alpha", TRUE, NULL); Regards, - Neil _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
