pleyo.com
< PrevReference | OrigynWebBrowser | NextReference >

Principles

Event loop is very easy to understand. To use it, just create it and wait for the events. The following code for instance :
#include "BALConfiguration.h"
#include "BIEventLoop.h"

// creation
BIEventLoop* aEventLoop = createBCEventLoop();

// waiting
BIEvent* event;
aEventLoop->WaitEvent(event);

It is important to note that, to receive input and window events, you need a window. To create it :

BIWindow* aWindow = createBCWindowBal(0,0,800,600,32);

See Windowing for more details.


Generated on Wed Nov 21 20:04:18 2007 for Origyn Web Browser by Doxygen 1.5.3

pleyo.com
pleyo.com