Re: [Vala] Clutter actor class in Vala (newb)
- From: Erick Pérez Castellanos <erickpc gnome org>
- To: vala-list gnome org
- Subject: Re: [Vala] Clutter actor class in Vala (newb)
- Date: Wed, 10 Apr 2013 13:12:56 -0400
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]