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 ()
 
MessageElementsetLink (const Link &link)
 
MessageElementsetText (const QString &text)
 
MessageElementsetTooltip (const QString &tooltip)
 
MessageElementsetThumbnailType (const ThumbnailType type)
 
MessageElementsetThumbnail (const ImagePtr &thumbnail)
 
MessageElementsetTrailingSpace (bool value)
 
const QString & getTooltip () const
 
const ImagePtrgetThumbnail () const
 
const ThumbnailTypegetThumbnailType () const
 
const LinkgetLink () const
 
bool hasTrailingSpace () const
 
MessageElementFlags getFlags () const
 
MessageElementupdateLink ()
 

Protected Member Functions

virtual MessageLayoutElementmakeImageLayoutElement (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: