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

Method SetVerticalAdjustment

src/SFGUI/ScrolledWindow.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void ScrolledWindow::SetVerticalAdjustment( Adjustment::Ptr adjustment ) {
56 m_vertical_scrollbar->SetAdjustment( adjustment );
57
58 if( m_viewport ) {
59 m_viewport->SetVerticalAdjustment( adjustment );
60 }
61
62 RecalculateContentAllocation();
63 Invalidate();
64}
65
66char ScrolledWindow::GetScrollbarPolicy() const {
67 return m_policy;

Callers 1

AddWithViewportMethod · 0.45

Calls 1

SetAdjustmentMethod · 0.45

Tested by

no test coverage detected