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
4
PicView::PicView
() :
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
}
assert
#define assert(e)
Definition:
assert.h:9
PicView::drawRect
void drawRect(KDContext *ctx, KDRect rect) const override
Definition:
pic_view.cpp:10
assert.h
PicView::PicView
PicView()
Definition:
pic_view.cpp:4
KDContext
Definition:
context.h:8
KDContext::fillRectWithPixels
void fillRectWithPixels(KDRect rect, const KDColor *pixels, KDColor *workingBuffer)
Definition:
context_rect.cpp:17
KDRect
Definition:
rect.h:26
pic_view.h
KDColor
Definition:
color.h:6
View
Definition:
view.h:23
View::bounds
KDRect bounds() const
Definition:
view.cpp:157
epsilon
apps
picview
pic_view.cpp
Generated by
1.8.14