MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / DrawStickyBox

Function DrawStickyBox

src/widget.cpp:665–668  ·  view source on GitHub ↗

* Draw a sticky box. * @param r Rectangle of the box. * @param colour Colour of the sticky box. * @param clicked Box is lowered. */

Source from the content-addressed store, hash-verified

663 * @param clicked Box is lowered.
664 */
665static inline void DrawStickyBox(const Rect &r, Colours colour, bool clicked)
666{
667 DrawImageButtons(r, WWT_STICKYBOX, colour, clicked, clicked ? SPR_PIN_UP : SPR_PIN_DOWN, SA_CENTER);
668}
669
670/**
671 * Draw a defsize box.

Callers 1

DrawMethod · 0.85

Calls 1

DrawImageButtonsFunction · 0.85

Tested by

no test coverage detected