Interface that supplies images to the image album dialog.
More...
#include <imagealbum-dialog.h>
Interface that supplies images to the image album dialog.
◆ loadImageSlot()
Loads and returns the image for a specified slot.
- Parameters
-
slot | The image slot to load |
outSurface | An outputted pointer to a surface containing the image data |
outHasPalette | An outputted boolean containing true if the image has a palette and false if not |
outPalette | Outputted palette colors if the image has a palette |
outMetadata | Outputted metadata for the image |
- Returns
- True if the image loaded successfully, false if it failed
◆ releaseImageSlot()
virtual void GUI::ImageAlbumImageSupplier::releaseImageSlot |
( |
uint |
slot | ) |
|
|
pure virtual |
Releases any resources for an image loaded with loadImageSlot.
- Parameters
-
slot | The image slot to release |
◆ getFileFormatForImageSlot()
virtual bool GUI::ImageAlbumImageSupplier::getFileFormatForImageSlot |
( |
uint |
slot, |
|
|
Common::FormatInfo::FormatID & |
outFormat |
|
) |
| const |
|
pure virtual |
Returns the file format of the image in the specified image slot, if it's capable of being loaded as raw file data.
- Parameters
-
slot | The image slot to load |
outFormat | A reference to a file format ID to set to the file format |
- Returns
- true if the slot is loadable as raw data and has a MIME type available, false if not
◆ createReadStreamForSlot()
Opens a slot as a read stream containing raw file data.
- Parameters
-
slot | The image slot to load |
- Returns
- The created read stream, if it could be created, or nullptr if it failed
◆ getNumSlots()
virtual uint GUI::ImageAlbumImageSupplier::getNumSlots |
( |
| ) |
const |
|
pure virtual |
Returns the number of image slots.
- Returns
- The number of slots
◆ getDefaultFileNameForSlot()
virtual Common::U32String GUI::ImageAlbumImageSupplier::getDefaultFileNameForSlot |
( |
uint |
slot | ) |
const |
|
pure virtual |
Returns the default filename, including extension, for the specified slot.
- Returns
- The filename of the slot without an extension
The documentation for this class was generated from the following file: