Magnum::Text::FeatureRange class new in Git master

OpenType feature for a text range.

Constructors, destructors, conversion operators

FeatureRange(Feature feature, UnsignedInt begin, UnsignedInt end, UnsignedInt value = true) constexpr
Constructor.
FeatureRange(Feature feature, UnsignedInt value = true) constexpr
Construct for the whole text.

Public functions

auto feature() const -> Feature constexpr
Feature to control.
auto isEnabled() const -> bool constexpr
Whether to enable the feature.
auto value() const -> UnsignedInt constexpr
Feature value to set.
auto begin() const -> UnsignedInt constexpr
Beginning byte in the input text.
auto end() const -> UnsignedInt constexpr
(One byte after) the end byte in the input text

Function documentation

Magnum::Text::FeatureRange::FeatureRange(Feature feature, UnsignedInt begin, UnsignedInt end, UnsignedInt value = true) constexpr

Constructor.

Parameters
feature Feature to control
begin Beginning byte in the input text
end (One byte after) the end byte in the input text
value Feature value to set

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

Construct for the whole text.

Equivalent to calling FeatureRange(Feature, UnsignedInt, UnsignedInt, UnsignedInt) with begin set to 0 and end to 0xffffffffu.

bool Magnum::Text::FeatureRange::isEnabled() const constexpr

Whether to enable the feature.

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

UnsignedInt Magnum::Text::FeatureRange::begin() const constexpr

Beginning byte in the input text.

If the feature is set for the whole text, this is 0.

UnsignedInt Magnum::Text::FeatureRange::end() const constexpr

(One byte after) the end byte in the input text

If the feature is set for the whole text, this is 0xffffffffu.