MCPcopy Create free account
hub / github.com/DFHack/dfhack / Painter

Function Painter

library/include/modules/Screen.h:249–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247 static const Pen default_key_pen;
248
249 Painter(const ViewRect &area, const Pen &pen = default_pen, const Pen &kpen = default_key_pen)
250 : ViewRect(area), gcursor(area.view.first), cur_pen(pen), cur_key_pen(kpen)
251 {}
252
253 df::coord2d cursor() const { return local(gcursor); }
254 int cursorX() const { return gcursor.x - view.first.x; }

Callers 1

viewportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected