|
My Project
|
managing HTML browsers. More...
#include <HTMLBrowserManager.h>
Public Types | |
| enum | HTMLBROWSER_EVENTS { EM_onPageChanged = 0, EM_onNavigateBegin, EM_onNavigateComplete, EM_onUpdateProgress, EM_onStatusTextChange, EM_onLocationChange, EM_onClickLinkHref } |
| HTML browser events. | |
Public Member Functions | |
| bool | LoadHTMLManagerPlugin () |
| HRESULT | InitDeviceObjects () |
| HRESULT | RestoreDeviceObjects () |
| HRESULT | InvalidateDeviceObjects () |
| HRESULT | DeleteDeviceObjects () |
| void | Cleanup () |
| clean up. More... | |
| void | LoadAsset () |
| initialize all assets created so far to accelerate loading during game play. More... | |
| void | UnloadAsset () |
| uninitialize all assets created so far to save some memory | |
| void | GarbageCollectAll () |
| Garbage Collect(free resources of) all unused entity. More... | |
| bool | init (std::string appBaseDirIn, std::string profileDirNameIn) |
| bool | reset () |
| bool | clearCache () |
| int | getLastError () |
| const std::string | getVersion () |
| void | setBrowserAgentId (std::string idIn) |
| int | GetMaxWindowNum () |
| void | SetMaxWindowNum (int nNum) |
| CHTMLBrowser * | createBrowserWindow (const char *sFileName, int browserWindowWidthIn, int browserWindowHeightIn) |
| create a new browser window with the given name and dimension in pixels. | |
| bool | destroyBrowserWindow (int browserWindowIdIn) |
| CHTMLBrowser * | GetBrowserWindow (const char *sFileName) |
| it may return NULL, if the browser does not exist | |
| CHTMLBrowser * | GetBrowserWindow (int nWindowID) |
| it may return NULL, if the browser does not exist | |
| CHTMLBrowser * | CreateGetBrowserWindow (const char *sFileName) |
| first get, if not exist if will create using default parameters. More... | |
| IHTMLBrowserManager * | GetInterface () |
| get the main plugin interface | |
| void | SetEventScript (int nEvent, const SimpleScript *script) |
| if you want to erase an event script, use script=NULL; | |
| const SimpleScript * | GetEventScript (int nEvent) const |
| bool | HasEvent (int etype) |
| check if the object has a certain event handler : script type. More... | |
| bool | ActivateScript (int etype, const string &code) |
| call events. More... | |
managing HTML browsers.
| bool ParaEngine::CHTMLBrowserManager::ActivateScript | ( | int | etype, |
| const string & | code | ||
| ) |
call events.
| void ParaEngine::CHTMLBrowserManager::Cleanup | ( | ) |
clean up.
this function should be called just before the application exits.
| CHTMLBrowser * CHTMLBrowserManager::CreateGetBrowserWindow | ( | const char * | sFileName | ) |
first get, if not exist if will create using default parameters.
| void ParaEngine::CHTMLBrowserManager::GarbageCollectAll | ( | ) |
Garbage Collect(free resources of) all unused entity.
any inactive one in the last frame will be removed.
| bool ParaEngine::CHTMLBrowserManager::HasEvent | ( | int | etype | ) |
check if the object has a certain event handler : script type.
| void ParaEngine::CHTMLBrowserManager::LoadAsset | ( | ) |
initialize all assets created so far to accelerate loading during game play.
1.8.12