Re: [Vala] Clutter actor class in Vala (newb)



What you're missing is this:

----------------------------------------
# diff -u clutter.orig.vala clutter.vala
--- clutter.orig.vala    2013-04-10 13:09:58.691316850 -0400
+++ clutter.vala    2013-04-10 13:09:08.617986596 -0400
@@ -52,6 +44,8 @@

     //Make my custom Actor:
     var a = new AnActor();
+    a.set_size (200, 300);
+    a.set_position (200, 300);

     //This is dodgy:
     stage.add_child(a);
----------------------------------------

As you see, you're actor didn't have size, so it was drawing nothing.
Although I'm not pretty sure, you should check about the preferred way of
custom painting an actor.

Cheers


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]