Example: Delayed creation of an OffscreenGecko object in C++

In C++, an instance of the wrapped object type is created immediately when the wrapper class is constructed.

Delayed creation is still possible, though: for that, the wrapper must be initialized with a null reference. Later, a new instance of the wrapper type for the desired object can be assigned.

 // Initializes as a "null reference"
 OSGK::Browser myBrowser (OSGK::Browser::Null());

 // ... do other stuff ...

 // Now actually create an object
 myBrowser = OSGK::Browser (...);

Generated on Sun Nov 2 18:15:18 2008 for OffscreenGecko by  doxygen 1.5.4