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

#include <MessageElement.hpp>

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

Public Member Functions

 BadgeElement (const EmotePtr &data, MessageElementFlags flags_)
 
void addToContainer (MessageLayoutContainer &container, MessageElementFlags flags_) override
 
EmotePtr getEmote () const
 
- Public Member Functions inherited from chatterino::MessageElement
virtual ~MessageElement ()
 
MessageElement * setLink (const Link &link)
 
MessageElement * setText (const QString &text)
 
MessageElement * setTooltip (const QString &tooltip)
 
MessageElement * setThumbnailType (const ThumbnailType type)
 
MessageElement * setThumbnail (const ImagePtr &thumbnail)
 
MessageElement * setTrailingSpace (bool value)
 
const QString & getTooltip () const
 
const ImagePtr & getThumbnail () const
 
const ThumbnailType & getThumbnailType () const
 
const Link & getLink () const
 
bool hasTrailingSpace () const
 
MessageElementFlags getFlags () const
 
MessageElement * updateLink ()
 

Protected Member Functions

virtual MessageLayoutElement * makeImageLayoutElement (const ImagePtr &image, const QSize &size)
 
- Protected Member Functions inherited from chatterino::MessageElement
 MessageElement (MessageElementFlags flags)
 

Additional Inherited Members

- Public Types inherited from chatterino::MessageElement
enum  UpdateFlags : char { Update_Text = 1, Update_Emotes = 2, Update_Images = 4, Update_All = Update_Text | Update_Emotes | Update_Images }
 
enum  ThumbnailType : char { Link_Thumbnail = 1 }
 
- Public Attributes inherited from chatterino::MessageElement
pajlada::Signals::NoArgSignal linkChanged
 
- Protected Attributes inherited from chatterino::MessageElement
bool trailingSpace = true
 

Constructor & Destructor Documentation

◆ BadgeElement()

chatterino::BadgeElement::BadgeElement ( const EmotePtr &  data,
MessageElementFlags  flags_ 
)
Here is the call graph for this function:

Member Function Documentation

◆ addToContainer()

void chatterino::BadgeElement::addToContainer ( MessageLayoutContainer &  container,
MessageElementFlags  flags_ 
)
overridevirtual

Implements chatterino::MessageElement.

Here is the call graph for this function:

◆ getEmote()

EmotePtr chatterino::BadgeElement::getEmote ( ) const

◆ makeImageLayoutElement()

MessageLayoutElement * chatterino::BadgeElement::makeImageLayoutElement ( const ImagePtr &  image,
const QSize &  size 
)
protectedvirtual

Reimplemented in chatterino::FfzBadgeElement, chatterino::VipBadgeElement, and chatterino::ModBadgeElement.

Here is the call graph for this function:
Here is the caller graph for this function:

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