MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / ScrollBar

Method ScrollBar

src/Interface/ScrollBar.cpp:36–44  ·  view source on GitHub ↗

* Sets up a scrollbar with the specified size and position. * @param width Width in pixels. * @param height Height in pixels. * @param x X position in pixels. * @param y Y position in pixels. */

Source from the content-addressed store, hash-verified

34 * @param y Y position in pixels.
35 */
36ScrollBar::ScrollBar(int width, int height, int x, int y) : InteractiveSurface(width, height, x, y), _list(0), _color(0), _pressed(false), _contrast(false), _offset(0), _bg(0)
37{
38 _track = new Surface(width-2, height, x+1, y);
39 _thumb = new Surface(width, height, x, y);
40 _thumbRect.x = 0;
41 _thumbRect.y = 0;
42 _thumbRect.w = 0;
43 _thumbRect.h = 0;
44}
45
46/**
47 * Deletes contents.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected