Skip to main content

Crate glib_win32

Crate glib_win32 

Source
Expand description

§Rust GLib Win32 bindings

Rust bindings and wrappers for glib, part of gtk-rs-core.

GLib 2.56 is the lowest supported version for the underlying library.

§Minimum supported Rust version

Currently, the minimum supported Rust version is 1.83.0.

§Documentation

§Using

We recommend using crates from crates.io, as demonstrated here.

If you want to track the bleeding edge, use the git dependency instead:

[dependencies]
glib = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "glib" }

Avoid mixing versioned and git crates like this:

# This will not compile
[dependencies]
glib = "0.13"
glib = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "glib" }

§See Also

§License

__glib-win32 is available under the MIT License, please refer to it.

Re-exports§

pub use glib_win32_sys as ffi;

Modules§

prelude

Enums§

OSType
Type of Windows edition to check for at run-time.

Functions§

check_windows_version
Returns whether the version of the Windows operating system the code is running on is at least the specified major, minor and service pack versions. See MSDN documentation for the Operating System Version. Software that needs even more detailed version and feature information should use the Win32 API VerifyVersionInfo() directly.
command_line
Gets the command line arguments, on Windows, in the GLib filename encoding (ie: UTF-8).
error_message
Translate a Win32 error code into a human readable message.
ftruncate
getlocale
The setlocale() function in the Microsoft C library uses locale names of the form “English_United States.1252” etc. We want the UNIXish standard form “en_US”, “zh_TW” etc. This function gets the current thread locale from Windows - without any encoding info - and returns it as a string of the above form for use in forming file names etc. The returned string should be deallocated with g_free().
locale_filename_from_utf8
Converts a filename from UTF-8 to the system codepage.
package_installation_directory_of_moduleWindows or docsrs
This function tries to determine the installation directory of a software package based on the location of a DLL of the software package.

Type Aliases§

HANDLEUnix and docsrs