template<>
Corrade::Utility::ConfigurationValue<Magnum::PixelFormat> struct new in 2020.06

Configuration value parser and writer.

Public static functions

static auto toString(Magnum::PixelFormat value, ConfigurationValueFlags) -> Containers::String
Writes enum value as string.
static auto fromString(Containers::StringView stringValue, ConfigurationValueFlags) -> Magnum::PixelFormat
Reads enum value as string.

Function documentation

template<>
static Containers::String Corrade::Utility::ConfigurationValue<Magnum::PixelFormat>::toString(Magnum::PixelFormat value, ConfigurationValueFlags)

Writes enum value as string.

If the value is invalid, returns empty string.

template<>
static Magnum::PixelFormat Corrade::Utility::ConfigurationValue<Magnum::PixelFormat>::fromString(Containers::StringView stringValue, ConfigurationValueFlags)

Reads enum value as string.

If the value is invalid, returns a zero (invalid) format.