Browse Source

Text: these directionality guarantees are too strong, remove.

I don't want to restrict myself this much, especially given various
tests don't hold onto these.
pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
f6256359c6
  1. 16
      src/Magnum/Text/Direction.h

16
src/Magnum/Text/Direction.h

@ -55,29 +55,29 @@ enum class ShapeDirection: UnsignedByte {
/** /**
* Left to right. When returned from @ref AbstractShaper::direction(), * Left to right. When returned from @ref AbstractShaper::direction(),
* the @p advances filled by @ref AbstractShaper::glyphsInto() are * the @p advances filled by @ref AbstractShaper::glyphsInto() have their Y
* guaranteed to have their Y components @cpp 0.0f @ce. * components @cpp 0.0f @ce.
*/ */
LeftToRight = 1, LeftToRight = 1,
/** /**
* Right to left. When returned from @ref AbstractShaper::direction(), * Right to left. When returned from @ref AbstractShaper::direction(),
* the @p advances filled by @ref AbstractShaper::glyphsInto() are * the @p advances filled by @ref AbstractShaper::glyphsInto() have their Y
* guaranteed to have their Y components @cpp 0.0f @ce. * components @cpp 0.0f @ce.
*/ */
RightToLeft, RightToLeft,
/** /**
* Top to bottom. When returned from @ref AbstractShaper::direction(), * Top to bottom. When returned from @ref AbstractShaper::direction(),
* the @p advances filled by @ref AbstractShaper::glyphsInto() are * the @p advances filled by @ref AbstractShaper::glyphsInto() have their X
* guaranteed to have their X components @cpp 0.0f @ce. * components @cpp 0.0f @ce.
*/ */
TopToBottom, TopToBottom,
/** /**
* Bottom to top. When returned from @ref AbstractShaper::direction(), * Bottom to top. When returned from @ref AbstractShaper::direction(),
* the @p advances filled by @ref AbstractShaper::glyphsInto() are * the @p advances filled by @ref AbstractShaper::glyphsInto() have their X
* guaranteed to have their X components @cpp 0.0f @ce. * components @cpp 0.0f @ce.
*/ */
BottomToTop BottomToTop
}; };

Loading…
Cancel
Save