pleyo.com

/src/trunk2/BAL/Configuration/BALConfiguration.h File Reference

OWBAL configuration and object creation management. More...

#include <stdio.h>
#include <stdlib.h>
#include "RGBA32Array.h"
#include "BIWindowEvent.h"

Go to the source code of this file.

Namespaces

namespace  WebCore
namespace  BAL

Defines

#define BALNotImplemented()
#define IMPLEMENT_CREATE_DELETE(interfacename, classname)
#define IMPLEMENT_GET_DELETE(interfacename, classname)

Functions

BIImageDecoder * BAL::createBCJPEGImageDecoder ()
BIImageDecoder * BAL::createBCPNGImageDecoder ()
BIImageDecoder * BAL::createBCGIFImageDecoder ()
BIImageDecoder * BAL::createBCBMPImageDecoder ()
void BAL::deleteBIImageDecoder (BIImageDecoder *)
BIEventLoopBAL::getBIEventLoop ()
void BAL::deleteBIEventLoop ()
BIMouseEvent * BAL::createBIMouseEvent ()
BIWindowEvent * BAL::createBIWindowEvent (BIWindowEvent::ENUM_WINDOW, bool bGain, const WebCore::IntRect &rect, const BTWidget *)
BIKeyboardEvent * BAL::createBIKeyboardEvent (const WebCore::String &aText, const WebCore::String &aUnmodifiedText, const WebCore::String &aKeyIdentifier, bool bIsKeyUp, bool bShiftKey, bool bCtrlKey, bool bAltKey, bool bMetaKey, bool bIsAutoRepeat, int aVKey)
BIEvent * BAL::createBITimerEvent ()
BIWindowManager * BAL::getBIWindowManager ()
void BAL::deleteBIWindowManager ()
BIObserverService * BAL::getBIObserverService ()
BIResourceHandleManager * BAL::getBIResourceHandleManager ()
void BAL::deleteBIResourceHandleManager ()
BIGlyphBuffer * BAL::createBIGlyphBuffer ()
void BAL::deleteBIGlyphBuffer (BIGlyphBuffer *)
BIFontPlatformDataPrivate * BAL::createBIFontPlatformDataPrivate ()
void BAL::deleteBIFontPlatformDataPrivate (BIFontPlatformDataPrivate *data)
BIGraphicsContext * BAL::createRGBA32GraphicsContext (unsigned width, unsigned height)
void BAL::deleteRGBA32GraphicsContext (BIGraphicsContext *)
BIGraphicsContext * BAL::getBIGraphicsContext ()
BIGraphicsContext * BAL::createBIGraphicsContext ()
BIGraphicsContext * BAL::createFakeBIGraphicsContext ()
void BAL::deleteBIGraphicsContext (BIGraphicsContext *)
BTAffineTransform & BAL::createBiAffineTransform ()
BTAffineTransform & BAL::createBiAffineTransform (double a, double b, double c, double d, double tx, double ty)
BIGraphicsDevice * BAL::getBIGraphicsDevice ()
void BAL::deleteBIGraphicsDevice ()
BIXSLTBAL::createBIXSLT ()
BIXMLBAL::createBIXML ()
BIInternationalization * BAL::getBIInternationalization ()
BICookieJargetBICookieJar ()
void deleteBICookieJar (BICookieJar *)


Detailed Description

OWBAL configuration and object creation management.

Purpose of this file is to centralize creation of object. All creation returns AN INTERFACE, and NOT a object. This way, you can create an object without a knowledge of its implementation.

Methods that starts with *create* create a new instance at each call. Methods that starts with *get* create a singleton.


Define Documentation

 
#define BALNotImplemented (  ) 

#define IMPLEMENT_CREATE_DELETE ( interfacename,
classname   ) 

Value:

namespace BAL { \
        interfacename* create##interfacename() { \
            return new classname(); \
        } \
        void delete##interfacename(interfacename* p) { \
            delete p; \
        } \
    }

#define IMPLEMENT_GET_DELETE ( interfacename,
classname   ) 

Value:

namespace BAL { \
        static interfacename* __##classname = 0; \
        interfacename* get##interfacename() { \
            if (__##classname) \
                return __##classname; \
            else \
                return __##classname = new classname(); \
        } \
        void delete##interfacename() { \
            if (__##classname) { \
                delete __##classname; \
                __##classname = NULL; \
            } \
        } \
    }


Function Documentation

BICookieJar* getBICookieJar (  ) 

void deleteBICookieJar ( BICookieJar  ) 


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

pleyo.com
pleyo.com