Cut tofu and cabbage into bite-sized pieces.
Thinly slice the onion and carrot.
Heat cooking oil in a pan and stir-fry the onion and carrot.
Add the cabbage and tofu, and stir-fry together.
Season with soy sauce, salt, and pepper.
Place the stir-fried ingredients over the rice.