Table of Contents

Welcome to GirCore

GirCore provides C# bindings for different GObject based libraries like GTK4, Adwaita, WebKitGTK, GStreamer and more. It allows to write native dotnet linux apps which integrating deeply into the system. The applications page lists some projects that already use GirCore.

Display a GTK window

Displaying a native GTK4 window is straightforward. Just create a new C# project, add the GirCore.Gtk-4.0 nuget package copy the following code into your Program.cs file and run the project.

var application = Gtk.Application.New("org.gir.core", Gio.ApplicationFlags.FlagsNone);
application.OnActivate += (sender, args) =>
{
    var window = Gtk.ApplicationWindow.New((Gtk.Application) sender);
    window.Title = "Gtk4 Window";
    window.SetDefaultSize(300, 300);
    window.Show();
};
return application.RunWithSynchronizationContext(null);

There are other samples for a lot of GirCore nuget packages available.

Contributing

If you want to contribute to GirCore please check out the github project or visit us on matrix.