gtkmm 4.14.0
Public Types | Public Member Functions | List of all members
Gdk::PixbufError Class Reference

Exception class for Gdk::Pixbuf errors. More...

#include <gdkmm/pixbuf.h>

Inheritance diagram for Gdk::PixbufError:
Inheritance graph
[legend]

Public Types

enum  Code {
  CORRUPT_IMAGE ,
  INSUFFICIENT_MEMORY ,
  BAD_OPTION ,
  UNKNOWN_TYPE ,
  UNSUPPORTED_OPERATION ,
  FAILED ,
  INCOMPLETE_ANIMATION
}
 An error code in the GDK_PIXBUF_ERROR domain. More...
 

Public Member Functions

 PixbufError (Code error_code, const Glib::ustring & error_message)
 
 PixbufError (GError * gobject)
 
Code code () const
 

Detailed Description

Exception class for Gdk::Pixbuf errors.

Member Enumeration Documentation

◆ Code

An error code in the GDK_PIXBUF_ERROR domain.

Many gdk-pixbuf operations can cause errors in this domain, or in the G_FILE_ERROR domain.

Enumerator
CORRUPT_IMAGE 

An image file was broken somehow.

INSUFFICIENT_MEMORY 

Not enough memory.

BAD_OPTION 

A bad option was passed to a pixbuf save module.

UNKNOWN_TYPE 

Unknown image type.

UNSUPPORTED_OPERATION 

Don't know how to perform the given operation on the type of image at hand.

FAILED 

Generic failure code, something went wrong.

INCOMPLETE_ANIMATION 

Only part of the animation was loaded.

Constructor & Destructor Documentation

◆ PixbufError() [1/2]

Gdk::PixbufError::PixbufError ( Code  error_code,
const Glib::ustring &  error_message 
)

◆ PixbufError() [2/2]

Gdk::PixbufError::PixbufError ( GError *  gobject)
explicit

Member Function Documentation

◆ code()

Code Gdk::PixbufError::code ( ) const