MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / Text_Box

Method Text_Box

Source/GUI/Text_Box.cpp:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace GUI
7{
8 Text_Box::Text_Box( unsigned maxTextLength,
9 const sf::Vector2f& size,
10 const std::string& labelText,
11 std::string& inputString)
12 : m_inputtedText (&inputString)
13 , m_maxLength (maxTextLength)
14 {
15 m_quad.setSize(size);
16 m_quad.setTexture(&Component::guiTexture);
17 m_quad.setOutlineColor(sf::Color::Black);
18 m_quad.setOutlineThickness(2);
19
20 initText(m_text, 30, "");
21 initText(m_label, 10, labelText);
22 }
23
24 void Text_Box::input(const sf::Event& e)
25 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected