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

Method SetHorizontalAdjustment

src/SFGUI/ScrolledWindow.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void ScrolledWindow::SetHorizontalAdjustment( Adjustment::Ptr adjustment ) {
41 m_horizontal_scrollbar->SetAdjustment( adjustment );
42
43 if( m_viewport ) {
44 m_viewport->SetHorizontalAdjustment( adjustment );
45 }
46
47 RecalculateContentAllocation();
48 Invalidate();
49}
50
51Adjustment::Ptr ScrolledWindow::GetVerticalAdjustment() const {
52 return m_vertical_scrollbar->GetAdjustment();

Callers 1

AddWithViewportMethod · 0.45

Calls 1

SetAdjustmentMethod · 0.45

Tested by

no test coverage detected