MCPcopy Create free account
hub / github.com/ZDoom/Raze / SetPosition

Method SetPosition

libraries/ZWidget/src/widgets/scrollbar/scrollbar.cpp:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void Scrollbar::SetPosition(double pos)
118{
119 position = pos;
120 if (pos >= scroll_max)
121 position = scroll_max - 1.0;
122 if (pos < scroll_min)
123 position = scroll_min;
124
125 if (UpdatePartPositions())
126 Update();
127}
128
129void Scrollbar::OnMouseMove(const Point& pos)
130{

Callers 5

ScrollToItemMethod · 0.45
OnMouseWheelMethod · 0.45
UpdateVerticalScrollMethod · 0.45
MoveVerticalScrollMethod · 0.45
LayoutLinesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected