MentorLake.Gtk3 3.0.54

dotnet add package MentorLake.Gtk3 --version 3.0.54
                    
NuGet\Install-Package MentorLake.Gtk3 -Version 3.0.54
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MentorLake.Gtk3" Version="3.0.54" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MentorLake.Gtk3" Version="3.0.54" />
                    
Directory.Packages.props
<PackageReference Include="MentorLake.Gtk3" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MentorLake.Gtk3 --version 3.0.54
                    
#r "nuget: MentorLake.Gtk3, 3.0.54"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MentorLake.Gtk3@3.0.54
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MentorLake.Gtk3&version=3.0.54
                    
Install as a Cake Addin
#tool nuget:?package=MentorLake.Gtk3&version=3.0.54
                    
Install as a Cake Tool

Summary

Bindings for the GTK3 libraries (GTK, GDK, GLib, etc.).

The GTK API is exposed via extension methods off of the safe handle classes. The P/Invoke definitions are internal so you don't interact with them directly. The constructor-like methods to create the safe handles are regular static methods off of the safe handle types.

Functions from the GTK API that normally would return void (e.g., gtk_button_set_label) return a safe handle instead to create a fluent DSL.

Example

var window = GtkWindowHandle.New(GtkWindowType.GTK_WINDOW_TOPLEVEL)
	.Add(GtkBoxHandle.New(GtkOrientation.GTK_ORIENTATION_HORIZONTAL, 0)
		.Add(GtkButtonHandle.New()
			.SetLabel("TEST")
			.With(b => b.Signal_Clicked().TakeUntil(b.Signal_Destroy().Take(1)).Subscribe(_ => Console.WriteLine("CLICK")))
		.Add(GtkImageHandle.NewFromIconName("face-smile", GtkIconSize.GTK_ICON_SIZE_LARGE_TOOLBAR)
			.SetSizeRequest(64, 64)));

Warning

The bindings are generated from the API docs and heuristics were needed to determine between arrays, pointers, out parameters, ref parameters, etc. If you find an issue then please submit a pull request.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.54 184 9/14/2025
3.0.53 194 8/15/2025
3.0.52 179 8/14/2025
3.0.51 184 8/13/2025
3.0.50 183 8/11/2025
3.0.49 170 8/10/2025
3.0.48 173 8/10/2025
3.0.47 173 8/10/2025
3.0.45 163 8/10/2025
3.0.44 130 8/10/2025
3.0.43 196 6/29/2025
3.0.42 108 6/28/2025
3.0.41 105 6/28/2025
3.0.40 109 6/28/2025
3.0.39 192 6/14/2025
3.0.38 199 6/14/2025
3.0.37 245 6/9/2025
3.0.36 255 6/9/2025
3.0.35 250 6/9/2025
3.0.34 235 6/8/2025
Loading failed