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

Method InvalidateImpl

src/SFGUI/Viewport.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32std::unique_ptr<RenderQueue> Viewport::InvalidateImpl() const {
33 m_children_viewport->SetSourceOrigin(
34 sf::Vector2f(
35 std::floor( m_horizontal_adjustment->GetValue() + .5f ),
36 std::floor( m_vertical_adjustment->GetValue() + .5f )
37 )
38 );
39
40 return nullptr;
41}
42
43sf::Vector2f Viewport::CalculateRequisition() {
44 return sf::Vector2f( 0.f, 0.f );

Callers

nothing calls this directly

Calls 2

SetSourceOriginMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected