be happy/surprised to do sth后面这个to do sth充当着什么语?

问题描述:

be happy/surprised to do sth后面这个to do sth充当着什么语?
如题

宾补