4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimpui</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
<link rel="up" href="libgimpui.html" title="Part III. GIMP User Interface Library">
8
<link rel="up" href="libgimpui.html" title="Part II. GIMP User Interface Library">
9
9
<link rel="prev" href="libgimpui-hierarchy.html" title="Object Hierarchy">
10
10
<link rel="next" href="libgimp-gimpexport.html" title="gimpexport">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
14
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
32
<td><a accesskey="n" href="libgimp-gimpexport.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2555096" class="shortcut">Top</a>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2594443" class="shortcut">Top</a>
33
<a href="#id2587044" class="shortcut">Description</a></nobr></td></tr>
36
<a href="#id2711053" class="shortcut">Description</a></nobr></td></tr>
35
38
<div class="refentry" lang="en">
36
39
<a name="libgimp-gimpui"></a><div class="titlepage"></div>
37
40
<div class="refnamediv"><table width="100%"><tr>
40
<a name="id2555096"></a><span class="refentrytitle">gimpui</span>
43
<a name="id2594443"></a><span class="refentrytitle">gimpui</span>
42
45
<p>gimpui — Common user interface functions. This header includes all other GIMP User
43
46
Interface Library headers.</p>
53
void <a href="libgimp-gimpui.html#gimp-ui-init">gimp_ui_init</a> (const gchar *prog_name,
56
void <a href="libgimp-gimpui.html#gimp-ui-init">gimp_ui_init</a> (const gchar *prog_name,
58
GdkWindow* <a href="libgimp-gimpui.html#gimp-ui-get-display-window">gimp_ui_get_display_window</a> (guint32 gdisp_ID);
59
GdkWindow* <a href="libgimp-gimpui.html#gimp-ui-get-progress-window">gimp_ui_get_progress_window</a> (void);
60
void <a href="libgimp-gimpui.html#gimp-window-set-transient">gimp_window_set_transient</a> (GtkWindow *window);
61
void <a href="libgimp-gimpui.html#gimp-window-set-transient-for-display">gimp_window_set_transient_for_display</a>
57
66
<div class="refsect1" lang="en">
58
<a name="id2587044"></a><h2>Description</h2>
67
<a name="id2711053"></a><h2>Description</h2>
60
69
Common user interface functions. This header includes all other GIMP User
61
70
Interface Library headers.
65
74
<div class="refsect1" lang="en">
66
<a name="id2651878"></a><h2>Details</h2>
75
<a name="id2711070"></a><h2>Details</h2>
67
76
<div class="refsect2" lang="en">
68
<a name="id2650752"></a><h3>
77
<a name="id2711080"></a><h3>
69
78
<a name="gimp-ui-init"></a>gimp_ui_init ()</h3>
70
<a class="indexterm" name="id2650763"></a><pre class="programlisting">void gimp_ui_init (const gchar *prog_name,
71
gboolean preview);</pre>
79
<a class="indexterm" name="id2711092"></a><pre class="programlisting">void gimp_ui_init (const gchar *prog_name,
80
gboolean preview);</pre>
73
82
This function initializes GTK+ with <code class="function">gtk_init()</code> and initializes GDK's
74
83
image rendering subsystem (GdkRGB) to follow the GIMP main program's
112
<div class="refsect2" lang="en">
113
<a name="id2707517"></a><h3>
114
<a name="gimp-ui-get-display-window"></a>gimp_ui_get_display_window ()</h3>
115
<a class="indexterm" name="id2707530"></a><pre class="programlisting">GdkWindow* gimp_ui_get_display_window (guint32 gdisp_ID);</pre>
117
Returns the <span class="type">GdkWindow</span> of a display window. The purpose is to allow
118
to make plug-in dialogs transient to the image display as explained
119
with <code class="function">gdk_window_set_transient_for()</code>.
122
You shouldn't have to call this function directly. Use
123
<a href="libgimp-gimpui.html#gimp-window-set-transient-for-display"><code class="function">gimp_window_set_transient_for_display()</code></a> instead.</p>
127
<div class="variablelist"><table border="0">
128
<col align="left" valign="top">
131
<td><span class="term"><em class="parameter"><code>gdisp_ID</code></em> :</span></td>
136
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
137
<td> A reference to a <span class="type">GdkWindow</span> or <code class="literal">NULL</code>. You should
138
unref the window using <code class="function">g_object_unref()</code> as soon as
139
you don't need it any longer.
145
<p class="since">Since GIMP 2.4
149
<div class="refsect2" lang="en">
150
<a name="id2709149"></a><h3>
151
<a name="gimp-ui-get-progress-window"></a>gimp_ui_get_progress_window ()</h3>
152
<a class="indexterm" name="id2709163"></a><pre class="programlisting">GdkWindow* gimp_ui_get_progress_window (void);</pre>
154
Returns the <span class="type">GdkWindow</span> of the window this plug-in's progress bar is
155
shown in. Use it to make plug-in dialogs transient to this window
156
as explained with <code class="function">gdk_window_set_transient_for()</code>.
159
You shouldn't have to call this function directly. Use
160
<a href="libgimp-gimpui.html#gimp-window-set-transient"><code class="function">gimp_window_set_transient()</code></a> instead.</p>
164
<div class="variablelist"><table border="0">
165
<col align="left" valign="top">
167
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
168
<td> A reference to a <span class="type">GdkWindow</span> or <code class="literal">NULL</code>. You should
169
unref the window using <code class="function">g_object_unref()</code> as soon as
170
you don't need it any longer.
175
<p class="since">Since GIMP 2.4
179
<div class="refsect2" lang="en">
180
<a name="id2712646"></a><h3>
181
<a name="gimp-window-set-transient"></a>gimp_window_set_transient ()</h3>
182
<a class="indexterm" name="id2712660"></a><pre class="programlisting">void gimp_window_set_transient (GtkWindow *window);</pre>
184
Indicates to the window manager that <em class="parameter"><code>window</code></em> is a transient dialog
185
associated with the GIMP window that the plug-in has been
186
started from. See also <a href="libgimp-gimpui.html#gimp-window-set-transient-for-display"><code class="function">gimp_window_set_transient_for_display()</code></a>.</p>
190
<div class="variablelist"><table border="0">
191
<col align="left" valign="top">
193
<td><span class="term"><em class="parameter"><code>window</code></em> :</span></td>
194
<td> the <span class="type">GtkWindow</span> that should become transient
198
<p class="since">Since GIMP 2.4
202
<div class="refsect2" lang="en">
203
<a name="id2712738"></a><h3>
204
<a name="gimp-window-set-transient-for-display"></a>gimp_window_set_transient_for_display ()</h3>
205
<a class="indexterm" name="id2712752"></a><pre class="programlisting">void gimp_window_set_transient_for_display
207
guint32 gdisp_ID);</pre>
209
Indicates to the window manager that <em class="parameter"><code>window</code></em> is a transient dialog
210
associated with the GIMP image window that is identified by it's
211
display ID. See <code class="function">gdk_window_set_transient_for()</code> for more information.
214
Most of the time you will want to use the convenience function
215
<a href="libgimp-gimpui.html#gimp-window-set-transient"><code class="function">gimp_window_set_transient()</code></a>.</p>
219
<div class="variablelist"><table border="0">
220
<col align="left" valign="top">
223
<td><span class="term"><em class="parameter"><code>window</code></em> :</span></td>
224
<td> the <span class="type">GtkWindow</span> that should become transient
228
<td><span class="term"><em class="parameter"><code>gdisp_ID</code></em> :</span></td>
229
<td> display ID of the image window that should become the parent
234
<p class="since">Since GIMP 2.4
105
238
<div class="refsect1" lang="en">
106
<a name="id2650875"></a><h2>See Also</h2>
239
<a name="id2710057"></a><h2>See Also</h2>
108
241
<code class="function">gtk_init()</code>, <code class="function">gdk_set_use_xshm()</code>, <code class="function">gdk_rgb_set_min_colors()</code>,
109
242
<code class="function">gdk_rgb_set_install()</code>, <code class="function">gdk_rgb_get_visual()</code>, <code class="function">gdk_rgb_get_cmap()</code>,