Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkimage.h File Reference
#include <gio/gio.h>
#include <gtk/gtkwidget.h>

Go to the source code of this file.

Macros

#define GTK_TYPE_IMAGE   (gtk_image_get_type ())
 
#define GTK_IMAGE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage))
 
#define GTK_IS_IMAGE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE))
 

Typedefs

typedef struct _GtkImage GtkImage
 

Enumerations

enum  GtkImageType { GTK_IMAGE_EMPTY , GTK_IMAGE_ICON_NAME , GTK_IMAGE_GICON , GTK_IMAGE_PAINTABLE }
 

Functions

GDK_AVAILABLE_IN_ALL GType gtk_image_get_type (void) G_GNUC_CONST
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_image_new (void)
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_image_new_from_file (const char *filename)
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_image_new_from_resource (const char *resource_path)
 
GtkWidgetgtk_image_new_from_pixbuf (GdkPixbuf *pixbuf)
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_image_new_from_paintable (GdkPaintable *paintable)
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_image_new_from_icon_name (const char *icon_name)
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_image_new_from_gicon (GIcon *icon)
 
GDK_AVAILABLE_IN_ALL void gtk_image_clear (GtkImage *image)
 
GDK_AVAILABLE_IN_ALL void gtk_image_set_from_file (GtkImage *image, const char *filename)
 
GDK_AVAILABLE_IN_ALL void gtk_image_set_from_resource (GtkImage *image, const char *resource_path)
 
void gtk_image_set_from_pixbuf (GtkImage *image, GdkPixbuf *pixbuf)
 
GDK_AVAILABLE_IN_ALL void gtk_image_set_from_paintable (GtkImage *image, GdkPaintable *paintable)
 
GDK_AVAILABLE_IN_ALL void gtk_image_set_from_icon_name (GtkImage *image, const char *icon_name)
 
GDK_AVAILABLE_IN_ALL void gtk_image_set_from_gicon (GtkImage *image, GIcon *icon)
 
GDK_AVAILABLE_IN_ALL void gtk_image_set_pixel_size (GtkImage *image, int pixel_size)
 
GDK_AVAILABLE_IN_ALL void gtk_image_set_icon_size (GtkImage *image, GtkIconSize icon_size)
 
GDK_AVAILABLE_IN_ALL GtkImageType gtk_image_get_storage_type (GtkImage *image)
 
GDK_AVAILABLE_IN_ALL GdkPaintable * gtk_image_get_paintable (GtkImage *image)
 
GDK_AVAILABLE_IN_ALL const char * gtk_image_get_icon_name (GtkImage *image)
 
GDK_AVAILABLE_IN_ALL GIcongtk_image_get_gicon (GtkImage *image)
 
GDK_AVAILABLE_IN_ALL int gtk_image_get_pixel_size (GtkImage *image)
 
GDK_AVAILABLE_IN_ALL GtkIconSize gtk_image_get_icon_size (GtkImage *image)
 

Macro Definition Documentation

◆ GTK_IMAGE

#define GTK_IMAGE ( obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage))

Definition at line 39 of file gtkimage.h.

◆ GTK_IS_IMAGE

#define GTK_IS_IMAGE ( obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE))

Definition at line 40 of file gtkimage.h.

◆ GTK_TYPE_IMAGE

#define GTK_TYPE_IMAGE   (gtk_image_get_type ())

Definition at line 38 of file gtkimage.h.

Typedef Documentation

◆ GtkImage

typedef struct _GtkImage GtkImage

Definition at line 42 of file gtkimage.h.

Enumeration Type Documentation

◆ GtkImageType

GtkImageType: @GTK_IMAGE_EMPTY: there is no image displayed by the widget @GTK_IMAGE_ICON_NAME: the widget contains a named icon @GTK_IMAGE_GICON: the widget contains a GIcon @GTK_IMAGE_PAINTABLE: the widget contains a GdkPaintable

Describes the image data representation used by a [class.nosp@m.@Gtk.nosp@m..Imag.nosp@m.e].

If you want to get the image from the widget, you can only get the currently-stored representation; for instance, if the gtk_image_get_storage_type() returns GTK_IMAGE_PAINTABLE, then you can call gtk_image_get_paintable().

For empty images, you can request any storage type (call any of the "get" functions), but they will all return NULL values.

Enumerator
GTK_IMAGE_EMPTY 
GTK_IMAGE_ICON_NAME 
GTK_IMAGE_GICON 
GTK_IMAGE_PAINTABLE 

Definition at line 60 of file gtkimage.h.

61{
GtkImageType
Definition gtkimage.h:61
@ GTK_IMAGE_PAINTABLE
Definition gtkimage.h:65
@ GTK_IMAGE_ICON_NAME
Definition gtkimage.h:63
@ GTK_IMAGE_GICON
Definition gtkimage.h:64
@ GTK_IMAGE_EMPTY
Definition gtkimage.h:62

Function Documentation

◆ gtk_image_clear()

GDK_AVAILABLE_IN_ALL void gtk_image_clear ( GtkImage * image)

◆ gtk_image_get_gicon()

GDK_AVAILABLE_IN_ALL GIcon * gtk_image_get_gicon ( GtkImage * image)

◆ gtk_image_get_icon_name()

GDK_AVAILABLE_IN_ALL const char * gtk_image_get_icon_name ( GtkImage * image)

◆ gtk_image_get_icon_size()

GDK_AVAILABLE_IN_ALL GtkIconSize gtk_image_get_icon_size ( GtkImage * image)

◆ gtk_image_get_paintable()

GDK_AVAILABLE_IN_ALL GdkPaintable * gtk_image_get_paintable ( GtkImage * image)

◆ gtk_image_get_pixel_size()

GDK_AVAILABLE_IN_ALL int gtk_image_get_pixel_size ( GtkImage * image)

◆ gtk_image_get_storage_type()

GDK_AVAILABLE_IN_ALL GtkImageType gtk_image_get_storage_type ( GtkImage * image)

◆ gtk_image_get_type()

GDK_AVAILABLE_IN_ALL GType gtk_image_get_type ( void )

◆ gtk_image_new()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_image_new ( void )

◆ gtk_image_new_from_file()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_image_new_from_file ( const char * filename)

◆ gtk_image_new_from_gicon()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_image_new_from_gicon ( GIcon * icon)

◆ gtk_image_new_from_icon_name()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_image_new_from_icon_name ( const char * icon_name)

◆ gtk_image_new_from_paintable()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_image_new_from_paintable ( GdkPaintable * paintable)

◆ gtk_image_new_from_pixbuf()

GtkWidget * gtk_image_new_from_pixbuf ( GdkPixbuf * pixbuf)

◆ gtk_image_new_from_resource()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_image_new_from_resource ( const char * resource_path)

◆ gtk_image_set_from_file()

GDK_AVAILABLE_IN_ALL void gtk_image_set_from_file ( GtkImage * image,
const char * filename )

◆ gtk_image_set_from_gicon()

GDK_AVAILABLE_IN_ALL void gtk_image_set_from_gicon ( GtkImage * image,
GIcon * icon )

◆ gtk_image_set_from_icon_name()

GDK_AVAILABLE_IN_ALL void gtk_image_set_from_icon_name ( GtkImage * image,
const char * icon_name )

◆ gtk_image_set_from_paintable()

GDK_AVAILABLE_IN_ALL void gtk_image_set_from_paintable ( GtkImage * image,
GdkPaintable * paintable )

◆ gtk_image_set_from_pixbuf()

void gtk_image_set_from_pixbuf ( GtkImage * image,
GdkPixbuf * pixbuf )

◆ gtk_image_set_from_resource()

GDK_AVAILABLE_IN_ALL void gtk_image_set_from_resource ( GtkImage * image,
const char * resource_path )

◆ gtk_image_set_icon_size()

GDK_AVAILABLE_IN_ALL void gtk_image_set_icon_size ( GtkImage * image,
GtkIconSize icon_size )

◆ gtk_image_set_pixel_size()

GDK_AVAILABLE_IN_ALL void gtk_image_set_pixel_size ( GtkImage * image,
int pixel_size )