Chatterino
Public Member Functions | Public Attributes | Protected Attributes | List of all members
chatterino::MessageLayoutElement Class Referenceabstract

#include <MessageLayoutElement.hpp>

Inheritance diagram for chatterino::MessageLayoutElement:
[legend]
Collaboration diagram for chatterino::MessageLayoutElement:
[legend]

Public Member Functions

 MessageLayoutElement (MessageElement &creator_, const QSize &size)
 
virtual ~MessageLayoutElement ()
 
const QRect & getRect () const
 
MessageElementgetCreator () const
 
void setPosition (QPoint point)
 
bool hasTrailingSpace () const
 
int getLine () const
 
void setLine (int line)
 
MessageLayoutElementsetTrailingSpace (bool value)
 
MessageLayoutElementsetLink (const Link &link_)
 
MessageLayoutElementsetText (const QString &text_)
 
virtual void addCopyTextToString (QString &str, uint32_t from=0, uint32_t to=UINT32_MAX) const =0
 
virtual int getSelectionIndexCount () const =0
 
virtual void paint (QPainter &painter)=0
 
virtual void paintAnimated (QPainter &painter, int yOffset)=0
 
virtual int getMouseOverIndex (const QPoint &abs) const =0
 
virtual int getXFromIndex (int index)=0
 
const LinkgetLink () const
 
const QString & getText () const
 
FlagsEnum< MessageElementFlaggetFlags () const
 

Public Attributes

bool reversedNeutral = false
 

Protected Attributes

bool trailingSpace = true
 

Constructor & Destructor Documentation

◆ MessageLayoutElement()

chatterino::MessageLayoutElement::MessageLayoutElement ( MessageElement creator_,
const QSize &  size 
)
Here is the call graph for this function:

◆ ~MessageLayoutElement()

chatterino::MessageLayoutElement::~MessageLayoutElement ( )
virtual
Here is the call graph for this function:

Member Function Documentation

◆ addCopyTextToString()

virtual void chatterino::MessageLayoutElement::addCopyTextToString ( QString &  str,
uint32_t  from = 0,
uint32_t  to = UINT32_MAX 
) const
pure virtual

Implemented in chatterino::ReplyCurveLayoutElement, chatterino::TextIconLayoutElement, chatterino::TextLayoutElement, and chatterino::ImageLayoutElement.

Here is the caller graph for this function:

◆ getCreator()

MessageElement & chatterino::MessageLayoutElement::getCreator ( ) const
Here is the caller graph for this function:

◆ getFlags()

FlagsEnum< MessageElementFlag > chatterino::MessageLayoutElement::getFlags ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLine()

int chatterino::MessageLayoutElement::getLine ( ) const

◆ getLink()

const Link & chatterino::MessageLayoutElement::getLink ( ) const
Here is the caller graph for this function:

◆ getMouseOverIndex()

virtual int chatterino::MessageLayoutElement::getMouseOverIndex ( const QPoint &  abs) const
pure virtual

Implemented in chatterino::ReplyCurveLayoutElement, chatterino::TextIconLayoutElement, chatterino::TextLayoutElement, and chatterino::ImageLayoutElement.

Here is the caller graph for this function:

◆ getRect()

const QRect & chatterino::MessageLayoutElement::getRect ( ) const
Here is the caller graph for this function:

◆ getSelectionIndexCount()

virtual int chatterino::MessageLayoutElement::getSelectionIndexCount ( ) const
pure virtual

Implemented in chatterino::ReplyCurveLayoutElement, chatterino::TextIconLayoutElement, chatterino::TextLayoutElement, and chatterino::ImageLayoutElement.

Here is the caller graph for this function:

◆ getText()

const QString & chatterino::MessageLayoutElement::getText ( ) const
Here is the caller graph for this function:

◆ getXFromIndex()

virtual int chatterino::MessageLayoutElement::getXFromIndex ( int  index)
pure virtual

◆ hasTrailingSpace()

bool chatterino::MessageLayoutElement::hasTrailingSpace ( ) const
Here is the caller graph for this function:

◆ paint()

virtual void chatterino::MessageLayoutElement::paint ( QPainter &  painter)
pure virtual

Implemented in chatterino::ReplyCurveLayoutElement, chatterino::TextIconLayoutElement, chatterino::TextLayoutElement, chatterino::ImageWithCircleBackgroundLayoutElement, chatterino::ImageWithBackgroundLayoutElement, and chatterino::ImageLayoutElement.

Here is the caller graph for this function:

◆ paintAnimated()

virtual void chatterino::MessageLayoutElement::paintAnimated ( QPainter &  painter,
int  yOffset 
)
pure virtual

Implemented in chatterino::ReplyCurveLayoutElement, chatterino::TextIconLayoutElement, chatterino::TextLayoutElement, and chatterino::ImageLayoutElement.

Here is the caller graph for this function:

◆ setLine()

void chatterino::MessageLayoutElement::setLine ( int  line)
Here is the caller graph for this function:

◆ setLink()

MessageLayoutElement * chatterino::MessageLayoutElement::setLink ( const Link link_)
Here is the caller graph for this function:

◆ setPosition()

void chatterino::MessageLayoutElement::setPosition ( QPoint  point)
Here is the caller graph for this function:

◆ setText()

MessageLayoutElement * chatterino::MessageLayoutElement::setText ( const QString &  text_)
Here is the caller graph for this function:

◆ setTrailingSpace()

MessageLayoutElement * chatterino::MessageLayoutElement::setTrailingSpace ( bool  value)

Member Data Documentation

◆ reversedNeutral

bool chatterino::MessageLayoutElement::reversedNeutral = false

◆ trailingSpace

bool chatterino::MessageLayoutElement::trailingSpace = true
protected

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