New hosting
If you are seeing this, then you are using our newest hosting, notice the new domain
, you can also use this if you want to.
If you are seeing this, then you are using our newest hosting, notice the new domain
, you can also use this if you want to.
Do you see any difference?
using GLib;
namespace Cairo
{
public class Rectangle
: Object
{
public Rectangle (construct double X, construct double Y,
construct double Width, construct double Height)
{
}
public double X
{
get;
set construct;
}
public double Y
{
get;
set construct;
}
public double Width
{
get;
set construct;
}
public double Height
{
get;
set construct;
}
public static bool Equals (Rectangle rectangle, Rectangle other)
{
return rectangle.X == other.X && rectangle.Y == other.Y
&& rectangle.Width == other.Width && rectangle.Height == other.Height;
}
public static bool NotEquals (Rectangle rectangle, Rectangle other)
{
return !(Rectangle.Equals (rectangle, other));
}
}
}
First is C# code, second is Vala code. Object oriented GObject syntax.
Use:
valac --pkg=cairo Rectangle.vala
Then:
gcc `pkg-config --libs glib-2.0 --cflags glib-2.0` -I . Rectangle.c -shared -o rectangle.so
enjoy
Great weekend, both my sisters and I spent two days of fun, going to different places on Saturday and Sunday.
Summary: arrived to Mexico City at 05:00, ate breakfast and then went to the amusement park (all day there), after eating on Sunday we went to the concert!.
BTW, MCR has a great show, they played the best of their last two albums, people went crazy… both boys and girls screaming, I barely can hear.
Wondering how to develop maemo# applications? Follow this recipe to do so:
And here it is, running in the scratchbox: