IconThemeGroup

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

comment
string comment()

Longer string describing the theme.

comment
string comment(string commentary)

Set "Comment" to commentary escaping the value if needed.

directories
auto directories()

List of subdirectories for this theme.

directories
string directories(Range values)

setter

displayName
string displayName()

Short name of the icon theme, used in e.g. lists when selecting themes.

displayName
string displayName(string name)

Set "Name" to name escaping the value if needed.

example
string example()

The name of an icon that should be used as an example of how this theme looks.

example
string example(string example)

Set "Example" to example escaping the value if needed.

hidden
bool hidden()

Whether to hide the theme in a theme selection user interface.

hidden
bool hidden(bool hide)

setter

inherits
auto inherits()

Names of themes that this theme inherits from.

inherits
string inherits(Range values)

setter

localizedComment
string localizedComment(string locale)
localizedDisplayName
string localizedDisplayName(string locale)
validateKey
void validateKey(string key, string value)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From IniLikeGroup

InvalidKeyPolicy
enum InvalidKeyPolicy
opIndex
string opIndex(string key)
opIndexAssign
string opIndexAssign(string value, string key)

Insert new value or replaces the old one if value associated with key already exists. Note: The value is not escaped automatically upon writing. It's your responsibility to escape it.

opIndexAssign
string opIndexAssign(string value, string key, string locale)

Assign localized value. Note: The value is not escaped automatically upon writing. It's your responsibility to escape it.

contains
bool contains(string key)

Tell if group contains value associated with the key.

value
string value(string key)

Get value by key.

setValue
string setValue(string key, string value, InvalidKeyPolicy invalidKeyPolicy)

Set value associated with key.

readEntry
string readEntry(string key, string locale)

Get value by key. This function automatically unescape the found value before returning.

writeEntry
string writeEntry(string key, string value, InvalidKeyPolicy invalidKeyPolicy)

Set value by key. This function automatically escape the value (you should not escape value yourself) when writing it.

writeEntry
string writeEntry(string key, string locale, string value, InvalidKeyPolicy invalidKeyPolicy)

ditto, localized version

localizedValue
string localizedValue(string key, string locale, Flag!"nonLocaleFallback" nonLocaleFallback)

Perform locale matching lookup as described in Localized values for keys.

setLocalizedValue
string setLocalizedValue(string key, string locale, string value, InvalidKeyPolicy invalidKeyPolicy)

Same as localized version of opIndexAssign, but uses function syntax. Note: The value is not escaped automatically upon writing. It's your responsibility to escape it.

removeEntry
bool removeEntry(string key)

Removes entry by key. Do nothing if not value associated with key found.

removeEntry
bool removeEntry(string key, string locale)

ditto, but remove entry by localized key

removeEntry
void removeEntry(LineNode node)

ditto, but remove entry by node.

byKeyValue
auto byKeyValue()

Iterate by Key-Value pairs. Values are left in escaped form.

emptyByKeyValue
auto emptyByKeyValue()

Empty range of the same type as byKeyValue. Can be used in derived classes if it's needed to have empty range.

groupName
string groupName()

Get name of this group.

byIniLine
auto byIniLine()
LineNode
struct LineNode

Wrapper for internal ListMap node.

byNode
auto byNode()

Iterate over nodes of internal list.

getNode
auto getNode(string key)

Get internal list node for key.

appendValue
auto appendValue(string key, string value, InvalidKeyPolicy invalidKeyPolicy)

Add key-value entry without association of value with key. Can be used to add duplicates.

appendComment
auto appendComment(string comment)

Add comment line into the group.

prependComment
auto prependComment(string comment)

Add comment line at the start of group (after group header, before any key-value pairs).

addCommentBefore
auto addCommentBefore(LineNode node, string comment)

Add comment before some node.

addCommentAfter
auto addCommentAfter(LineNode node, string comment)

Add comment after some node.

moveLineToFront
void moveLineToFront(LineNode toMove)

Move line to the start of group. Prerequisites: toMove is not null and belongs to this group.

moveLineToBack
void moveLineToBack(LineNode toMove)

Move line to the end of group. Prerequisites: toMove is not null and belongs to this group.

moveLineBefore
void moveLineBefore(LineNode other, LineNode toMove)

Move line before other line in the group. Prerequisites: toMove and other are not null and belong to this group.

moveLineAfter
void moveLineAfter(LineNode other, LineNode toMove)

Move line after other line in the group. Prerequisites: toMove and other are not null and belong to this group.

validateKey
void validateKey(string key, string value)

Validate key before setting value to key for this group and throw exception if not valid. Can be reimplemented in derived classes.

validateValue
void validateValue(string key, string value)

Validate value for key before setting value to key for this group and throw exception if not valid. Can be reimplemented in derived classes.

Meta