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

Function windowPositionBegin

src/OpenLoco/src/Input/MouseInput.cpp:1432–1441  ·  view source on GitHub ↗

0x004C877D

Source from the content-addressed store, hash-verified

1430
1431 // 0x004C877D
1432 void windowPositionBegin(int32_t x, int32_t y, Ui::Window* window, Ui::WidgetIndex_t widgetIndex)
1433 {
1434 state(State::positioningWindow);
1435 _pressedWidgetIndex = widgetIndex;
1436 _dragLast.x = x;
1437 _dragLast.y = y;
1438 _dragWindowType = window->type;
1439 _dragWindowNumber = window->number;
1440 _windowMoved = false;
1441 }
1442
1443 static void windowPositionEnd()
1444 {

Callers 2

openFunction · 0.85
stateNormalLeftFunction · 0.85

Calls 1

stateFunction · 0.50

Tested by

no test coverage detected