#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 *) |
| BIEventLoop * | BAL::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 () |
| BIXSLT * | BAL::createBIXSLT () |
| BIXML * | BAL::createBIXML () |
| BIInternationalization * | BAL::getBIInternationalization () |
| BICookieJar * | getBICookieJar () |
| void | deleteBICookieJar (BICookieJar *) |
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 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; \ } \ } \ }
| BICookieJar* getBICookieJar | ( | ) |
| void deleteBICookieJar | ( | BICookieJar * | ) |