gotk4

package module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

README

gotk4 logo

gotk4

built with nix

A GTK4 bindings generator for Go.

Package documentation | Package examples | GIR documentation | Progress tracker

All generated packages are in pkg/. The generation code is in gir/girgen/.

Examples are put in another repository, diamondburned/gotk4-examples, along with instructions on getting started with using these packages. Refer to its README for more information.

As of the time this README was written, most of pkg/gtk/v4 and pkg/gtk/v3 are ready to be used for most purposes. However, memory leaks and sometimes crashes may occur in certain parts of the API, while other parts might be completely missing. In that case, an issue should be opened.

Contributing to gotk4

For contributing guidelines, see CONTRIBUTING.md.

Community

For questions and discussions, join the gotk4 Matrix room!

License

gotk4 contains 3 directories licensed differently:

Some small snippets of code were taken from tinyzimmer's go-glib, which implements type subclassing.

The logo is licensed under the Creative Commons CC0 1.0 Universal Public Domain Dedication from egonelbre/gophers. It was modified to have a GTK4 logo.

The Gopher itself is licensed under the Creative Commons Attribution 4.0 by Renee French.

The GTK logo is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported by Andreas Nilsson, taken from the GNOME Project.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
gir
Package gir provides GIR types, as well as functions that parse GIR files.
Package gir provides GIR types, as well as functions that parse GIR files.
cmd/gir-generate/gendata
Package gendata contains data used to generate GTK4 bindings for Go.
Package gendata contains data used to generate GTK4 bindings for Go.
girgen/cmt
Package cmt provides functions that parse and render GIR comments into nice and conventional Go comments.
Package cmt provides functions that parse and render GIR comments into nice and conventional Go comments.
girgen/file
Package file provides per-file state helpers, such as for tracking imports.
Package file provides per-file state helpers, such as for tracking imports.
girgen/generators/callable
Package callable provides a generic callable generator.
Package callable provides a generic callable generator.
girgen/generators/iface
Package iface provides an interface generator.
Package iface provides an interface generator.
girgen/gotmpl
Package gotmpl provides abstractions around text/template to better generate Go files.
Package gotmpl provides abstractions around text/template to better generate Go files.
girgen/logger
Package logger provides abstractions over girgen's logging.
Package logger provides abstractions over girgen's logging.
girgen/strcases
Package strcases provides helper functions to convert between string cases, such as Pascal Case, snake_case and Go's Mixed Caps, along with various special cases.
Package strcases provides helper functions to convert between string cases, such as Pascal Case, snake_case and Go's Mixed Caps, along with various special cases.
girgen/types/typeconv
Package typeconv provides conversions between C and Go types.
Package typeconv provides conversions between C and Go types.
pkgconfig
Package pkgconfig provides a wrapper around the pkg-config binary.
Package pkgconfig provides a wrapper around the pkg-config binary.
pkg module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL