26 #ifndef TGUI_CHAT_BOX_HPP 
   27 #define TGUI_CHAT_BOX_HPP 
   52         ChatBox(
const ChatBox& copy);
 
   70         ChatBox& operator= (
const ChatBox& right);
 
   76         virtual void initialize();
 
   83         virtual ChatBox* clone();
 
  101         virtual bool load(
float width, 
float height, 
unsigned int textSize, 
const std::string& scrollbarPathname = 
"");
 
  111         virtual void setSize(
float width, 
float height);
 
  120         virtual Vector2u getSize() 
const;
 
  129         virtual Vector2f getScaledSize() 
const;
 
  139         virtual std::string getLoadedScrollbarPathname() 
const;
 
  149         virtual void addLine(
const sf::String& text, 
const sf::Color& color = sf::Color::Black);
 
  161         virtual void setTextFont(
const sf::Font& font);
 
  170         virtual const sf::Font* getTextFont() 
const;
 
  180         virtual void setTextSize(
unsigned int size);
 
  189         virtual unsigned int getTextSize() 
const;
 
  201         virtual void setBorders(
unsigned int leftBorder   = 0,
 
  202                                 unsigned int topBorder    = 0,
 
  203                                 unsigned int rightBorder  = 0,
 
  204                                 unsigned int bottomBorder = 0);
 
  213         virtual void setBackgroundColor(
const sf::Color& backgroundColor);
 
  222         virtual void setBorderColor(
const sf::Color& borderColor);
 
  231         virtual const sf::Color& getBackgroundColor() 
const;
 
  240         virtual const sf::Color& getBorderColor() 
const;
 
  253         virtual bool setScrollbar(
const std::string& scrollbarPathname);
 
  262         virtual void removeScrollbar();
 
  268         virtual bool mouseOnObject(
float x, 
float y);
 
  269         virtual void leftMousePressed(
float x, 
float y);
 
  270         virtual void leftMouseReleased(
float x, 
float y);
 
  271         virtual void mouseMoved(
float x, 
float y);
 
  272         virtual void mouseWheelMoved(
int delta);
 
  273         virtual void mouseNotOnObject();
 
  274         virtual void mouseNoLongerDown();
 
  284         float calculateValidHeight(
float requestedHeight);
 
  290         void updateDisplayedText();
 
  297         virtual void draw(sf::RenderTarget& target, sf::RenderStates states) 
const;
 
  303         unsigned int m_TextSize;
 
  304         sf::Color m_BorderColor;
 
  313         std::string m_LoadedScrollbarPathname;
 
  323 #endif // TGUI_TEXT_BOX_HPP 
The parent struct for every object. 
Definition: Objects.hpp:36
 
Parent struct for every object that has borders. 
Definition: Objects.hpp:299
 
Definition: ChatBox.hpp:37
 
A static group of objects. The background color can be solid or transparent. 
Definition: Panel.hpp:36