Numworks Epsilon
1.4.1
Graphing Calculator Operating System
text_cursor_view.cpp
Go to the documentation of this file.
1
#include <
escher/text_cursor_view.h
>
2
3
void
TextCursorView::drawRect
(
KDContext
* ctx,
KDRect
rect)
const
{
4
KDCoordinate
height =
bounds
().
height
();
5
ctx->
fillRect
(
KDRect
(0, 0, 1, height),
KDColorBlack
);
6
}
7
8
KDSize
TextCursorView::minimalSizeForOptimalDisplay
()
const
{
9
return
KDSize
(
k_width
, 0);
10
}
11
KDCoordinate
int16_t KDCoordinate
Definition:
coordinate.h:6
TextCursorView::k_width
static constexpr KDCoordinate k_width
Definition:
text_cursor_view.h:11
KDSize
Definition:
size.h:6
text_cursor_view.h
TextCursorView::drawRect
void drawRect(KDContext *ctx, KDRect rect) const override
Definition:
text_cursor_view.cpp:3
KDContext
Definition:
context.h:8
KDColorBlack
constexpr KDColor KDColorBlack
Definition:
color.h:41
KDRect
Definition:
rect.h:26
KDContext::fillRect
void fillRect(KDRect rect, KDColor color)
Definition:
context_rect.cpp:8
TextCursorView::minimalSizeForOptimalDisplay
KDSize minimalSizeForOptimalDisplay() const override
Definition:
text_cursor_view.cpp:8
KDRect::height
KDCoordinate height() const
Definition:
rect.h:40
View::bounds
KDRect bounds() const
Definition:
view.cpp:157
epsilon
escher
src
text_cursor_view.cpp
Generated by
1.8.14