Generalized Wigner functions