示例#1
0
        public AnimatedVBoxTestModule()
            : base("Animated VBox")
        {
            AnimatedVBox vbox = new AnimatedVBox ();
            Add (vbox);

            tile = BuildWidget ("Example destroyed");
            tile2 = BuildWidget ("Example removed");

            vbox.PackEnd (tile, 3000, Hyena.Gui.Theatrics.Easing.QuadraticOut);
            vbox.PackEnd (tile2, 3000, Hyena.Gui.Theatrics.Easing.QuadraticOut);
            ShowAll ();

            timeout_id = GLib.Timeout.AddSeconds (5, delegate {
                tile.Destroy ();
                vbox.Remove (tile2);
                return false;
            });
        }