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

Method ScrolledWindow

src/SFGUI/ScrolledWindow.cpp:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace sfg {
10
11ScrolledWindow::ScrolledWindow( Adjustment::Ptr horizontal_adjustment, Adjustment::Ptr vertical_adjustment ) :
12 m_content_allocation(),
13 m_horizontal_scrollbar(),
14 m_vertical_scrollbar(),
15 m_viewport(),
16 m_policy( ScrollbarPolicy::DEFAULT ),
17 m_placement( Placement::DEFAULT )
18{
19 m_horizontal_scrollbar = Scrollbar::Create( horizontal_adjustment, Scrollbar::Orientation::HORIZONTAL );
20 m_vertical_scrollbar = Scrollbar::Create( vertical_adjustment, Scrollbar::Orientation::VERTICAL );
21}
22
23ScrolledWindow::Ptr ScrolledWindow::Create() {
24 return ScrolledWindow::Create( Adjustment::Create(), Adjustment::Create() );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected