logo top
Main Page   Widgets   Namespaces   Book  

Gtk::Image Class Reference
[Widgets]

A widget displaying an image. More...

Inheritance diagram for Gtk::Image:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Image ()
GtkImage* gobj ()
 Provides access to the underlying C GtkObject.

const GtkImage* gobj () const
 Provides access to the underlying C GtkObject.

 Image ()
 Image (const Glib::RefPtr<Gdk::Pixmap>& pixmap, const Glib::RefPtr<Gdk::Bitmap>& mask)
 Image (const Glib::RefPtr<Gdk::Image>& image, const Glib::RefPtr<Gdk::Bitmap>& mask)
 Image (const std::string& file)
 Image (const Glib::RefPtr<Gdk::Pixbuf>& pixbuf)
 Image (const Gtk::StockID& stock_id, IconSize size)
 Image (IconSet& icon_set, IconSize size)
 Image (const Glib::RefPtr<Gdk::PixbufAnimation>& animation)
void set (const Glib::RefPtr<Gdk::Pixmap>& pixmap, const Glib::RefPtr<Gdk::Bitmap>& mask)
void set (const Glib::RefPtr<Gdk::Image>& image, const Glib::RefPtr<Gdk::Bitmap>& mask)
void set (const std::string& filename)
void set (const Glib::RefPtr<Gdk::Pixbuf>& pixbuf)
void set (const Gtk::StockID& stock_id, IconSize size)
void set (IconSet& icon_set, IconSize size)
void set (const Glib::RefPtr<Gdk::PixbufAnimation>& animation)
void clear ()
ImageType get_storage_type () const
void get_pixmap (Glib::RefPtr<Gdk::Pixmap>& pixmap, Glib::RefPtr<Gdk::Bitmap>& mask) const
void get_image (Glib::RefPtr<Gdk::Image>& gdk_image, Glib::RefPtr<Gdk::Bitmap>& mask) const
Glib::RefPtr<Gdk::Pixbufget_pixbuf () const
void get_stock (Gtk::StockID& stock_id, IconSize& size) const
void get_icon_set (IconSet& icon_set, IconSize& size) const
Glib::RefPtr<Gdk::PixbufAnimationget_animation ()
Glib::PropertyProxy< Glib::RefPtr<
Gdk::Pixbuf > > 
property_pixbuf ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy< Glib::RefPtr<
Gdk::Pixmap > > 
property_pixmap ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy< Glib::RefPtr<
Gdk::Image > > 
property_image ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy< Glib::RefPtr<
Gdk::Pixmap > > 
property_mask ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_WriteOnly<
Glib::ustring
property_file ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Glib::ustringproperty_stock ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Gtk::IconSetproperty_icon_set ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<int> property_icon_size ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy< Glib::RefPtr<
Gdk::PixbufAnimation > > 
property_pixbuf_animation ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_ReadOnly<
ImageType
property_storage_type ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.


Related Functions

(Note that these are not member functions.)

Gtk::Imagewrap (GtkImage* object, bool take_copy=false)

Detailed Description

A widget displaying an image.

The Gtk::Image widget displays an image. Various kinds of object can be displayed as an image; most typically, you would load a Gdk::Pixbuf ("pixel buffer") from a file, and then display that.

Gtk::Image is a subclass of Gtk::Misc, which implies that you can align it (center, left, right) and add padding to it, using Gtk::Misc methods.

Gtk::Image is a "no window" widget (has no Gdk::Window of its own), so by default does not receive events. If you want to receive events on the image, such as button clicks, place the image inside a Gtk::EventBox, then connect to the event signals on the event box.


Constructor & Destructor Documentation

virtual Gtk::Image::~Image (  )  [virtual]
 

Gtk::Image::Image (  ) 
 

Gtk::Image::Image ( const Glib::RefPtr<Gdk::Pixmap>&  pixmap,
const Glib::RefPtr<Gdk::Bitmap>&  mask
[explicit]
 

Gtk::Image::Image ( const Glib::RefPtr<Gdk::Image>&  image,
const Glib::RefPtr<Gdk::Bitmap>&  mask
[explicit]
 

Gtk::Image::Image ( const std::string&  file  )  [explicit]
 

Gtk::Image::Image ( const Glib::RefPtr<Gdk::Pixbuf>&  pixbuf  )  [explicit]
 

Gtk::Image::Image ( const Gtk::StockID stock_id,
IconSize  size
 

Gtk::Image::Image ( IconSet icon_set,
IconSize  size
 

Gtk::Image::Image ( const Glib::RefPtr<Gdk::PixbufAnimation>&  animation  ) 
 


Member Function Documentation

void Gtk::Image::clear (  ) 
 

Glib::RefPtr<Gdk::PixbufAnimation> Gtk::Image::get_animation (  ) 
 

void Gtk::Image::get_icon_set ( IconSet icon_set,
IconSize size
const
 

void Gtk::Image::get_image ( Glib::RefPtr<Gdk::Image>&  gdk_image,
Glib::RefPtr<Gdk::Bitmap>&  mask
const
 

Glib::RefPtr<Gdk::Pixbuf> Gtk::Image::get_pixbuf (  )  const
 

void Gtk::Image::get_pixmap ( Glib::RefPtr<Gdk::Pixmap>&  pixmap,
Glib::RefPtr<Gdk::Bitmap>&  mask
const
 

void Gtk::Image::get_stock ( Gtk::StockID stock_id,
IconSize size
const
 

ImageType Gtk::Image::get_storage_type (  )  const
 

const GtkImage* Gtk::Image::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Misc.

GtkImage* Gtk::Image::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Misc.

Glib::PropertyProxy_WriteOnly<Glib::ustring> Gtk::Image::property_file (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Gtk::IconSet> Gtk::Image::property_icon_set (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<int> Gtk::Image::property_icon_size (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::RefPtr<Gdk::Image>> Gtk::Image::property_image (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::RefPtr<Gdk::Pixmap>> Gtk::Image::property_mask (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::RefPtr<Gdk::Pixbuf>> Gtk::Image::property_pixbuf (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::RefPtr<Gdk::PixbufAnimation>> Gtk::Image::property_pixbuf_animation (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::RefPtr<Gdk::Pixmap>> Gtk::Image::property_pixmap (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::ustring> Gtk::Image::property_stock (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<ImageType> Gtk::Image::property_storage_type (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

void Gtk::Image::set ( const Glib::RefPtr<Gdk::PixbufAnimation>&  animation  ) 
 

void Gtk::Image::set ( IconSet icon_set,
IconSize  size
 

void Gtk::Image::set ( const Gtk::StockID stock_id,
IconSize  size
 

void Gtk::Image::set ( const Glib::RefPtr<Gdk::Pixbuf>&  pixbuf  ) 
 

void Gtk::Image::set ( const std::string&  filename  ) 
 

void Gtk::Image::set ( const Glib::RefPtr<Gdk::Image>&  image,
const Glib::RefPtr<Gdk::Bitmap>&  mask
 

void Gtk::Image::set ( const Glib::RefPtr<Gdk::Pixmap>&  pixmap,
const Glib::RefPtr<Gdk::Bitmap>&  mask
 


Friends And Related Function Documentation

Gtk::Image* wrap ( GtkImage*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001