最終更新:2017-05-25 (木) 16:23:09 (2753d)
Gtk♯
Top / Gtk♯
Gtk# is a Graphical User Interface Toolkit for Mono and .NET. The project binds the GTK+ toolkit and assorted GNOME libraries, enabling fully native graphical Gnome application development using the Mono and .Net development frameworks.
http://www.mono-project.com/GtkSharp
http://www.mono-project.com/GtkSharpBeginnersGuide
Features
- Multi-platform (UNIX, Windows, Mac OS X).
- Wide range of Widgets/Controls.
- Accessible via the ATK accessibility toolkit.
- Internationalization.
- Available from C♯, Java, Python, VB.NET and more.
- UI Builder support.
- Open Source, Free Software.
例
コマンドライン
using System; using Gtk; public class GtkHelloWorld { public static void Main() { Console.WriteLine("HelloWorld"); } }
GUI
using System; using Gtk; public class GtkHelloWorld { public static void Main() { Application.Init(); //Create the Window Window myWin = new Window("My first GTK# Application! "); myWin.Resize(200,200); //Create a label and put some text in it. Label myLabel = new Label(); myLabel.Text = "Hello World!!!!"; //Add the label to the form myWin.Add(myLabel); //Show Everything myWin.ShowAll(); Application.Run(); } }