MCPcopy Create free account
hub / github.com/dejwk/roo_display / TestTarget

Method TestTarget

test/addr_window_device_test.cpp:21–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 static constexpr ByteOrder byte_order = byte_order_p;
20
21 TestTarget(int16_t width, int16_t height, Color bg)
22 : width_(width),
23 height_(height),
24 data_(new Color[width * height]),
25 orientation_(Orientation::Default()),
26 xMin_(-1),
27 yMin_(-1),
28 xMax_(-1),
29 yMax_(-1),
30 xCursor_(-1),
31 yCursor_(-1),
32 initialized_(false),
33 inTransaction_(false),
34 inRamWrite_(false),
35 flushed_(true) {
36 ColorMode mode;
37 bg = mode.toArgbColor(mode.fromArgbColor(bg));
38 std::fill(&data_[0], &data_[width * height], bg);
39 }
40
41 int16_t width() const { return width_; }
42 int16_t height() const { return height_; }

Callers

nothing calls this directly

Calls 2

toArgbColorMethod · 0.45
fromArgbColorMethod · 0.45

Tested by

no test coverage detected