FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_reserved::ns_icon Namespace Reference

Application icon image storage in reserved space. More...

Classes

struct  Icon
 Stores icon data in reserved space. More...
 

Functions

Value< void > write (fs::path const &path_file_binary, Icon const &icon)
 Writes the Icon struct to the target binary.
 
Value< Iconread (fs::path const &path_file_binary)
 Reads the Icon struct from the target binary.
 

Detailed Description

Application icon image storage in reserved space.

This namespace manages embedded icon image data stored in the binary's reserved space. It stores icons in PNG or JPEG format along with the file extension and size metadata. The embedded icon is used for desktop integration, appearing in application launchers, taskbars, and .desktop files. Icons are processed through ImageMagick for resizing as needed.

Function Documentation

◆ read()

Value< Icon > ns_reserved::ns_icon::read ( fs::path const & path_file_binary)
inline

Reads the Icon struct from the target binary.

Parameters
path_file_binaryTarget binary to write the struct from
Returns
On success it returns the read Icon struct, or the respective error message

Definition at line 104 of file icon.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

Value< void > ns_reserved::ns_icon::write ( fs::path const & path_file_binary,
Icon const & icon )
inline

Writes the Icon struct to the target binary.

Parameters
path_file_binaryTarget binary to write the struct to
iconStruct to write to the target file as binary data
Returns
Value<void> Nothing on success, or the respective error message

Definition at line 84 of file icon.hpp.

Here is the call graph for this function:
Here is the caller graph for this function: