Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction Properties Author(s) References
A widget to display RGB or grayscale data
gtkPreviewUninit()
gtkPreviewNew(type, show = TRUE)
gtkPreviewSize(object, width, height)
gtkPreviewPut(object, window, gc, srcx, srcy, destx, desty, width, height)
gtkPreviewDrawRow(object, data, y, w)
gtkPreviewSetExpand(object, expand)
gtkPreviewSetGamma(gamma)
gtkPreviewSetColorCube(nred.shades, ngreen.shades, nblue.shades, ngray.shades)
gtkPreviewSetInstallCmap(install.cmap)
gtkPreviewSetReserved(nreserved)
gtkPreviewSetDither(object, dither)
gtkPreviewGetVisual()
gtkPreviewGetCmap()
gtkPreviewGetInfo()
gtkPreviewReset()
gtkPreview(type, show = TRUE)
1 2 3 4 5 | GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkPreview
|
GtkPreview implements
AtkImplementorIface and GtkBuildable
.
The GtkPreview
widget provides a simple interface
used to display images as RGB or grayscale data.
It's deprecated; just use a GdkPixbuf
displayed by a GtkImage
, or
perhaps a GtkDrawingArea
. GtkPreview
has no advantage over those
approaches.
GtkPreview
WARNING: GtkPreview
is deprecated and should not be used in newly-written code.
The GtkPreview
struct contains private data only, and
should be accessed using the functions below.
GtkPreviewInfo
WARNING: GtkPreviewInfo
is deprecated and should not be used in newly-written code.
Contains information about global properties
of preview widgets.
The GtkPreviewInfo
struct contains the following fields.
(These fields should be considered read-only. They should never be set by
an application.)
GdkVisual *visual; | the visual used by all previews. |
GdkColormap *cmap; | the colormap used by all previews. |
gdouble gamma; | the gamma correction value used by all previews (See gtkPreviewSetGamma ). |
gtkPreview
is the equivalent of gtkPreviewNew
.
expand
[logical : Read / Write]Whether the preview widget should take up the entire space it is allocated. Default value: FALSE
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gtk2/stable/GtkPreview.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.