5 {0xFF, 0xFF, 0xE1, 0x0C, 0x00, 0x00, 0x0C, 0xE1, 0xFF, 0xFF},
6 {0xFF, 0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0xFF},
7 {0xE1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE1},
8 {0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C},
9 {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
10 {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
11 {0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C},
12 {0xE1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE1},
13 {0xFF, 0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0xFF},
14 {0xFF, 0xFF, 0xE1, 0x0C, 0x00, 0x00, 0x0C, 0xE1, 0xFF, 0xFF},
29 if (m_level !=
level) {
38 if (m_backgroundColor != color) {
39 m_backgroundColor = color;
static constexpr KDColor YellowDark
void setBackgroundColor(KDColor color)
static constexpr KDColor GreyDark
void markRectAsDirty(KDRect rect)
void blendRectWithMask(KDRect rect, KDColor color, const uint8_t *mask, KDColor *workingBuffer)
static constexpr KDCoordinate k_indicatorDiameter
void drawRect(KDContext *ctx, KDRect rect) const override
constexpr KDColor KDColorWhite
KDSize minimalSizeForOptimalDisplay() const override
KDColor s_gaugeIndicatorWorkingBuffer[GaugeView::k_indicatorDiameter *GaugeView::k_indicatorDiameter]
void fillRect(KDRect rect, KDColor color)
const uint8_t gaugeIndicatorMask[GaugeView::k_indicatorDiameter][GaugeView::k_indicatorDiameter]
KDCoordinate width() const
void setLevel(float level)
KDCoordinate height() const