If you have two classes, tp, tf, tn, fn are just from the four ways to have prediction / target.
If you have more classes, you usually get a per class precision/recall (by taking a one-vs-all approach).
Best regards
Thomas