MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
MAKLogger::AnnotationPaint Namespace Reference

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...
 

Function Documentation

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.

Variable Documentation

const int MAKLogger::AnnotationPaint::kSwatchHeight = 16
const qreal MAKLogger::AnnotationPaint::kSwatchRadius = 4.0

radius-sm

const int MAKLogger::AnnotationPaint::kSwatchWidth = 24

Document ID: Generated on Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)