Class Module
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public static class Module
- Inheritance
-
Module
- Inherited Members
Methods
Initialize()
Initialize the Gtk module.
public static void Initialize()
Remarks
Calling this method is necessary to correctly initialize the bindings and should be done before using anything else in the Gtk namespace.
Calling this method will also initialize the modules this module depends on:
| Module |
| Module |
If the Application class is used there is no need to call this method, because this module will be implicitly initialized when accessing Application the first time.
SetCustomDllImportResolver(DllImportResolver)
Set a custom DllImportResolver. This disables the automatic loading of native binaries for Gtk. If the given DllImportResolver receives the library name "Gtk" it has to return a pointer to the desired native Gtk binary.
[Experimental("GirCore1009", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1009.html")]
public static void SetCustomDllImportResolver(DllImportResolver customDllImportResolver)
Parameters
customDllImportResolverDllImportResolverCustom DllImportResolver to use.
Remarks
Please be aware that using this API means you are out of the officially supported area as you are able to combine GirCore with some binary the package was not build for. Please consider to generate a custom GirCore package which exactly matches your binary.
Exceptions
- Exception
Throws an exception if the method is called after module initialization.