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

Method inWindow

source/windowing/StarPane.cpp:231–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool Pane::inWindow(Vec2I const& position) const {
232 return screenBoundRect().contains(position);
233}
234
235bool Pane::inDragArea(Vec2I const& position) const {
236 return inWindow(position) && (position[1] < (this->position()[1] + m_footerSize[1])

Callers 2

getPaneAtMethod · 0.80
updateMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected