On Thu, 2008-11-06 at 20:21 -0500, Fred Warren wrote: > If someone could give/explain a basic animation program(like a > rectangle moving up/down), that would be great.
define "move up and down": up and down which axis? scale up and down? grow in width and height? > Also, is there a button widget in clutter, or do you have to make one > from scratch with images? every actor in Clutter is potentially a button, since every actor responds to button-press and button-release events, and can track the pointer motion for leave/enter events. as for the *content*: images, cairo drawing, GL drawing; creating a button is fairly trivial - probably not more than 50 lines of python[0] - but it depends on what you think a button should do or look like. ciao, Emmanuele. +++ [0] the custom-actor.py example describes, beyond creating a custom actor, also how to make an actor that tracks button press and release events, and emit a "clicked" signal using the same semantics as the GtkButton widget in GTK+. it's 130 lines long, but contains the actor class, the test and some boilerplate for gobject properties and signal definitions. -- Emmanuele Bassi, Intel Open Source Technology Center -- To unsubscribe send a mail to [EMAIL PROTECTED]
