1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpui</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part�III.�GIMP User Interface Library"><link rel="prev" href="libgimpui-hierarchy.html" title="Object Hierarchy"><link rel="next" href="libgimp-gimpexport.html" title="gimpexport"><meta name="generator" content="GTK-Doc V1.2 (XML mode)"><style type="text/css">
2
.synopsis, .classsynopsis {
4
border: solid 1px #aaaaaa;
9
border: solid 1px #aaaaff;
18
border: solid 1px #ffaaaa;
25
.navigation a:visited {
31
</style></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimpui-hierarchy.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpexport.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpui"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">gimpui</span></h2><p>gimpui — Common user interface functions. This header includes all other GIMP User
32
Interface Library headers.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
36
void <a href="libgimp-gimpui.html#gimp-ui-init">gimp_ui_init</a> (const <a
37
href="../glib/glib-Basic-Types.html#gchar"
38
>gchar</a> *prog_name,
40
href="../glib/glib-Basic-Types.html#gboolean"
41
>gboolean</a> preview);
42
</pre></div><div class="refsect1" lang="en"><a name="id2638452"></a><h2>Description</h2><p>
43
Common user interface functions. This header includes all other GIMP User
44
Interface Library headers.
46
</p></div><div class="refsect1" lang="en"><a name="id2619058"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2619063"></a><h3><a name="gimp-ui-init"></a>gimp_ui_init ()</h3><a class="indexterm" name="id2651717"></a><pre class="programlisting">void gimp_ui_init (const <a
47
href="../glib/glib-Basic-Types.html#gchar"
48
>gchar</a> *prog_name,
50
href="../glib/glib-Basic-Types.html#gboolean"
51
>gboolean</a> preview);</pre><p>
52
This function initializes GTK+ with <a
53
href="../gtk/gtk-General.html#gtk-init"
54
><tt class="function">gtk_init()</tt></a> and initializes GDK's
55
image rendering subsystem (GdkRGB) to follow the GIMP main program's
56
colormap allocation/installation policy.
58
The GIMP's colormap policy can be determinded by the user with the
59
gimprc variables <i class="parameter"><tt>min_colors</tt></i> and <i class="parameter"><tt>install_cmap</tt></i>.</p><p>
61
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>prog_name</tt></i>�:</span></td><td> The name of the plug-in which will be passed as argv[0] to
63
href="../gtk/gtk-General.html#gtk-init"
64
><tt class="function">gtk_init()</tt></a>. It's a convention to use the name of the
65
executable and _not_ the PDB procedure name or something.
66
</td></tr><tr><td><span class="term"><i class="parameter"><tt>preview</tt></i>�:</span></td><td> This parameter is unused and exists for historical
68
</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2651802"></a><h2>See Also</h2><p>
70
href="../gtk/gtk-General.html#gtk-init"
71
><tt class="function">gtk_init()</tt></a>, <a
72
href="../gdk/gdk-General.html#gdk-set-use-xshm"
73
><tt class="function">gdk_set_use_xshm()</tt></a>, <a
74
href="../gdk/gdk-GdkRGB.html#gdk-rgb-set-min-colors"
75
><tt class="function">gdk_rgb_set_min_colors()</tt></a>,
77
href="../gdk/gdk-GdkRGB.html#gdk-rgb-set-install"
78
><tt class="function">gdk_rgb_set_install()</tt></a>, <a
79
href="../gdk/gdk-GdkRGB.html#gdk-rgb-get-visual"
80
><tt class="function">gdk_rgb_get_visual()</tt></a>, <a
81
href="../gdk/gdk-GdkRGB.html#gdk-rgb-get-cmap"
82
><tt class="function">gdk_rgb_get_cmap()</tt></a>,
84
href="../gtk/GtkWidget.html#gtk-widget-set-default-visual"
85
><tt class="function">gtk_widget_set_default_visual()</tt></a>, <a
86
href="../gtk/GtkWidget.html#gtk-widget-set-default-colormap"
87
><tt class="function">gtk_widget_set_default_colormap()</tt></a>,
89
href="../gtk/GtkPreview.html#gtk-preview-set-gamma"
90
><tt class="function">gtk_preview_set_gamma()</tt></a>.
91
</p></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimpui-hierarchy.html"><b><<�Object Hierarchy</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpexport.html"><b>gimpexport�>></b></a></td></tr></table></body></html>