Chatterino
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
chatterino::ImageLayoutElement Class Reference

#include <MessageLayoutElement.hpp>

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

Public Member Functions

 ImageLayoutElement (MessageElement &creator, ImagePtr image, const QSize &size)
 
- Public Member Functions inherited from chatterino::MessageLayoutElement
 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_)
 
const LinkgetLink () const
 
const QString & getText () const
 
FlagsEnum< MessageElementFlaggetFlags () const
 

Protected Member Functions

void addCopyTextToString (QString &str, uint32_t from=0, uint32_t to=UINT32_MAX) const override
 
int getSelectionIndexCount () const override
 
void paint (QPainter &painter) override
 
void paintAnimated (QPainter &painter, int yOffset) override
 
int getMouseOverIndex (const QPoint &abs) const override
 
int getXFromIndex (int index) override
 

Protected Attributes

ImagePtr image_
 
- Protected Attributes inherited from chatterino::MessageLayoutElement
bool trailingSpace = true
 

Additional Inherited Members

- Public Attributes inherited from chatterino::MessageLayoutElement
bool reversedNeutral = false
 

Constructor & Destructor Documentation

◆ ImageLayoutElement()

chatterino::ImageLayoutElement::ImageLayoutElement ( MessageElement creator,
ImagePtr  image,
const QSize &  size 
)
Here is the call graph for this function:

Member Function Documentation

◆ addCopyTextToString()

void chatterino::ImageLayoutElement::addCopyTextToString ( QString &  str,
uint32_t  from = 0,
uint32_t  to = UINT32_MAX 
) const
overrideprotectedvirtual

Implements chatterino::MessageLayoutElement.

Here is the call graph for this function:

◆ getMouseOverIndex()

int chatterino::ImageLayoutElement::getMouseOverIndex ( const QPoint &  abs) const
overrideprotectedvirtual

◆ getSelectionIndexCount()

int chatterino::ImageLayoutElement::getSelectionIndexCount ( ) const
overrideprotectedvirtual

◆ getXFromIndex()

int chatterino::ImageLayoutElement::getXFromIndex ( int  index)
overrideprotectedvirtual

Implements chatterino::MessageLayoutElement.

Here is the call graph for this function:

◆ paint()

void chatterino::ImageLayoutElement::paint ( QPainter &  painter)
overrideprotectedvirtual

Implements chatterino::MessageLayoutElement.

Reimplemented in chatterino::ImageWithCircleBackgroundLayoutElement, and chatterino::ImageWithBackgroundLayoutElement.

Here is the call graph for this function:

◆ paintAnimated()

void chatterino::ImageLayoutElement::paintAnimated ( QPainter &  painter,
int  yOffset 
)
overrideprotectedvirtual

Implements chatterino::MessageLayoutElement.

Here is the call graph for this function:

Member Data Documentation

◆ image_

ImagePtr chatterino::ImageLayoutElement::image_
protected

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