zargot / oldgtk3

Low level GTK3 bindings for Nim language, complete nimble package for GTK 3.22

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Low level GTK3 bindings for the Nim programming language

This repository contains bindings from the Nim programming language to the GTK3 GUI (Graphical User Interface) library and related libraries.

Nim is a modern universal programming language.

GTK, also known as the Gimp Tool Kit and now sometimes also called Gnome Tool Kit, is a Graphical User Interface library.

Basically this is an updated copy of the individual files from https://github.com/ngtk3 to form a single package which can be installed with Nim’s package manager. The bindings are created with c2nim v 0.9.13 from latest GTK 3.22 header files.

# install
nimble install oldgtk3

After install, you can use this package in the same way as you have used the ngtk3 modules, but import has now the qualified form import oldgtk3/[glib, gobject, gdk, gtk, cairo, pango].

This package is only tested with 64 bit Linux currently.

The name oldgtk3 is a bit misleading — we need a unique toplevel name to avoid name conflicts with the legacy floating gtk2 related packages, and at the same time the name is a hint that with package gintro we now have even high level, gobject-introspection based bindings.

Small test examples are available in the subdirectories called tests in this repository.

Later I will extend this README file with some example programs and I will modify the NEd editor and the nim-chess game for using this package. Basically for that only the import lists have to be modified.

About

Low level GTK3 bindings for Nim language, complete nimble package for GTK 3.22

License:MIT License


Languages

Language:Nim 78.7%Language:Shell 16.2%Language:Ruby 5.1%