|  | 
|  | ICOPayload () | 
|  | 
|  | ICOPayload (const void *ptr, std::size_t size) | 
|  | 
|  | ICOPayload (const std::vector< std::uint8_t > &vec) | 
|  | 
|  | ICOPayload (const std::string &filename) | 
|  | 
|  | ICOPayload (const ICOPayload &other) | 
|  | 
| ICOPayload & | operator= (const ICOPayload &other) | 
|  | 
| PNGPayload * | operator-> (void) | 
|  | Syntactic sugar to access the PNG payload in the icon. 
 | 
|  | 
| PNGPayload & | operator* (void) | 
|  | Syntactic sugar to access the PNG payload in the icon. 
 | 
|  | 
| PNGPayload & | png_payload (void) | 
|  | Retrieve the PNG payload in this icon file. 
 | 
|  | 
| const PNGPayload & | png_payload (void) const | 
|  | Retrieve a const PNG payload of this icon file. 
 | 
|  | 
| void | find_png (void) | 
|  | Find and set the PNG payload in this icon file. 
 | 
|  | 
| void | reset_png (void) | 
|  | Reset the underlying PNG payload to what's currently in the icon object. 
 | 
|  | 
| void | set_png (void) | 
|  | Convert the PNG payload to a file buffer and set it in the icon's bitmap directory. 
 | 
|  | 
|  | Icon () | 
|  | 
|  | Icon (const void *ptr, std::size_t size) | 
|  | 
|  | Icon (const std::vector< std::uint8_t > &vec) | 
|  | 
|  | Icon (const std::string &filename) | 
|  | 
|  | Icon (const Icon &other) | 
|  | 
| Icon & | operator= (const Icon &other) | 
|  | 
| Entry & | operator[] (std::size_t index) | 
|  | Syntactic sugar to get an entry within the icon file. 
 | 
|  | 
| const Entry & | operator[] (std::size_t index) const | 
|  | Syntactic sugar to get a const entry within the icon file. 
 | 
|  | 
| std::size_t | size (void) const | 
|  | Return the number of bitmap entries within the icon file. 
 | 
|  | 
| void | parse (const void *ptr, std::size_t size) | 
|  | Parse the given pointer and size as an icon file. 
 | 
|  | 
| void | parse (const std::vector< std::uint8_t > &vec) | 
|  | Parse the given byte vector as an icon file. 
 | 
|  | 
| void | parse (const std::string &filename) | 
|  | Parse the given file as an icon file. 
 | 
|  | 
| Entry & | get_entry (std::size_t index) | 
|  | Get a bitmap entry within the icon file. 
 | 
|  | 
| const Entry & | get_entry (std::size_t index) const | 
|  | Get a const bitmap entry within the icon file. 
 | 
|  | 
| void | set_entry (std::size_t index, const Entry &data) | 
|  | Set the given entry at the given index in the icon file's bitmap directory. 
 | 
|  | 
| void | set_entry (std::size_t index, const IconDirEntry &entry, const std::vector< std::uint8_t > &data) | 
|  | Set the given entry object and image data at the given index in the icon file's bitmap directory. 
 | 
|  | 
| EntryType | entry_type (std::size_t index) const | 
|  | Return the type of bitmap the given directory bitmap is. Possible values are Icon::EntryType::ENTRY_BMP and Icon::EntryType::ENTRY_PNG. 
 | 
|  | 
| std::vector< std::uint8_t > | to_file () const | 
|  | Convert this icon object to its file representation. 
 | 
|  | 
| void | save (const std::string &filename) const | 
|  | Convert this icon object to a file and save it to disk. 
 | 
|  | 
| void | resize (std::size_t size) | 
|  | Resize the number of entries this icon object can hold. 
 | 
|  | 
| Entry & | insert_entry (std::size_t index, const Entry &entry) | 
|  | Insert and return the given bitmap entry at the given index. 
 | 
|  | 
| Entry & | insert_entry (std::size_t index, const IconDirEntry &entry, const std::vector< std::uint8_t > &data) | 
|  | Insert and return the given entry header and bitmap data at the given index. 
 | 
|  | 
| Entry & | append_entry (const Entry &entry) | 
|  | Append a bitmap entry pair to the end of this icon's bitmap directory. 
 | 
|  | 
| Entry & | append_entry (const IconDirEntry &entry, const std::vector< std::uint8_t > &data) | 
|  | Append an entry header and bitmap data to the end of the icon's bitmap directory. 
 | 
|  | 
| void | remove_entry (std::size_t index) | 
|  | Remove the bitmap entry at the given index. 
 | 
|  | 
An icon file containing a payload. 
- See also
- PNGPayload
Note that in its current form, an icon file can only contain a payload if it contains a PNG entry. Attempting to turn an icon file without a PNG entry is an error. The only payload functionality that could possibly exist for icon bitmaps beside is steganography, which is not currently implemented for the icon bitmap format.