XDGKit v0.1.0-1
XDG Utilities for C++
|
Properties of an icon. More...
#include <XDGIcon.h>
Public Types | |
enum | Extension |
Enumeration of supported file extensions for icons. More... | |
Public Member Functions | |
XDGKit & | kit () const noexcept |
Handle to the parent kit. | |
uint32_t | extensions () const noexcept |
Retrieves the bitset of file extensions found for this icon. | |
const char * | name () const noexcept |
Retrieves the name of the icon. | |
std::filesystem::path | getPath (Extension ext) const noexcept |
Retrieves the absolute path of the icon for a specified file extension. | |
XDGIconDirectory & | directory () const noexcept |
Retrieves the directory to which this icon belongs. | |
Properties of an icon.
This class provides information about an icon, including its name, file extensions, paths, and the directory to which it belongs.
enum Extension |
|
noexcept |
Handle to the parent kit.
|
inlinenoexcept |
Retrieves the bitset of file extensions found for this icon.
Each bit in the bitset corresponds to a supported file extension.
|
inlinenoexcept |
Retrieves the name of the icon.
|
noexcept |
Retrieves the absolute path of the icon for a specified file extension.
The provided extension must exist in the set of extensions returned by extensions()
.
ext | The file extension for which to retrieve the icon's path. |
|
inlinenoexcept |
Retrieves the directory to which this icon belongs.
The directory contains information such as size, scale, and context of the icon.