MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getDrawableRect

Method getDrawableRect

src/OpenLoco/src/Graphics/RenderTarget.cpp:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace OpenLoco::Gfx
4{
5 Ui::Rect RenderTarget::getDrawableRect() const
6 {
7 auto zoom = zoomLevel;
8 auto left = x >> zoom;
9 auto top = y >> zoom;
10 auto right = (width >> zoom) + left;
11 auto bottom = (height >> zoom) + top;
12 return Ui::Rect::fromLTRB(left, top, right, bottom);
13 }
14
15 Ui::Rect RenderTarget::getUiRect() const
16 {

Callers 5

drawRoutingNumbersFunction · 0.80
drawStationNameFunction · 0.80
drawLabelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected