Numworks Epsilon  1.4.1
Graphing Calculator Operating System
pic_view.cpp
Go to the documentation of this file.
1 #include "pic_view.h"
2 #include <assert.h>
3 
5  View() {
6 }
7 
8 #include "image.c"
9 
10 void PicView::drawRect(KDContext * ctx, KDRect rect) const {
11  KDColor * pixels = (KDColor *)apps_picview_image_raw;
12  assert(apps_picview_image_raw_len == bounds().width() * bounds().height() * sizeof(KDColor));
13  ctx->fillRectWithPixels(bounds(), pixels, nullptr);
14 }
#define assert(e)
Definition: assert.h:9
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: pic_view.cpp:10
PicView()
Definition: pic_view.cpp:4
void fillRectWithPixels(KDRect rect, const KDColor *pixels, KDColor *workingBuffer)
Definition: rect.h:26
Definition: color.h:6
Definition: view.h:23
KDRect bounds() const
Definition: view.cpp:157