IconThemeFile.this - multiple declarations
Function IconThemeFile.this
Reads icon theme from file.
this
(
string fileName,
IconThemeFile . IconThemeReadOptions options = IconThemeReadOptions(ReadOptions(cast(DuplicateGroupPolicy)cast(ubyte)1u, cast(DuplicateKeyPolicy)cast(ubyte)0u, cast(InvalidKeyPolicy)cast(ubyte)0u, cast(Flag)true), cast(UnknownGroupPolicy)cast(ubyte)0u, cast(ExtensionGroupPolicy)cast(ubyte)1u)
) @trusted;
Throws
ErrnoException if file could not be opened.
inilike
if error occured while reading the file.
Function IconThemeFile.this
Reads icon theme file from range of IniLikeReader, e.g. acquired from iniLikeFileReader or iniLikeStringReader.
this(IniLikeReader)
(
IniLikeReader reader,
IconThemeFile . IconThemeReadOptions options = IconThemeReadOptions .init,
string fileName = null
);
this(IniLikeReader)
(
IniLikeReader reader,
string fileName,
IconThemeFile . IconThemeReadOptions options = IconThemeReadOptions .init
);
Throws
inilike
if error occured while parsing.
Function IconThemeFile.this
Constructs IconThemeFile with empty "Icon Theme" group.
this() @safe;
Example
auto itf = new IconThemeFile();
assert(itf .iconTheme());
assert(itf .directories() .empty);