AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
aui::detail::WordEntry Class Reference

Public Member Functions

 WordEntry (IFontView *text, AString word)
 
glm::ivec2 getSize () override
 
const AStringgetWord () const
 
AStringgetWord ()
 
glm::ivec2 getPosition () const
 
void setPosition (glm::ivec2 position) override
 
size_t getCharacterCount () override
 
glm::ivec2 getPosByIndex (size_t characterIndex) override
 
void appendTo (AString &dst) override
 
void erase (size_t begin, AOptional< size_t > end) override
 
- Public Member Functions inherited from aui::detail::TextBaseEntry
virtual HitTestResult hitTest (glm::ivec2 position)
 
- Public Member Functions inherited from AWordWrappingEngineBase::Entry
virtual AFloat getFloat () const
 
virtual bool forcesNextLine () const
 
bool isFloating () const
 
virtual bool escapesEdges ()
 

Protected Attributes

IFontViewmText
 
AString mWord
 
glm::ivec2 mPosition {}
 

Additional Inherited Members

- Public Types inherited from aui::detail::TextBaseEntry
using HitTestResult = std::variant< std::nullopt_t, size_t, StopLineScanningHint >
 

Member Function Documentation

◆ appendTo()

void aui::detail::WordEntry::appendTo ( AString dst)
inlineoverridevirtual

◆ erase()

void aui::detail::WordEntry::erase ( size_t  begin,
AOptional< size_t >  end 
)
inlineoverridevirtual

Reimplemented from aui::detail::TextBaseEntry.

◆ getCharacterCount()

size_t aui::detail::WordEntry::getCharacterCount ( )
inlineoverridevirtual

◆ getPosByIndex()

glm::ivec2 aui::detail::WordEntry::getPosByIndex ( size_t  characterIndex)
inlineoverridevirtual

◆ getSize()

glm::ivec2 aui::detail::WordEntry::getSize ( )
inlineoverridevirtual

◆ setPosition()

void aui::detail::WordEntry::setPosition ( glm::ivec2  position)
inlineoverridevirtual

Reimplemented from AWordWrappingEngineBase::Entry.


The documentation for this class was generated from the following file:
Inheritance diagram for aui::detail::WordEntry:
Collaboration diagram for aui::detail::WordEntry: