Numworks Epsilon  1.4.1
Graphing Calculator Operating System
lock_view.cpp
Go to the documentation of this file.
1 #include "lock_view.h"
2 
4  {0xFF, 0xE1, 0x0C, 0x00, 0x0C, 0xE1, 0xFF},
5  {0xFF, 0x0C, 0xE1, 0xFF, 0xE1, 0x0C, 0xFF},
6  {0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0xFF},
7  {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
8  {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
9  {0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00},
10  {0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00},
11  {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
12  {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
13 };
14 
16 
17 void LockView::drawRect(KDContext * ctx, KDRect rect) const {
18  KDRect frame((bounds().width() - k_lockWidth)/2, (bounds().height()-k_lockHeight)/2, k_lockWidth, k_lockHeight);
20 }
21 
24 }
void blendRectWithMask(KDRect rect, KDColor color, const uint8_t *mask, KDColor *workingBuffer)
const uint8_t lockMask[LockView::k_lockHeight][LockView::k_lockWidth]
Definition: lock_view.cpp:3
unsigned char uint8_t
Definition: stdint.h:4
Definition: size.h:6
KDSize minimalSizeForOptimalDisplay() const override
Definition: lock_view.cpp:22
constexpr KDColor KDColorWhite
Definition: color.h:42
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: lock_view.cpp:17
Definition: rect.h:26
Definition: color.h:6
static constexpr int k_lockHeight
Definition: lock_view.h:10
KDColor s_lockWorkingBuffer[LockView::k_lockHeight *LockView::k_lockWidth]
Definition: lock_view.cpp:15
KDRect bounds() const
Definition: view.cpp:157
static constexpr int k_lockWidth
Definition: lock_view.h:11