/*
* Copyright (c) 2003-2005 by the gtk2-perl team (see the file AUTHORS)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307 USA.
*
* $Id$
*/
#include "gtk2perl.h"
MODULE = Gtk2::Image PACKAGE = Gtk2::Image PREFIX = gtk_image_
GtkWidget*
gtk_image_new (class)
C_ARGS:
/*void*/
## GtkWidget* gtk_image_new_from_pixmap (GdkPixmap *pixmap, GdkBitmap *mask)
GtkWidget*
gtk_image_new_from_pixmap (class, pixmap, mask)
GdkPixmap_ornull * pixmap
GdkBitmap_ornull * mask
C_ARGS:
pixmap, mask
## GtkWidget* gtk_image_new_from_image (GdkImage *image, GdkBitmap *mask)
GtkWidget*
gtk_image_new_from_image (class, image, mask)
GdkImage_ornull *image
GdkBitmap_ornull *mask
C_ARGS:
image, mask
GtkWidget*
gtk_image_new_from_file (class, filename)
GPerlFilename_ornull filename
C_ARGS:
filename
## GtkWidget* gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf)
GtkWidget*
gtk_image_new_from_pixbuf (class, pixbuf)
GdkPixbuf_ornull * pixbuf
C_ARGS:
pixbuf
GtkWidget*
gtk_image_new_from_stock (class, stock_id, size)
const gchar *stock_id
GtkIconSize size
C_ARGS:
stock_id, size
## GtkWidget* gtk_image_new_from_icon_set (GtkIconSet *icon_set, GtkIconSize size)
GtkWidget*
gtk_image_new_from_icon_set (class, icon_set, size)
GtkIconSet *icon_set
GtkIconSize size
C_ARGS:
icon_set, size
## GtkWidget* gtk_image_new_from_animation (GdkPixbufAnimation *animation)
GtkWidget*
gtk_image_new_from_animation (class, GdkPixbufAnimation *animation)
C_ARGS:
animation
## void gtk_image_set_from_pixmap (GtkImage *image, GdkPixmap *pixmap, GdkBitmap *mask)
void
gtk_image_set_from_pixmap (image, pixmap, mask)
GtkImage * image
GdkPixmap_ornull * pixmap
GdkBitmap_ornull * mask
void
gtk_image_set_from_image (image, gdk_image, mask)
GtkImage *image
GdkImage_ornull *gdk_image
GdkBitmap_ornull *mask
void
gtk_image_set_from_file (image, filename)
GtkImage *image
GPerlFilename_ornull filename
void
gtk_image_set_from_pixbuf (image, pixbuf)
GtkImage *image
GdkPixbuf_ornull *pixbuf
void
gtk_image_set_from_stock (image, stock_id, size)
GtkImage *image
const gchar *stock_id
GtkIconSize size
void
gtk_image_set_from_icon_set (image, icon_set, size)
GtkImage *image
GtkIconSet *icon_set
GtkIconSize size
void
gtk_image_set_from_animation (GtkImage *image, GdkPixbufAnimation *animation)
GtkImageType
gtk_image_get_storage_type (image)
GtkImage *image
## void gtk_image_get_pixmap (GtkImage *image, GdkPixmap **pixmap, GdkBitmap **mask)
void
gtk_image_get_pixmap (GtkImage *image)
PREINIT:
GdkPixmap * pixmap = NULL;
GdkBitmap * mask = NULL;
PPCODE:
gtk_image_get_pixmap (image, &pixmap, &mask);
EXTEND (SP, 2);
PUSHs (sv_2mortal (newSVGdkPixmap (pixmap)));
PUSHs (sv_2mortal (newSVGdkBitmap (mask)));
## void gtk_image_get_image (GtkImage *image, GdkImage **gdk_image, GdkBitmap **mask)
void
gtk_image_get_image (GtkImage *image)
PREINIT:
GdkImage * gdk_image = NULL;
GdkBitmap * mask = NULL;
PPCODE:
gtk_image_get_image (image, &gdk_image, &mask);
EXTEND (SP, 2);
PUSHs (sv_2mortal (newSVGdkImage (gdk_image)));
PUSHs (sv_2mortal (newSVGdkBitmap (mask)));
GdkPixbuf*
gtk_image_get_pixbuf (image)
GtkImage *image
=for apidoc
=for signature (stock_id, icon_size) = $image->get_stock
=cut
void
gtk_image_get_stock (image)
GtkImage * image
PREINIT:
gchar * stock_id;
GtkIconSize size;
PPCODE:
gtk_image_get_stock (image, &stock_id, &size);
EXTEND (SP, 2);
PUSHs (sv_2mortal (stock_id ? newSVpv (stock_id, 0) :
newSVsv(&PL_sv_undef)));
PUSHs (sv_2mortal (newSVGtkIconSize (size)));
## void gtk_image_get_icon_set (GtkImage *image, GtkIconSet **icon_set, GtkIconSize *size)
void
gtk_image_get_icon_set (GtkImage *image)
PREINIT:
GtkIconSet *icon_set = NULL;
GtkIconSize size;
PPCODE:
gtk_image_get_icon_set (image, &icon_set, &size);
EXTEND (SP, 2);
PUSHs (sv_2mortal (newSVGtkIconSet (icon_set)));
PUSHs (sv_2mortal (newSVGtkIconSize (size)));
GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image)
# deprecated
## void gtk_image_get (GtkImage *image, GdkImage **val, GdkBitmap **mask)
##void gtk_image_set (GtkImage *image, GdkImage *val, GdkBitmap *mask)
#if GTK_CHECK_VERSION (2, 6, 0)
## GtkWidget * gtk_image_new_from_icon_name (const gchar *icon_name, GtkIconSize size)
GtkWidget *
gtk_image_new_from_icon_name (class, icon_name, size)
const gchar *icon_name
GtkIconSize size
C_ARGS:
icon_name, size
void gtk_image_set_from_icon_name (GtkImage *image, const gchar *icon_name, GtkIconSize size)
# void gtk_image_get_icon_name (GtkImage *image, const gchar **icon_name, GtkIconSize *size)
void
gtk_image_get_icon_name (GtkImage *image)
PREINIT:
const gchar *icon_name = NULL;
GtkIconSize size;
PPCODE:
gtk_image_get_icon_name (image, &icon_name, &size);
EXTEND (SP, 2);
PUSHs (sv_2mortal (newSVGChar (icon_name)));
PUSHs (sv_2mortal (newSVGtkIconSize (size)));
void gtk_image_set_pixel_size (GtkImage *image, gint pixel_size)
gint gtk_image_get_pixel_size (GtkImage *image)
#endif
#if GTK_CHECK_VERSION (2, 8, 0)
void gtk_image_clear (GtkImage *image);
#endif