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

#include <MessageLayoutElement.hpp>

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

Public Member Functions

 ImageWithCircleBackgroundLayoutElement (MessageElement &creator, ImagePtr image, const QSize &imageSize, QColor color, int padding)
 
- Public Member Functions inherited from chatterino::ImageLayoutElement
 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 paint (QPainter &painter) override
 
- Protected Member Functions inherited from chatterino::ImageLayoutElement
void addCopyTextToString (QString &str, uint32_t from=0, uint32_t to=UINT32_MAX) const override
 
int getSelectionIndexCount () const override
 
void paintAnimated (QPainter &painter, int yOffset) override
 
int getMouseOverIndex (const QPoint &abs) const override
 
int getXFromIndex (int index) override
 

Additional Inherited Members

- Public Attributes inherited from chatterino::MessageLayoutElement
bool reversedNeutral = false
 
- Protected Attributes inherited from chatterino::ImageLayoutElement
ImagePtr image_
 
- Protected Attributes inherited from chatterino::MessageLayoutElement
bool trailingSpace = true
 

Constructor & Destructor Documentation

◆ ImageWithCircleBackgroundLayoutElement()

chatterino::ImageWithCircleBackgroundLayoutElement::ImageWithCircleBackgroundLayoutElement ( MessageElement creator,
ImagePtr  image,
const QSize &  imageSize,
QColor  color,
int  padding 
)

Member Function Documentation

◆ paint()

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

Reimplemented from chatterino::ImageLayoutElement.

Here is the call graph for this function:

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