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

Method drag

source/windowing/StarPane.cpp:225–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void Pane::drag(Vec2I mousePosition) {
226 Vec2I delta = mousePosition - m_dragMouseOrigin;
227 setPosition(relativePosition() + delta);
228 m_dragMouseOrigin += delta;
229}
230
231bool Pane::inWindow(Vec2I const& position) const {
232 return screenBoundRect().contains(position);

Callers 1

sendInputEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected