Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
WordWrap;
Overflow;
explicit Text::Text( const Container::Size2<>& size = {0, 0}, std::string text = "");

Text::Text( const Container::Size2<>& size, std::string text, Alignments alignment, Format format, CharAttributes attributes);

Text::Text( const Container::Size2<>& size, std::string text, Alignment horizontalAlignment);

Text::Text( const Container::Size2<>& size, std::string text, Alignment horizontalAlignment, WordWrap wordWrap, Overflow overflow = Overflow::Ellipsis);

Text::Text( const Container::Size2<>& size, std::string text, WordWrap wordWrap, Overflow overflow = Overflow::Ellipsis);

auto Text::setText(this auto&& self, std::string text) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getText() const noexcept -> std::string_view;

auto Text::setAlignment(this auto&& self, Alignments alignment) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getAlignment() const noexcept -> Alignments;

auto Text::setHorizontalAlignment(this auto&& self, Alignment alignment) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getHorizontalAlignment() const noexcept -> Alignment;

auto Text::setVerticalAlignment(this auto&& self, Alignment alignment) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getVerticalAlignment() const noexcept -> Alignment;

auto Text::setFormat(this auto&& self, Format format) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getFormat() const noexcept -> Format;

auto Text::setWordWrap(this auto&& self, WordWrap wordWrap) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getWordWrap() const noexcept -> WordWrap;

auto Text::setTextOverflow(this auto&& self, Overflow textOverflow) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getTextOverflow() const noexcept -> Overflow;

auto Text::setAttributes(this auto&& self, const CharAttributes& attributes) noexcept -> decltype(auto);

[[nodiscard]] auto Text::getAttributes() const noexcept -> const CharAttributes&;

auto Text::draw(WritableAreaView& view) noexcept -> void override;