turn enum TextType into enum class Text::Type