Hi, I made some additions, and now the same button widget has timeline and highlight effect that is made visible on button click and fades out on button release.
Best Wishes, Karoliina http://www.karoliinasalminen.com/blog On 10/31/07, Kate Alhola <[EMAIL PROTECTED]> wrote: > > ext Emmanuele Bassi wrote: > On Tue, 2007-10-30 at 16:31 +0200, Kate Alhola wrote: > > > > actor_class->button_press_event = clutter_button_event; > actor_class->button_release_event = clutter_button_event; > > this is all that you need. I personally would also handle the enter and > leave events signal class handlers. > > > > Just so simple way looks that it is not working. > > are you setting the actor as reactive? are you listening to > the ::captured-event signal and blocking the signal chain there? > > I can assure you that doing that it should "just work", as long as the > actor is reactive and events are not captured. > > Now it works. The problem was that pick was not handled correctly. > Now i set just container ( button) size same as it's children ( texture) > and got it working. > > Future improvement would be support pick mask. Needs little > hack with OpenGl / cogl to draw bitmap silhouette of arbitary colour. > May be GL_COLOR_INDEX type may help but i need to check that > it is supported GLes also. > > Now i have nearly working button widget, some minor fixes still needed ... > > > Kate > -- To unsubscribe send a mail to [EMAIL PROTECTED]
