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

Method inDragArea

source/windowing/StarPane.cpp:235–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235bool Pane::inDragArea(Vec2I const& position) const {
236 return inWindow(position) && (position[1] < (this->position()[1] + m_footerSize[1])
237 || position[1] > (this->position()[1] + (m_footerSize[1] + m_bodySize[1])));
238}
239
240Vec2I Pane::cursorRelativeToPane(Vec2I const& position) const {
241 return position - this->position();

Callers

nothing calls this directly

Calls 1

positionMethod · 0.45

Tested by

no test coverage detected