Xfce Foundation Classes
Main Page | Index | Namespace List | Alphabetical List | Class List | File List

# gtk/image.hh File Reference

A GtkImage C++ wrapper interface. More...

`#include <xfc/gtk/misc.hh>`
`#include <gtk/gtkimage.h>`
`#include <gtk/gtkstock.h>`
`#include <xfc/gtk/inline/image.inl>`

## Namespaces

- namespace Xfc
- namespace Xfc::Gdk
- namespace Xfc::Gtk

## Classes

- class Xfc::Gtk::Image
    A GtkImage C++ wrapper class. More...

## Enumerations

- enum ImageType {
  IMAGE_EMPTY = GTK_IMAGE_EMPTY,
  IMAGE_PIXMAP = GTK_IMAGE_PIXMAP,
  IMAGE_IMAGE = GTK_IMAGE_IMAGE,
  IMAGE_PIXBUF = GTK_IMAGE_PIXBUF,
  IMAGE_STOCK = GTK_IMAGE_STOCK,
  IMAGE_ICON_SET = GTK_IMAGE_ICON_SET,
  IMAGE_ANIMATION = GTK_IMAGE_ANIMATION,
  IMAGE_ICON_NAME = GTK_IMAGE_ICON_NAME
  }
    Describes the image data representation used by a GtkImage. More...

## Detailed Description

A GtkImage C++ wrapper interface.

Provides Image, a widget that can dispay various kinds of objects as an image. Most typically, you would load a Gdk::Pixbuf from a file, and then display that.

## Enumeration Type Documentation

enum ImageType

  | Describes the image data representation used by a GtkImage. If you want to get the image from the widget, you can only get the currently-stored representation. e.g. if the get_storage_type() returns IMAGE_PIXBUF, then you can call get_pixbuf() but not get_stock(). For empty images, you can request any storage type (call any of the "get" functions), but they will all return null values. Enumeration values:
  IMAGE_EMPTY | There is no image displayed by the widget.
  IMAGE_PIXMAP | The widget contains a Gdk::Pixmap.
  IMAGE_IMAGE | The widget contains a Gdk::Image.
  IMAGE_PIXBUF | The widget contains a Gdk::Pixbuf.
  IMAGE_STOCK | The widget contains a stock icon name.
  IMAGE_ICON_SET | The widget contains a Gtk::IconSet.
  IMAGE_ANIMATION | The widget contains a Gdk::PixbufAnimation.
  IMAGE_ICON_NAME | The widget contains an image from the current icon theme.

Xfce Foundation Classes

Copyright © 2004-2005 The XFC Development Team | XFC 4.3