6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "cursor_view.h"
namespace Shared {
void CursorView::drawRect(KDContext * ctx, KDRect rect) const {
KDCoordinate width = bounds().width();
KDCoordinate height = bounds().height();
ctx->fillRect(KDRect((width-1)/2, 0, 1, height), KDColorBlack);
ctx->fillRect(KDRect(0, (height-1)/2, width, 1), KDColorBlack);
}
KDSize CursorView::minimalSizeForOptimalDisplay() const {
return KDSize(k_size, k_size);
}
}
|