This is the OffscreenGecko API documentation. Before you hack away make sure to take a look at the object basics.
If you're programming in C, you may be interested in the list of functions.
If you're programming in C++ instead, you might be more interested in the class list.
Examples can be found in the Related Pages section.