local _, GF = ...

function GF.GetListRowH()
	return GF.LIST_ROW_H_DEFAULT or GF.LIST_ROW_H or 32
end

function GF.GetApplicantRowH()
	return GF.APPLICANT_ROW_H or 33
end

function GF.GetRoleCountIconSize()
	return GF.ROLE_COUNT_ICON_DEFAULT or GF.ROLE_ICON_SIZE or 18
end

function GF.GetListRowTextY(rowH, baseY, baseH)
	baseH = baseH or GF.LIST_ROW_H_DEFAULT or GF.LIST_ROW_H or 32
	baseY = baseY or -6
	rowH = rowH or GF.GetListRowH()
	return baseY - (rowH - baseH) / 2
end

function GF.GetListRowTextYFromRow(row, baseY)
	local rowH = (row and row.GetHeight and row:GetHeight()) or 0
	if rowH <= 0 then
		rowH = GF.GetListRowH()
	end
	return GF.GetListRowTextY(rowH, baseY)
end
