openvrml::browser_event Class Reference

A browser-wide event. More...

#include <openvrml/browser.h>

Public Types

enum  type_id {
  initialized = 1,
  shutdown = 2
}
 browser_event type identifier. More...
 

Public Member Functions

type_id id () const throw ()
 Event type identifier. More...
 
browsersource () const throw ()
 The browser that emitted the event. More...
 

Detailed Description

A browser-wide event.

Member Enumeration Documentation

browser_event type identifier.

Enumerator
initialized 

An initialized event is sent once the world has loaded and all nodes in the initial scene have been initialized.

shutdown 

A shutdown event is sent once all of the nodes in the scene have been shut down.

Member Function Documentation

openvrml::browser_event::type_id openvrml::browser_event::id ( ) const
throw (
)

Event type identifier.

Returns
the event type identifier.
openvrml::browser & openvrml::browser_event::source ( ) const
throw (
)

The browser that emitted the event.

Returns
the browser that emitted the event.