Magnum::Ui::TextFeatureValue class new in Git master

OpenType feature value.

A subset of Text::FeatureRange that always affects the whole text. Meant to be used to supply default features for a style.

Constructors, destructors, conversion operators

TextFeatureValue(Text::Feature feature, UnsignedInt value = true) constexpr
Constructor.
operator Text::FeatureRange() const
Conversion to Text::FeatureRange.

Public functions

auto feature() const -> Text::Feature constexpr
Feature to control.
auto isEnabled() const -> bool constexpr
Whether to enable the feature.
auto value() const -> UnsignedInt constexpr
Feature value to sest.

Function documentation

Magnum::Ui::TextFeatureValue::TextFeatureValue(Text::Feature feature, UnsignedInt value = true) constexpr

Constructor.

Parameters
feature Feature to control
value Feature value to set

Magnum::Ui::TextFeatureValue::operator Text::FeatureRange() const

Conversion to Text::FeatureRange.

The range has Text::FeatureRange::begin() set to 0 and end() to 0xffffffffu.

bool Magnum::Ui::TextFeatureValue::isEnabled() const constexpr

Whether to enable the feature.

Returns false if value() is 0, true otherwise.