Chatterino
Classes | Public Member Functions | Public Attributes | List of all members
chatterino::MessageLayoutContainer Struct Reference

#include <MessageLayoutContainer.hpp>

Public Member Functions

 MessageLayoutContainer ()=default
 
int getHeight () const
 
int getWidth () const
 
float getScale () const
 
void begin (int width_, float scale_, MessageFlags flags_)
 
void end ()
 
void clear ()
 
bool canAddElements () const
 
void addElement (MessageLayoutElement *element)
 
void addElementNoLineBreak (MessageLayoutElement *element)
 
void breakLine ()
 
bool atStartOfLine ()
 
bool fitsInLine (int width_)
 
void reorderRTL (int firstTextIndex)
 
MessageLayoutElementgetElementAt (QPoint point)
 
void paintElements (QPainter &painter)
 
void paintAnimatedElements (QPainter &painter, int yOffset)
 
void paintSelection (QPainter &painter, int messageIndex, Selection &selection, int yOffset)
 
int getSelectionIndex (QPoint point)
 
int getLastCharacterIndex () const
 
int getFirstMessageCharacterIndex () const
 
void addSelectionText (QString &str, uint32_t from, uint32_t to, CopyMode copymode)
 
bool isCollapsed ()
 

Public Attributes

FirstWord first = FirstWord::Neutral
 
bool containsRTL = false
 

Constructor & Destructor Documentation

◆ MessageLayoutContainer()

chatterino::MessageLayoutContainer::MessageLayoutContainer ( )
default

Member Function Documentation

◆ addElement()

void chatterino::MessageLayoutContainer::addElement ( MessageLayoutElement element)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addElementNoLineBreak()

void chatterino::MessageLayoutContainer::addElementNoLineBreak ( MessageLayoutElement element)
Here is the caller graph for this function:

◆ addSelectionText()

void chatterino::MessageLayoutContainer::addSelectionText ( QString &  str,
uint32_t  from,
uint32_t  to,
CopyMode  copymode 
)
Here is the call graph for this function:

◆ atStartOfLine()

bool chatterino::MessageLayoutContainer::atStartOfLine ( )
Here is the caller graph for this function:

◆ begin()

void chatterino::MessageLayoutContainer::begin ( int  width_,
float  scale_,
MessageFlags  flags_ 
)
Here is the call graph for this function:

◆ breakLine()

void chatterino::MessageLayoutContainer::breakLine ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ canAddElements()

bool chatterino::MessageLayoutContainer::canAddElements ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void chatterino::MessageLayoutContainer::clear ( )
Here is the caller graph for this function:

◆ end()

void chatterino::MessageLayoutContainer::end ( )
Here is the call graph for this function:

◆ fitsInLine()

bool chatterino::MessageLayoutContainer::fitsInLine ( int  width_)
Here is the caller graph for this function:

◆ getElementAt()

MessageLayoutElement * chatterino::MessageLayoutContainer::getElementAt ( QPoint  point)
Here is the call graph for this function:

◆ getFirstMessageCharacterIndex()

int chatterino::MessageLayoutContainer::getFirstMessageCharacterIndex ( ) const
Here is the call graph for this function:

◆ getHeight()

int chatterino::MessageLayoutContainer::getHeight ( ) const

◆ getLastCharacterIndex()

int chatterino::MessageLayoutContainer::getLastCharacterIndex ( ) const

◆ getScale()

float chatterino::MessageLayoutContainer::getScale ( ) const
Here is the caller graph for this function:

◆ getSelectionIndex()

int chatterino::MessageLayoutContainer::getSelectionIndex ( QPoint  point)
Here is the call graph for this function:

◆ getWidth()

int chatterino::MessageLayoutContainer::getWidth ( ) const

◆ isCollapsed()

bool chatterino::MessageLayoutContainer::isCollapsed ( )

◆ paintAnimatedElements()

void chatterino::MessageLayoutContainer::paintAnimatedElements ( QPainter &  painter,
int  yOffset 
)
Here is the call graph for this function:

◆ paintElements()

void chatterino::MessageLayoutContainer::paintElements ( QPainter &  painter)
Here is the call graph for this function:

◆ paintSelection()

void chatterino::MessageLayoutContainer::paintSelection ( QPainter &  painter,
int  messageIndex,
Selection selection,
int  yOffset 
)
Here is the call graph for this function:

◆ reorderRTL()

void chatterino::MessageLayoutContainer::reorderRTL ( int  firstTextIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ containsRTL

bool chatterino::MessageLayoutContainer::containsRTL = false

◆ first

FirstWord chatterino::MessageLayoutContainer::first = FirstWord::Neutral

The documentation for this struct was generated from the following files: