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

Method HandleSizeChange

src/SFGUI/Viewport.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void Viewport::HandleSizeChange() {
48 auto allocation = GetAllocation();
49
50 m_children_viewport->SetSize(
51 sf::Vector2f(
52 std::floor( allocation.size.x + .5f ),
53 std::floor( allocation.size.y + .5f )
54 )
55 );
56}
57
58void Viewport::HandleAbsolutePositionChange() {
59 auto position = Widget::GetAbsolutePosition();

Callers

nothing calls this directly

Calls 1

SetSizeMethod · 0.80

Tested by

no test coverage detected