我拼命地试图使用混乱(在MonoDevelop IDE)来证明功能,但我不熟悉C#约定一个非常简单的C#程序。我是否需要构造一个混乱对象然后引用它?我是否在我的图书馆中错误地宣布了它? Clutter应该是我的命名空间而不是HelloWorld吗?任何帮助将不胜感激。如何将Clutter与C#结合使用?
using System;
using Clutter;
namespace HelloWorld {
public class HelloWorld {
public int Main() {
// Init declaration produces error:
// Expression denotes a 'type', where a 'method group' was expected
Clutter.Init();
Stage stage = Stage.Default;
stage.Color = new Clutter.Color (0, 0, 0, 255);
stage.SetSize (512, 512);
stage.Show();
// Main declaration produces error:
// Expression denotes a 'type', where a 'method group' was expected
Clutter.Main();
return 0;
}
}
}
(http://www.clutter-project.org/about) - 杂波是一个开源(LGPL 2.1)软件库,用于创建快速,引人注目,便携和动态的图形用户界面。它是MeeGo的核心部分,并得到了开源社区的支持。其发展由英特尔赞助。 – bjenks22446