Gdk::PixbufFormat Class Reference
Public Member Functions | |
Glib::ustring | get_description () const |
Return value: a description of the format. | |
Glib::StringArrayHandle | get_extensions () const |
Return value: a 0 -terminated array of filename extensions which must be. | |
Glib::ustring | get_license () const |
Returns: a string describing the license of format. | |
Glib::StringArrayHandle | get_mime_types () const |
Return value: a 0 -terminated array of mime types which must be freed with. | |
Glib::ustring | get_name () const |
Return value: the name of the format. | |
const GdkPixbufFormat* | gobj () const |
Provides access to the underlying C GObject. | |
GdkPixbufFormat* | gobj () |
Provides access to the underlying C GObject. | |
bool | is_disabled () const |
Return value: whether this image format is disabled. | |
bool | is_scalable () const |
Return value: whether this image format is scalable. | |
bool | is_writable () const |
Return value: whether pixbufs can be saved in the given format. | |
PixbufFormat& | operator= (const PixbufFormat& src) |
PixbufFormat (const PixbufFormat& src) | |
PixbufFormat (const GdkPixbufFormat* gobject) | |
PixbufFormat () | |
void | set_disabled (bool disabled=true) |
Disables or enables an image format. | |
virtual | ~PixbufFormat () |
Protected Attributes | |
const GdkPixbufFormat* | gobject_ |
Constructor & Destructor Documentation
Gdk::PixbufFormat::PixbufFormat | ( | ) |
Gdk::PixbufFormat::PixbufFormat | ( | const GdkPixbufFormat * | gobject | ) | [explicit] |
virtual Gdk::PixbufFormat::~PixbufFormat | ( | ) | [virtual] |
Gdk::PixbufFormat::PixbufFormat | ( | const PixbufFormat& | src | ) |
Member Function Documentation
Glib::ustring Gdk::PixbufFormat::get_description | ( | ) | const |
Glib::StringArrayHandle Gdk::PixbufFormat::get_extensions | ( | ) | const |
Return value: a 0
-terminated array of filename extensions which must be.
- Returns:
- A
0
-terminated array of filename extensions which must be freed with Glib::strfreev() when it is no longer needed.
Glib::ustring Gdk::PixbufFormat::get_license | ( | ) | const |
Returns: a string describing the license of format.
- Returns:
- A string describing the license of format.
Glib::StringArrayHandle Gdk::PixbufFormat::get_mime_types | ( | ) | const |
Return value: a 0
-terminated array of mime types which must be freed with.
- Returns:
- A
0
-terminated array of mime types which must be freed with Glib::strfreev() when it is no longer needed.
Glib::ustring Gdk::PixbufFormat::get_name | ( | ) | const |
const GdkPixbufFormat* Gdk::PixbufFormat::gobj | ( | ) | const [inline] |
GdkPixbufFormat* Gdk::PixbufFormat::gobj | ( | ) | [inline] |
bool Gdk::PixbufFormat::is_disabled | ( | ) | const |
Return value: whether this image format is disabled.
- Returns:
- Whether this image format is disabled.
bool Gdk::PixbufFormat::is_scalable | ( | ) | const |
Return value: whether this image format is scalable.
- Returns:
- Whether this image format is scalable.
bool Gdk::PixbufFormat::is_writable | ( | ) | const |
Return value: whether pixbufs can be saved in the given format.
- Returns:
- Whether pixbufs can be saved in the given format.
PixbufFormat& Gdk::PixbufFormat::operator= | ( | const PixbufFormat& | src | ) |
void Gdk::PixbufFormat::set_disabled | ( | bool | disabled = true |
) |
Disables or enables an image format.
If a format is disabled, gdk-pixbuf won't use the image loader for this format to load images. Applications can use this to avoid using image loaders with an inappropriate license, see gdk_pixbuf_format_get_license().
- Parameters:
-
disabled true
to disable the format format.
Member Data Documentation
const GdkPixbufFormat* Gdk::PixbufFormat::gobject_ [protected] |
Referenced by gobj().
The documentation for this class was generated from the following file: