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

Method setPosition

Source/GUI/Text_Box.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void Text_Box::setPosition(const sf::Vector2f& position)
75 {
76 m_label.setPosition(position);
77
78 m_quad.setPosition(position.x, position.y + 12);
79 m_text.setPosition(position.x, position.y + 12);
80 m_text.move(10, m_quad.getSize().y / 2 - m_text.getGlobalBounds().height / 2);
81 }
82
83 const sf::Vector2f Text_Box::getSize() const
84 {

Callers

nothing calls this directly

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected