|
gtkmm 4.18.0
|
Contains information about the image format accepted by a module. More...
#include <gdkmm/pixbufformat.h>
Public Member Functions | |
| PixbufFormat (GdkPixbufFormat *gobject, bool make_a_copy=true) | |
| PixbufFormat (const PixbufFormat &other) | |
| PixbufFormat & | operator= (const PixbufFormat &other) |
| PixbufFormat (PixbufFormat &&other) noexcept | |
| PixbufFormat & | operator= (PixbufFormat &&other) noexcept |
| ~PixbufFormat () noexcept | |
| void | swap (PixbufFormat &other) noexcept |
| GdkPixbufFormat * | gobj () |
| Provides access to the underlying C instance. | |
| const GdkPixbufFormat * | gobj () const |
| Provides access to the underlying C instance. | |
| GdkPixbufFormat * | gobj_copy () const |
| Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. | |
| PixbufFormat () | |
| Glib::ustring | get_name () const |
| Returns the name of the format. | |
| Glib::ustring | get_description () const |
| Returns a description of the format. | |
| std::vector< Glib::ustring > | get_mime_types () const |
| Returns the mime types supported by the format. | |
| std::vector< Glib::ustring > | get_extensions () const |
| Returns the filename extensions typically used for files in the given format. | |
| bool | is_save_option_supported (const Glib::ustring &option_key) const |
Returns true if the save option specified by option_key is supported when saving a pixbuf using the module implementing format. | |
| bool | is_writable () const |
| Returns whether pixbufs can be saved in the given format. | |
| bool | is_scalable () const |
| Returns whether this image format is scalable. | |
| bool | is_disabled () const |
| Returns whether this image format is disabled. | |
| void | set_disabled (bool disabled=true) |
| Disables or enables an image format. | |
| Glib::ustring | get_license () const |
| Returns information about the license of the image loader for the format. | |
Static Public Member Functions | |
| static GType | get_type () |
| Get the GType for this class, for use with the underlying GObject type system. | |
Protected Attributes | |
| GdkPixbufFormat * | gobject_ |
Related Symbols | |
(Note that these are not member symbols.) | |
| void | swap (PixbufFormat &lhs, PixbufFormat &rhs) noexcept |
| Gdk::PixbufFormat | wrap (GdkPixbufFormat *object, bool take_copy=false) |
| A Glib::wrap() method for this object. | |
Contains information about the image format accepted by a module.
|
explicit |
| Gdk::PixbufFormat::PixbufFormat | ( | const PixbufFormat & | other | ) |
|
noexcept |
|
noexcept |
| Gdk::PixbufFormat::PixbufFormat | ( | ) |
| Glib::ustring Gdk::PixbufFormat::get_description | ( | ) | const |
| std::vector< Glib::ustring > Gdk::PixbufFormat::get_extensions | ( | ) | const |
Returns the filename extensions typically used for files in the given format.
| Glib::ustring Gdk::PixbufFormat::get_license | ( | ) | const |
Returns information about the license of the image loader for the format.
The returned string should be a shorthand for a well known license, e.g. "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license.
| std::vector< Glib::ustring > Gdk::PixbufFormat::get_mime_types | ( | ) | const |
| Glib::ustring Gdk::PixbufFormat::get_name | ( | ) | const |
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C instance.
|
inline |
Provides access to the underlying C instance.
| GdkPixbufFormat * Gdk::PixbufFormat::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
| bool Gdk::PixbufFormat::is_disabled | ( | ) | const |
Returns whether this image format is disabled.
See set_disabled().
| bool Gdk::PixbufFormat::is_save_option_supported | ( | const Glib::ustring & | option_key | ) | const |
Returns true if the save option specified by option_key is supported when saving a pixbuf using the module implementing format.
See save() for more information about option keys.
| option_key | The name of an option. |
true if the specified option is supported. | bool Gdk::PixbufFormat::is_scalable | ( | ) | const |
Returns whether this image format is scalable.
If a file is in a scalable format, it is preferable to load it at the desired size, rather than loading it at the default size and scaling the resulting pixbuf to the desired size.
| bool Gdk::PixbufFormat::is_writable | ( | ) | const |
Returns whether pixbufs can be saved in the given format.
| PixbufFormat & Gdk::PixbufFormat::operator= | ( | const PixbufFormat & | other | ) |
|
noexcept |
Disables or enables an image format.
If a format is disabled, GdkPixbuf 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 get_license().
| disabled | true to disable the format format. |
|
noexcept |
|
related |
| lhs | The left-hand side |
| rhs | The right-hand side |
|
related |
A Glib::wrap() method for this object.
| object | The C instance. |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
|
protected |