MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / areaSize

Method areaSize

source/windowing/StarScrollArea.cpp:296–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296Vec2I ScrollArea::areaSize() const {
297 Vec2I s = size();
298 if (horizontalScroll())
299 s[1] -= ScrollAreaBorder;
300 if (verticalScroll())
301 s[0] -= ScrollAreaBorder;
302 return s;
303}
304
305void ScrollArea::scrollAreaBy(Vec2I const& offset) {
306 m_scrollOffset += offset;

Callers 1

sizeRatioMethod · 0.80

Calls 1

sizeFunction · 0.85

Tested by

no test coverage detected