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

Method ArrowButton

src/Interface/ArrowButton.cpp:35–39  ·  view source on GitHub ↗

* Sets up an arrow button with the specified size and position. * @param shape Shape of the arrow. * @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

33 * @param y Y position in pixels.
34 */
35ArrowButton::ArrowButton(ArrowShape shape, int width, int height, int x, int y) : ImageButton(width, height, x, y), _shape(shape), _list(0)
36{
37 _timer = new Timer(50);
38 _timer->onTimer((SurfaceHandler)&ArrowButton::scroll);
39}
40
41/**
42 * Deletes timers.

Callers

nothing calls this directly

Calls 1

onTimerMethod · 0.80

Tested by

no test coverage detected