Select Git revision
Crypto.pmod
-
Henrik (Grubba) Grubbström authored
Rev: lib/modules/Crypto.pmod:1.4
Henrik (Grubba) Grubbström authoredRev: lib/modules/Crypto.pmod:1.4
gtk_part1.wmml 9.35 KiB
<section title="The Pike GTK wrapper library" name=gtk>
<section title="Introduction">
The GTK module provides an object oriented wrapper library for the <a
href="http://www.gtk.org/">GTK+ Widget library</a>
<p>
From the GTK web-site:
<p>
<i>
GTK (GIMP Toolkit) is a library for creating graphical user
interfaces. It is licensed using the LGPL license, so you can develop
open software, free software, or even commercial non-free software
using GTK without having to spend anything for licenses or royalties.
<p>
It's called the GIMP toolkit because it was originally written for
developing the General Image Manipulation Program (GIMP), but GTK has
now been used in a large number of software projects, including the
GNU Network Object Model Environment (GNOME) project. GTK is built on
top of GDK (GIMP Drawing Kit) which is basically a wrapper around the
low-level functions for accessing the underlying windowing functions
(Xlib in the case of the X windows system). The primary authors of GTK
are:
<ul>
<li>Peter Mattis <a href=mailto:petm@xcf.berkeley.edu>petm@xcf.berkeley.edu</a>
<li>Spencer Kimball <a href=mailto:spencer@xcf.berkeley.edu>spencer@xcf.berkeley.edu</a>
<li>Josh MacDonald <a href="mailto:jmacd@xcf.berkeley.edu">jmacd@xcf.berkeley.edu</a>
</ul>
<p>
</i>
The Pike GTK module is written mainly by <a
href=http://per.hedbor.org>Per Hedbor</a> <a
href="mailto:per@idonex.se">per@idonex.se</a>
<p>
Pike GTK contains more than simple wrappers for all GTK functions,
especially image handling capabilities has been added.
<p>
</section>
<section title="Tutorial">
<section title="Getting started with Pike GTK">
First, you must have GTK 1.2 or newer installed when you compile pike,
otherwise the GTK module will not be enabled.
<p>
If you are unsure whether or not the pike you are using has GTK, try
running 'pike -e GTK.setup_gtk()' from a shell, if you do not get an
error message, GTK is available.
<p>
The first program is a (very) short example program that creates a
window, and then does nothing else.
<example language=pike>
#!/usr/local/bin/pike
void main(int argc, array argv)
{
argv = GTK.setup_gtk( argv );
GTK.Window( GTK.WindowToplevel )->show();