![]() |
MAK Data Logger API Documentation for HLA
|
Functions | |
| qreal | snap (qreal value, qreal dpr) |
| value rounded to a whole device pixel. More... | |
| QRectF | snapRect (const QRectF &rect, qreal dpr) |
| rect with every edge on a whole device pixel. More... | |
| qreal | strokeWidth (int logicalWidth, qreal dpr) |
| logicalWidth rounded to whole device pixels, at least one. More... | |
| void | strokeRoundedRect (QPainter &painter, const QRectF &rect, qreal radius, const QColor &color, int logicalWidth, Qt::PenStyle style=Qt::SolidLine) |
| Rounded outline drawn inside rect, snapped to whole device pixels. More... | |
| void | paintSwatch (QPainter &painter, const QRectF &rect, qreal radius, const QColor &color, const QColor &outline, int outlineWidth) |
| Rounded swatch with a snapped outline inside rect; an invalid color draws an empty dashed swatch. More... | |
| void | drawCheck (QPainter &painter, const QRectF &box, const QColor &color, qreal strokeWidth) |
| Lucide "check" (24-unit grid) scaled into box. More... | |
Variables | |
| const int | kSwatchWidth = 24 |
| const int | kSwatchHeight = 16 |
| const qreal | kSwatchRadius = 4.0 |
| radius-sm More... | |
| void MAKLogger::AnnotationPaint::drawCheck | ( | QPainter & | painter, |
| const QRectF & | box, | ||
| const QColor & | color, | ||
| qreal | strokeWidth | ||
| ) |
Lucide "check" (24-unit grid) scaled into box.
| void MAKLogger::AnnotationPaint::paintSwatch | ( | QPainter & | painter, |
| const QRectF & | rect, | ||
| qreal | radius, | ||
| const QColor & | color, | ||
| const QColor & | outline, | ||
| int | outlineWidth | ||
| ) |
Rounded swatch with a snapped outline inside rect; an invalid color draws an empty dashed swatch.
| qreal MAKLogger::AnnotationPaint::snap | ( | qreal | value, |
| qreal | dpr | ||
| ) |
value rounded to a whole device pixel.
| QRectF MAKLogger::AnnotationPaint::snapRect | ( | const QRectF & | rect, |
| qreal | dpr | ||
| ) |
rect with every edge on a whole device pixel.
| void MAKLogger::AnnotationPaint::strokeRoundedRect | ( | QPainter & | painter, |
| const QRectF & | rect, | ||
| qreal | radius, | ||
| const QColor & | color, | ||
| int | logicalWidth, | ||
| Qt::PenStyle | style = Qt::SolidLine |
||
| ) |
Rounded outline drawn inside rect, snapped to whole device pixels.
| qreal MAKLogger::AnnotationPaint::strokeWidth | ( | int | logicalWidth, |
| qreal | dpr | ||
| ) |
logicalWidth rounded to whole device pixels, at least one.
| const int MAKLogger::AnnotationPaint::kSwatchHeight = 16 |
| const qreal MAKLogger::AnnotationPaint::kSwatchRadius = 4.0 |
radius-sm
| const int MAKLogger::AnnotationPaint::kSwatchWidth = 24 |