MCPcopy Create free account
hub / github.com/TankOs/SFGUI / CalculateRequisition

Method CalculateRequisition

src/SFGUI/Alignment.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23sf::Vector2f Alignment::CalculateRequisition() {
24 auto child = GetChild();
25
26 if( !child ) {
27 return sf::Vector2f( 0.f, 0.f );
28 }
29
30 return child->GetRequisition();
31}
32
33const std::string& Alignment::GetName() const {
34 static const std::string name( "Alignment" );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected