![]() | ![]() | ![]() | GIMP Widgets Library Reference Manual | ![]() |
---|
GimpPreview —
struct GimpPreview; gboolean gimp_preview_get_update (GimpPreview *preview); void gimp_preview_set_update (GimpPreview *preview, gboolean update); void gimp_preview_set_bounds (GimpPreview *preview, gint xmin, gint ymin, gint xmax, gint ymax); void gimp_preview_get_size (GimpPreview *preview, gint *width, gint *height); void gimp_preview_get_position (GimpPreview *preview, gint *x, gint *y); void gimp_preview_draw (GimpPreview *preview); void gimp_preview_draw_buffer (GimpPreview *preview, const guchar *buffer, gint rowstride); void gimp_preview_invalidate (GimpPreview *preview);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GimpPreview
gboolean gimp_preview_get_update (GimpPreview *preview);
preview : | a GimpPreview widget |
Returns : | the state of the "Preview" check button. |
Since GIMP 2.2
void gimp_preview_set_update (GimpPreview *preview, gboolean update);
Sets the state of the "Preview" check button.
preview : | a GimpPreview widget |
update : | TRUE if the preview should invalidate itself when being scrolled or when gimp_preview_invalidate() is being called |
Since GIMP 2.2
void gimp_preview_set_bounds (GimpPreview *preview, gint xmin, gint ymin, gint xmax, gint ymax);
Sets the lower and upper limits for the previewed area. The difference between the upper and lower value is used to set the maximum size of the GimpPreviewArea used in the preview.
preview : | a GimpPreview widget |
xmin : | |
ymin : | |
xmax : | |
ymax : |
Since GIMP 2.2
void gimp_preview_get_size (GimpPreview *preview, gint *width, gint *height);
preview : | a GimpPreview widget |
width : | return location for the preview area width |
height : | return location for the preview area height |
Since GIMP 2.2
void gimp_preview_get_position (GimpPreview *preview, gint *x, gint *y);
preview : | a GimpPreview widget |
x : | return location for the horizontal offset |
y : | return location for the vertical offset |
Since GIMP 2.2
void gimp_preview_draw_buffer (GimpPreview *preview, const guchar *buffer, gint rowstride);
preview : | |
buffer : | |
rowstride : |
void user_function (GimpPreview *gimppreview, gpointer user_data);
gimppreview : | the object which received the signal. |
user_data : | user data set when the signal handler was connected. |
<< GimpPreviewArea | GimpScrolledPreview >> |