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

Method CalculateRequisition

src/SFGUI/ProgressBar.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32sf::Vector2f ProgressBar::CalculateRequisition() {
33 if( m_orientation == Orientation::HORIZONTAL ) {
34 return sf::Vector2f( 20.f, 10.f );
35 }
36
37 return sf::Vector2f( 10.f, 20.f );
38}
39
40std::unique_ptr<RenderQueue> ProgressBar::InvalidateImpl() const {
41 return Context::Get().GetEngine().CreateProgressBarDrawable( std::dynamic_pointer_cast<const ProgressBar>( shared_from_this() ) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected