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

#include <MessageLayout.hpp>

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

Public Member Functions

 MessageLayout (MessagePtr message_)
 
 ~MessageLayout ()
 
const Message * getMessage ()
 
const MessagePtr & getMessagePtr () const
 
int getHeight () const
 
int getWidth () const
 
bool layout (int width, float scale_, MessageElementFlags flags)
 
void paint (QPainter &painter, int width, int y, int messageIndex, Selection &selection, bool isLastReadMessage, bool isWindowFocused, bool isMentions)
 
void invalidateBuffer ()
 
void deleteBuffer ()
 
void deleteCache ()
 
const MessageLayoutElement * getElementAt (QPoint point)
 
int getLastCharacterIndex () const
 
int getFirstMessageCharacterIndex () const
 
int getSelectionIndex (QPoint position)
 
void addSelectionText (QString &str, uint32_t from=0, uint32_t to=UINT32_MAX, CopyMode copymode=CopyMode::Everything)
 
bool isDisabled () const
 
bool isReplyable () const
 

Public Attributes

MessageLayoutFlags flags
 

Constructor & Destructor Documentation

◆ MessageLayout()

chatterino::MessageLayout::MessageLayout ( MessagePtr  message_)
Here is the call graph for this function:

◆ ~MessageLayout()

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

Member Function Documentation

◆ addSelectionText()

void chatterino::MessageLayout::addSelectionText ( QString &  str,
uint32_t  from = 0,
uint32_t  to = UINT32_MAX,
CopyMode  copymode = CopyMode::Everything 
)

◆ deleteBuffer()

void chatterino::MessageLayout::deleteBuffer ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteCache()

void chatterino::MessageLayout::deleteCache ( )
Here is the call graph for this function:

◆ getElementAt()

const MessageLayoutElement * chatterino::MessageLayout::getElementAt ( QPoint  point)

◆ getFirstMessageCharacterIndex()

int chatterino::MessageLayout::getFirstMessageCharacterIndex ( ) const
Here is the caller graph for this function:

◆ getHeight()

int chatterino::MessageLayout::getHeight ( ) const
Here is the caller graph for this function:

◆ getLastCharacterIndex()

int chatterino::MessageLayout::getLastCharacterIndex ( ) const
Here is the caller graph for this function:

◆ getMessage()

const Message * chatterino::MessageLayout::getMessage ( )
Here is the caller graph for this function:

◆ getMessagePtr()

const MessagePtr & chatterino::MessageLayout::getMessagePtr ( ) const
Here is the caller graph for this function:

◆ getSelectionIndex()

int chatterino::MessageLayout::getSelectionIndex ( QPoint  position)
Here is the caller graph for this function:

◆ getWidth()

int chatterino::MessageLayout::getWidth ( ) const
Here is the caller graph for this function:

◆ invalidateBuffer()

void chatterino::MessageLayout::invalidateBuffer ( )
Here is the caller graph for this function:

◆ isDisabled()

bool chatterino::MessageLayout::isDisabled ( ) const

◆ isReplyable()

bool chatterino::MessageLayout::isReplyable ( ) const

◆ layout()

bool chatterino::MessageLayout::layout ( int  width,
float  scale_,
MessageElementFlags  flags 
)
Here is the call graph for this function:

◆ paint()

void chatterino::MessageLayout::paint ( QPainter &  painter,
int  width,
int  y,
int  messageIndex,
Selection &  selection,
bool  isLastReadMessage,
bool  isWindowFocused,
bool  isMentions 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ flags

MessageLayoutFlags chatterino::MessageLayout::flags

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