void UIListItem::setDragPos(Vector2f pos) { curDragPos = pos.round(); parent.onItemDragged(*this, index, curDragPos); }