Allow ValueViewers to have a bounding box different from the Style's. This closes #64.

This commit is contained in:
Twan van Laarhoven
2020-06-01 01:18:13 +02:00
parent e9305c7554
commit 4ff603d413
24 changed files with 79 additions and 87 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ void InfoValueViewer::draw(RotatedDC& dc) {
dc.SetFont(style().font, 1.0);
}
// draw background
RealRect rect = style().getInternalRect();
RealRect rect = dc.getInternalRect();
dc.DrawRectangle(rect.grow(2));
// draw text
rect = rect.move(