Files
Upsilon/escher/src/text_cursor_view.cpp
Émilie Feral 8f1d37c28c [escher] Add a cursor to text fields
Change-Id: Ib4a80a3c6d4b5d76cb56645275e8ecc6d69528ca
2017-03-08 15:42:14 +01:00

12 lines
296 B
C++

#include <escher/text_cursor_view.h>
void TextCursorView::drawRect(KDContext * ctx, KDRect rect) const {
KDCoordinate height = bounds().height();
ctx->fillRect(KDRect(0, 0, 1, height), KDColorBlack);
}
KDSize TextCursorView::minimalSizeForOptimalDisplay() const {
return KDSize(1, 0);
}