Loading...
Searching...
No Matches
ml::ChatWindow Class Reference

#include <Malena/Graphics/Controls/ChatWindow.h>

Inheritance diagram for ml::ChatWindow:
[legend]

Public Member Functions

 ChatWindow ()
void addMessage (const ChatMessage &msg)
void clear ()
sf::FloatRect getGlobalBounds () const override
sf::Vector2f getPosition () const override
const std::string & getRecipientId () const
void onSend (std::function< void(const std::string &)> callback)
void setPosition (const sf::Vector2f &pos) override
void setRecipientId (const std::string &id)
void setSize (const sf::Vector2f &size)

Detailed Description

Definition at line 28 of file ChatWindow.h.

Constructor & Destructor Documentation

◆ ChatWindow()

ml::ChatWindow::ChatWindow ( )

Member Function Documentation

◆ addMessage()

void ml::ChatWindow::addMessage ( const ChatMessage & msg)

◆ clear()

void ml::ChatWindow::clear ( )

◆ getGlobalBounds()

sf::FloatRect ml::ChatWindow::getGlobalBounds ( ) const
override

◆ getPosition()

sf::Vector2f ml::ChatWindow::getPosition ( ) const
override

◆ getRecipientId()

const std::string & ml::ChatWindow::getRecipientId ( ) const

◆ onSend()

void ml::ChatWindow::onSend ( std::function< void(const std::string &)> callback)

◆ setPosition()

void ml::ChatWindow::setPosition ( const sf::Vector2f & pos)
override

◆ setRecipientId()

void ml::ChatWindow::setRecipientId ( const std::string & id)

◆ setSize()

void ml::ChatWindow::setSize ( const sf::Vector2f & size)

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