MCPcopy Create free account
hub / github.com/ZDoom/Raze / OnPaint

Method OnPaint

libraries/ZWidget/src/widgets/imagebox/imagebox.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void ImageBox::OnPaint(Canvas* canvas)
26{
27 if (image)
28 {
29 canvas->drawImage(image, Point((GetWidth() - (double)image->GetWidth()) * 0.5, (GetHeight() - (double)image->GetHeight()) * 0.5));
30 }
31}

Callers

nothing calls this directly

Calls 5

GetHeightFunction · 0.85
drawImageMethod · 0.80
PointClass · 0.50
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected