dialogBaseUnitsToPixels returns size in dialog based units in native pixels.
(dlus Size)
| 1562 | |
| 1563 | // dialogBaseUnitsToPixels returns size in dialog based units in native pixels. |
| 1564 | func (wb *WindowBase) dialogBaseUnitsToPixels(dlus Size) (pixels Size) { |
| 1565 | base := wb.dialogBaseUnits() |
| 1566 | |
| 1567 | return Size{ |
| 1568 | int(win.MulDiv(int32(dlus.Width), int32(base.Width), 4)), |
| 1569 | int(win.MulDiv(int32(dlus.Height), int32(base.Height), 8)), |
| 1570 | } |
| 1571 | } |
| 1572 | |
| 1573 | // calculateTextSizeImpl returns text size in native pixels. |
| 1574 | func (wb *WindowBase) calculateTextSizeImpl(text string) Size { |
no test coverage detected