1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>GtkPreview</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
<link rel="start" href="index.html" title="GTK+ Reference Manual">
8
<link rel="up" href="DeprecatedObjects.html" title="Deprecated">
9
<link rel="prev" href="GtkPixmap.html" title="GtkPixmap">
10
<link rel="next" href="GtkProgress.html" title="GtkProgress">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
14
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
15
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
16
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
17
<link rel="chapter" href="ch02.html" title="Widget Gallery">
18
<link rel="chapter" href="WindowWidgets.html" title="Windows">
19
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
20
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
21
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
22
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
23
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
24
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
25
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
26
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
27
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
28
<link rel="chapter" href="Ornaments.html" title="Ornaments">
29
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
30
<link rel="chapter" href="Printing.html" title="Printing">
31
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
32
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
33
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
34
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
35
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
36
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
37
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
38
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
39
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
40
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
41
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
42
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
43
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
44
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
45
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
46
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
47
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
48
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
49
<link rel="glossary" href="glossary.html" title="Glossary">
50
<link rel="index" href="ix01.html" title="Index">
51
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
52
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
53
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
54
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
55
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
56
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
58
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
59
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
61
<td><a accesskey="p" href="GtkPixmap.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
62
<td><a accesskey="u" href="DeprecatedObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
63
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
64
<th width="100%" align="center">GTK+ Reference Manual</th>
65
<td><a accesskey="n" href="GtkProgress.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
67
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3974764" class="shortcut">Top</a>
69
<a href="#id3975369" class="shortcut">Description</a>
71
<a href="#id3975266" class="shortcut">Object Hierarchy</a>
73
<a href="#id3975313" class="shortcut">Implemented Interfaces</a>
75
<a href="#id3975336" class="shortcut">Properties</a></nobr></td></tr>
77
<div class="refentry" lang="en">
78
<a name="GtkPreview"></a><div class="titlepage"></div>
79
<div class="refnamediv"><table width="100%"><tr>
82
<a name="id3974764"></a><span class="refentrytitle">GtkPreview</span>
84
<p>GtkPreview — A widget to display RGB or grayscale data</p>
86
<td valign="top" align="right"></td>
88
<div class="refsynopsisdiv">
90
<pre class="synopsis">
92
#include <gtk/gtk.h>
95
<a href="GtkPreview.html#GtkPreview-struct">GtkPreview</a>;
96
<a href="GtkPreview.html#GtkPreviewInfo">GtkPreviewInfo</a>;
97
union <a href="GtkPreview.html#GtkDitherInfo">GtkDitherInfo</a>;
98
void <a href="GtkPreview.html#gtk-preview-uninit">gtk_preview_uninit</a> (void);
99
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkPreview.html#gtk-preview-new">gtk_preview_new</a> (<a href="gtk-Standard-Enumerations.html#GtkPreviewType">GtkPreviewType</a> type);
100
void <a href="GtkPreview.html#gtk-preview-size">gtk_preview_size</a> (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
103
void <a href="GtkPreview.html#gtk-preview-put">gtk_preview_put</a> (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
105
href="../gdk/gdk-Windows.html#GdkWindow"
106
>GdkWindow</a> *window,
108
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
116
void <a href="GtkPreview.html#gtk-preview-draw-row">gtk_preview_draw_row</a> (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
121
void <a href="GtkPreview.html#gtk-preview-set-expand">gtk_preview_set_expand</a> (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
123
void <a href="GtkPreview.html#gtk-preview-set-gamma">gtk_preview_set_gamma</a> (double gamma_);
124
void <a href="GtkPreview.html#gtk-preview-set-color-cube">gtk_preview_set_color_cube</a> (guint nred_shades,
128
void <a href="GtkPreview.html#gtk-preview-set-install-cmap">gtk_preview_set_install_cmap</a> (gint install_cmap);
129
void <a href="GtkPreview.html#gtk-preview-set-reserved">gtk_preview_set_reserved</a> (gint nreserved);
130
void <a href="GtkPreview.html#gtk-preview-set-dither">gtk_preview_set_dither</a> (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
132
href="../gdk/gdk-GdkRGB.html#GdkRgbDither"
133
>GdkRgbDither</a> dither);
135
href="../gdk/gdk-Visuals.html#GdkVisual"
136
>GdkVisual</a>* <a href="GtkPreview.html#gtk-preview-get-visual">gtk_preview_get_visual</a> (void);
138
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
139
>GdkColormap</a>* <a href="GtkPreview.html#gtk-preview-get-cmap">gtk_preview_get_cmap</a> (void);
140
<a href="GtkPreview.html#GtkPreviewInfo">GtkPreviewInfo</a>* <a href="GtkPreview.html#gtk-preview-get-info">gtk_preview_get_info</a> (void);
141
void <a href="GtkPreview.html#gtk-preview-reset">gtk_preview_reset</a> (void);
146
<div class="refsect1" lang="en">
147
<a name="id3975266"></a><h2>Object Hierarchy</h2>
148
<pre class="synopsis">
151
+----GInitiallyUnowned
152
+----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
153
+----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
157
<div class="refsect1" lang="en">
158
<a name="id3975313"></a><h2>Implemented Interfaces</h2>
160
GtkPreview implements
161
AtkImplementorIface.</p>
163
<div class="refsect1" lang="en">
164
<a name="id3975336"></a><h2>Properties</h2>
165
<pre class="synopsis">
167
"<a href="GtkPreview.html#GtkPreview--expand">expand</a>" gboolean : Read / Write
170
<div class="refsect1" lang="en">
171
<a name="id3975369"></a><h2>Description</h2>
173
The <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a> widget provides a simple interface
174
used to display images as RGB or grayscale data.
175
It's deprecated; just use a <a
176
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
177
><span class="type">GdkPixbuf</span></a> displayed by a <a href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>, or
178
perhaps a <a href="GtkDrawingArea.html" title="GtkDrawingArea"><span class="type">GtkDrawingArea</span></a>. <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a> has no advantage over those
182
<div class="refsect1" lang="en">
183
<a name="id3975427"></a><h2>Details</h2>
184
<div class="refsect2" lang="en">
185
<a name="id3975437"></a><h3>
186
<a name="GtkPreview-struct"></a>GtkPreview</h3>
187
<a class="indexterm" name="id3975450"></a><pre class="programlisting">typedef struct _GtkPreview GtkPreview;</pre>
188
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
189
<h3 class="title">Warning</h3>
190
<p><code class="literal">GtkPreview</code> is deprecated and should not be used in newly-written code.</p>
193
The <a href="GtkPreview.html#GtkPreview-struct"><span class="type">GtkPreview</span></a> struct contains private data only, and
194
should be accessed using the functions below.
198
<div class="refsect2" lang="en">
199
<a name="id3975488"></a><h3>
200
<a name="GtkPreviewInfo"></a>GtkPreviewInfo</h3>
201
<a class="indexterm" name="id3975502"></a><pre class="programlisting">typedef struct {
207
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
208
<h3 class="title">Warning</h3>
209
<p><code class="literal">GtkPreviewInfo</code> is deprecated and should not be used in newly-written code.</p>
212
Contains information about global properties
215
The <a href="GtkPreview.html#GtkPreviewInfo"><span class="type">GtkPreviewInfo</span></a> struct contains the following fields.
216
(These fields should be considered read-only. They should never be set by
220
<div class="informaltable"><table width="100%" border="0">
229
href="../gdk/gdk-Visuals.html#GdkVisual"
230
><span class="type">GdkVisual</span></a> *visual;</td>
231
<td>the visual used by all previews.</td>
236
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
237
><span class="type">GdkColormap</span></a> *cmap;</td>
238
<td>the colormap used by all previews.</td>
241
<td>gdouble gamma;</td>
242
<td>the gamma correction value used by all previews (See <a href="GtkPreview.html#gtk-preview-set-gamma"><code class="function">gtk_preview_set_gamma()</code></a>).</td>
251
<div class="refsect2" lang="en">
252
<a name="id3975628"></a><h3>
253
<a name="GtkDitherInfo"></a>union GtkDitherInfo</h3>
254
<a class="indexterm" name="id3975643"></a><pre class="programlisting">union GtkDitherInfo
260
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
261
<h3 class="title">Warning</h3>
262
<p><code class="literal">GtkDitherInfo</code> is deprecated and should not be used in newly-written code.</p>
265
This union not used in GTK+.
269
<div class="refsect2" lang="en">
270
<a name="id3975672"></a><h3>
271
<a name="gtk-preview-uninit"></a>gtk_preview_uninit ()</h3>
272
<a class="indexterm" name="id3975688"></a><pre class="programlisting">void gtk_preview_uninit (void);</pre>
273
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
274
<h3 class="title">Warning</h3>
275
<p><code class="literal">gtk_preview_uninit</code> is deprecated and should not be used in newly-written code.</p>
278
This function is deprecated and does nothing.
282
<div class="refsect2" lang="en">
283
<a name="id3975722"></a><h3>
284
<a name="gtk-preview-new"></a>gtk_preview_new ()</h3>
285
<a class="indexterm" name="id3975737"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_preview_new (<a href="gtk-Standard-Enumerations.html#GtkPreviewType">GtkPreviewType</a> type);</pre>
286
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
287
<h3 class="title">Warning</h3>
288
<p><code class="literal">gtk_preview_new</code> is deprecated and should not be used in newly-written code.</p>
291
Create a new preview widget.
293
<div class="variablelist"><table border="0">
294
<col align="left" valign="top">
297
<td><span class="term"><em class="parameter"><code>type</code></em> :</span></td>
298
<td>the type data contained by the widget.
303
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
304
<td>a new <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>
313
<div class="refsect2" lang="en">
314
<a name="id3975816"></a><h3>
315
<a name="gtk-preview-size"></a>gtk_preview_size ()</h3>
316
<a class="indexterm" name="id3975831"></a><pre class="programlisting">void gtk_preview_size (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
319
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
320
<h3 class="title">Warning</h3>
321
<p><code class="literal">gtk_preview_size</code> is deprecated and should not be used in newly-written code.</p>
324
Set the size that the preview widget will request
325
in response to a "size_request" signal. The
326
drawing area may actually be allocated a size
327
larger than this depending on how it is packed
328
within the enclosing containers. The effect
329
of this is determined by whether the preview
330
is set to expand or not (see <code class="function">gtk_preview_expand()</code>)
332
<div class="variablelist"><table border="0">
333
<col align="left" valign="top">
336
<td><span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
337
<td>a <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.
341
<td><span class="term"><em class="parameter"><code>width</code></em> :</span></td>
346
<td><span class="term"><em class="parameter"><code>height</code></em> :</span></td>
356
<div class="refsect2" lang="en">
357
<a name="id3975958"></a><h3>
358
<a name="gtk-preview-put"></a>gtk_preview_put ()</h3>
359
<a class="indexterm" name="id3975974"></a><pre class="programlisting">void gtk_preview_put (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
361
href="../gdk/gdk-Windows.html#GdkWindow"
362
>GdkWindow</a> *window,
364
href="../gdk/gdk-Graphics-Contexts.html#GdkGC"
372
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
373
<h3 class="title">Warning</h3>
374
<p><code class="literal">gtk_preview_put</code> is deprecated and should not be used in newly-written code.</p>
377
Takes a portion of the contents of a preview widget
378
and draws it onto the given drawable, <em class="parameter"><code>window</code></em>.
380
<div class="variablelist"><table border="0">
381
<col align="left" valign="top">
384
<td><span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
385
<td>a <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.
389
<td><span class="term"><em class="parameter"><code>window</code></em> :</span></td>
390
<td>a window or pixmap.
394
<td><span class="term"><em class="parameter"><code>gc</code></em> :</span></td>
395
<td>The graphics context for the operation. Only the
396
clip mask for this GC matters.
400
<td><span class="term"><em class="parameter"><code>srcx</code></em> :</span></td>
401
<td>the x coordinate of the upper left corner in the source image.
405
<td><span class="term"><em class="parameter"><code>srcy</code></em> :</span></td>
406
<td>the y coordinate of the upper left corner in the source image.
410
<td><span class="term"><em class="parameter"><code>destx</code></em> :</span></td>
411
<td>the x coordinate of the upper left corner in the destination image.
415
<td><span class="term"><em class="parameter"><code>desty</code></em> :</span></td>
416
<td>the y coordinate of the upper left corner in the destination image.
420
<td><span class="term"><em class="parameter"><code>width</code></em> :</span></td>
421
<td>the width of the rectangular portion to draw.
425
<td><span class="term"><em class="parameter"><code>height</code></em> :</span></td>
426
<td>the height of the rectangular portion to draw.
435
<div class="refsect2" lang="en">
436
<a name="id3976227"></a><h3>
437
<a name="gtk-preview-draw-row"></a>gtk_preview_draw_row ()</h3>
438
<a class="indexterm" name="id3976242"></a><pre class="programlisting">void gtk_preview_draw_row (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
443
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
444
<h3 class="title">Warning</h3>
445
<p><code class="literal">gtk_preview_draw_row</code> is deprecated and should not be used in newly-written code.</p>
448
Sets the data for a portion of a row.
450
<div class="variablelist"><table border="0">
451
<col align="left" valign="top">
454
<td><span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
455
<td>a <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.
459
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
460
<td>the new data for the portion. It should contain
461
<em class="parameter"><code>w</code></em> bytes of data if the preview is of type
462
GTK_TYPE_GRAYSCALE, and 3*<em class="parameter"><code>w</code></em> bytes of data
463
if the preview is of type GTK_TYPE_COLOR.
467
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
468
<td>the starting value on the row to set.
472
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
473
<td>the row to change.
477
<td><span class="term"><em class="parameter"><code>w</code></em> :</span></td>
478
<td>the number of pixels in the row to change.
487
<div class="refsect2" lang="en">
488
<a name="id3976410"></a><h3>
489
<a name="gtk-preview-set-expand"></a>gtk_preview_set_expand ()</h3>
490
<a class="indexterm" name="id3976425"></a><pre class="programlisting">void gtk_preview_set_expand (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
491
gboolean expand);</pre>
492
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
493
<h3 class="title">Warning</h3>
494
<p><code class="literal">gtk_preview_set_expand</code> is deprecated and should not be used in newly-written code.</p>
497
Determines the way that the the preview widget behaves
498
when the size it is allocated is larger than the requested
499
size. If <em class="parameter"><code>expand</code></em> is <code class="literal">FALSE</code>, then the preview's window
500
and buffer will be no larger than the size set with
501
<a href="GtkPreview.html#gtk-preview-size"><code class="function">gtk_preview_size()</code></a>, and the data set will be centered
502
in the allocation if it is larger. If <em class="parameter"><code>expand</code></em> is <code class="literal">TRUE</code>
503
then the window and buffer will expand with the allocation;
504
the application is responsible for catching
505
the "size_allocate" signal and providing the data
506
appropriate for this size.
508
<div class="variablelist"><table border="0">
509
<col align="left" valign="top">
512
<td><span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
513
<td>a <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.
517
<td><span class="term"><em class="parameter"><code>expand</code></em> :</span></td>
518
<td>whether the preview's window should expand or not.
527
<div class="refsect2" lang="en">
528
<a name="id3976565"></a><h3>
529
<a name="gtk-preview-set-gamma"></a>gtk_preview_set_gamma ()</h3>
530
<a class="indexterm" name="id3976581"></a><pre class="programlisting">void gtk_preview_set_gamma (double gamma_);</pre>
531
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
532
<h3 class="title">Warning</h3>
533
<p><code class="literal">gtk_preview_set_gamma</code> is deprecated and should not be used in newly-written code.</p>
536
Set the gamma-correction value for all preview widgets.
537
(This function will eventually be replaced with a
538
function that sets a per-preview-widget gamma value).
539
The resulting intensity is given by:
540
<code class="literal">destination_value * pow (source_value/255, 1/gamma)</code>.
541
The gamma value is applied when the data is
542
set with <a href="GtkPreview.html#gtk-preview-draw-row"><code class="function">gtk_preview_draw_row()</code></a> so changing this
543
value will not affect existing data in preview
546
<div class="variablelist"><table border="0">
547
<col align="left" valign="top">
549
<td><span class="term"><em class="parameter"><code>gamma_</code></em> :</span></td>
550
<td>the new gamma value.
558
<div class="refsect2" lang="en">
559
<a name="id3976663"></a><h3>
560
<a name="gtk-preview-set-color-cube"></a>gtk_preview_set_color_cube ()</h3>
561
<a class="indexterm" name="id3976680"></a><pre class="programlisting">void gtk_preview_set_color_cube (guint nred_shades,
564
guint ngray_shades);</pre>
565
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
566
<h3 class="title">Warning</h3>
567
<p><code class="literal">gtk_preview_set_color_cube</code> is deprecated and should not be used in newly-written code.</p>
570
This function is deprecated and does nothing. GdkRGB
571
automatically picks an optimium color cube for the
574
<div class="variablelist"><table border="0">
575
<col align="left" valign="top">
578
<td><span class="term"><em class="parameter"><code>nred_shades</code></em> :</span></td>
583
<td><span class="term"><em class="parameter"><code>ngreen_shades</code></em> :</span></td>
588
<td><span class="term"><em class="parameter"><code>nblue_shades</code></em> :</span></td>
593
<td><span class="term"><em class="parameter"><code>ngray_shades</code></em> :</span></td>
603
<div class="refsect2" lang="en">
604
<a name="id3976806"></a><h3>
605
<a name="gtk-preview-set-install-cmap"></a>gtk_preview_set_install_cmap ()</h3>
606
<a class="indexterm" name="id3976822"></a><pre class="programlisting">void gtk_preview_set_install_cmap (gint install_cmap);</pre>
607
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
608
<h3 class="title">Warning</h3>
609
<p><code class="literal">gtk_preview_set_install_cmap</code> is deprecated and should not be used in newly-written code.</p>
612
This function is deprecated
613
and does nothing. GdkRGB will automatically pick
614
a private colormap if it cannot allocate sufficient
617
<div class="variablelist"><table border="0">
618
<col align="left" valign="top">
620
<td><span class="term"><em class="parameter"><code>install_cmap</code></em> :</span></td>
629
<div class="refsect2" lang="en">
630
<a name="id3976884"></a><h3>
631
<a name="gtk-preview-set-reserved"></a>gtk_preview_set_reserved ()</h3>
632
<a class="indexterm" name="id3976900"></a><pre class="programlisting">void gtk_preview_set_reserved (gint nreserved);</pre>
633
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
634
<h3 class="title">Warning</h3>
635
<p><code class="literal">gtk_preview_set_reserved</code> is deprecated and should not be used in newly-written code.</p>
638
This function is deprecated and does nothing.
640
<div class="variablelist"><table border="0">
641
<col align="left" valign="top">
643
<td><span class="term"><em class="parameter"><code>nreserved</code></em> :</span></td>
652
<div class="refsect2" lang="en">
653
<a name="id3976960"></a><h3>
654
<a name="gtk-preview-set-dither"></a>gtk_preview_set_dither ()</h3>
655
<a class="indexterm" name="id3976976"></a><pre class="programlisting">void gtk_preview_set_dither (<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,
657
href="../gdk/gdk-GdkRGB.html#GdkRgbDither"
658
>GdkRgbDither</a> dither);</pre>
659
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
660
<h3 class="title">Warning</h3>
661
<p><code class="literal">gtk_preview_set_dither</code> is deprecated and should not be used in newly-written code.</p>
664
Set the dithering mode for the display.
666
<div class="variablelist"><table border="0">
667
<col align="left" valign="top">
670
<td><span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
671
<td>a <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.
675
<td><span class="term"><em class="parameter"><code>dither</code></em> :</span></td>
676
<td>the dithering mode.
685
<div class="refsect2" lang="en">
686
<a name="id3977065"></a><h3>
687
<a name="gtk-preview-get-visual"></a>gtk_preview_get_visual ()</h3>
688
<a class="indexterm" name="id3977080"></a><pre class="programlisting"><a
689
href="../gdk/gdk-Visuals.html#GdkVisual"
690
>GdkVisual</a>* gtk_preview_get_visual (void);</pre>
691
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
692
<h3 class="title">Warning</h3>
693
<p><code class="literal">gtk_preview_get_visual</code> is deprecated and should not be used in newly-written code.</p>
696
Returns the visual used by preview widgets. This
697
function is deprecated, and you should use
699
href="../gdk/gdk-GdkRGB.html#gdk-rgb-get-visual"
700
><code class="function">gdk_rgb_get_visual()</code></a> instead.
702
<div class="variablelist"><table border="0">
703
<col align="left" valign="top">
705
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
706
<td>the visual for previews.
714
<div class="refsect2" lang="en">
715
<a name="id3977144"></a><h3>
716
<a name="gtk-preview-get-cmap"></a>gtk_preview_get_cmap ()</h3>
717
<a class="indexterm" name="id3977159"></a><pre class="programlisting"><a
718
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
719
>GdkColormap</a>* gtk_preview_get_cmap (void);</pre>
720
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
721
<h3 class="title">Warning</h3>
722
<p><code class="literal">gtk_preview_get_cmap</code> is deprecated and should not be used in newly-written code.</p>
725
Returns the colormap used by preview widgets. This
726
function is deprecated, and you should use
728
href="../gdk/gdk-GdkRGB.html#gdk-rgb-get-cmap"
729
><code class="function">gdk_rgb_get_cmap()</code></a> instead.
731
<div class="variablelist"><table border="0">
732
<col align="left" valign="top">
734
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
735
<td>the colormap for previews.
743
<div class="refsect2" lang="en">
744
<a name="id3977222"></a><h3>
745
<a name="gtk-preview-get-info"></a>gtk_preview_get_info ()</h3>
746
<a class="indexterm" name="id3977238"></a><pre class="programlisting"><a href="GtkPreview.html#GtkPreviewInfo">GtkPreviewInfo</a>* gtk_preview_get_info (void);</pre>
747
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
748
<h3 class="title">Warning</h3>
749
<p><code class="literal">gtk_preview_get_info</code> is deprecated and should not be used in newly-written code.</p>
752
Return a <a href="GtkPreview.html#GtkPreviewInfo"><span class="type">GtkPreviewInfo</span></a> structure containing
753
global information about preview widgets.
755
<div class="variablelist"><table border="0">
756
<col align="left" valign="top">
758
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
759
<td>a <a href="GtkPreview.html#GtkPreviewInfo"><span class="type">GtkPreviewInfo</span></a> structure. The return
760
value belongs to GTK+ and must not be modified
769
<div class="refsect2" lang="en">
770
<a name="id3977306"></a><h3>
771
<a name="gtk-preview-reset"></a>gtk_preview_reset ()</h3>
772
<a class="indexterm" name="id3977322"></a><pre class="programlisting">void gtk_preview_reset (void);</pre>
773
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
774
<h3 class="title">Warning</h3>
775
<p><code class="literal">gtk_preview_reset</code> is deprecated and should not be used in newly-written code.</p>
778
This function is deprecated and does nothing. It was
779
once used for changing the colormap and visual on the fly.
783
<div class="refsect1" lang="en">
784
<a name="id3977358"></a><h2>Property Details</h2>
785
<div class="refsect2" lang="en">
786
<a name="id3977369"></a><h3>
787
<a name="GtkPreview--expand"></a>The "<code class="literal">expand</code>" property</h3>
788
<a class="indexterm" name="id3977385"></a><pre class="programlisting"> "expand" gboolean : Read / Write</pre>
789
<p>Whether the preview widget should take up the entire space it is allocated.</p>
790
<p>Default value: FALSE</p>
793
<div class="refsect1" lang="en">
794
<a name="id3977414"></a><h2>See Also</h2>
797
<div class="variablelist"><table border="0">
798
<col align="left" valign="top">
800
<td><span class="term"><span class="type">GdkRGB</span></span></td>
801
<td><p>the backend used by <a href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.</p></td>