My Project
|
an instance of HTML browser. More...
#include <HTMLBrowserManager.h>
Public Member Functions | |
CHTMLBrowser (CHTMLBrowserManager *manager, int nBrowserWindowId) | |
virtual void | onPageChanged (const IEmbeddedBrowserWindowObserver::EventType &eventIn) |
virtual void | onNavigateBegin (const IEmbeddedBrowserWindowObserver::EventType &eventIn) |
virtual void | onNavigateComplete (const IEmbeddedBrowserWindowObserver::EventType &eventIn) |
virtual void | onUpdateProgress (const IEmbeddedBrowserWindowObserver::EventType &eventIn) |
virtual void | onStatusTextChange (const IEmbeddedBrowserWindowObserver::EventType &eventIn) |
virtual void | onLocationChange (const IEmbeddedBrowserWindowObserver::EventType &eventIn) |
virtual void | onClickLinkHref (const IEmbeddedBrowserWindowObserver::EventType &eventIn) |
void | Release () |
something like delete this | |
bool | setSize (int widthIn, int heightIn) |
bool | scrollByLines (int linesIn) |
bool | setBackgroundColor (const int redIn, const int greenIn, const int blueIn) |
bool | setEnabled (bool enabledIn) |
bool | addObserver (IEmbeddedBrowserWindowObserver *subjectIn) |
bool | remObserver (IEmbeddedBrowserWindowObserver *subjectIn) |
bool | navigateTo (const std::string uriIn) |
bool | navigateStop () |
bool | canNavigateBack () |
bool | navigateBack () |
bool | canNavigateForward () |
bool | navigateForward () |
const unsigned char * | grabBrowserWindow () |
const unsigned char * | getBrowserWindowPixels () |
const int | getBrowserWidth () |
const int | getBrowserHeight () |
const int | getBrowserDepth () |
const int | getBrowserRowSpan () |
bool | mouseDown (int xPosIn, int yPosIn) |
bool | mouseUp (int xPosIn, int yPosIn) |
bool | mouseMove (int xPosIn, int yPosIn) |
bool | keyPress (int keyCodeIn) |
bool | focusBrowser (bool focusBrowserIn) |
void | setNoFollowScheme (std::string schemeIn) |
std::string | getNoFollowScheme () |
int | GetBrowserWindowID () |
get window id | |
LRESULT | SendMessage (UINT Msg, WPARAM wParam, LPARAM lParam) |
send a windows message to the inner flash player window. More... | |
LRESULT | PostMessage (UINT Msg, WPARAM wParam, LPARAM lParam) |
post a windows message to the inner flash player window. More... | |
const char * | GetName () |
get the window name. More... | |
void | InvalidateDeviceObjects () |
release d3d texture. More... | |
LPDIRECT3DTEXTURE9 | GetTexture () |
get the texture. | |
const string & | GetLastNavURL () |
the last url when navigateTo() is called. More... | |
Public Attributes | |
string | m_filename |
file name that the current texture is associated with. | |
string | m_LastNavURL |
the last url when navigateTo() is called. More... | |
int | m_nBrowserWindowId |
CHTMLBrowserManager * | m_manager |
float | m_fTimeOut |
if a flash player is never used for this number of time, it will be deleted. | |
float | m_fLastUsedTime |
last time the GetTexture() is called. | |
LPDIRECT3DTEXTURE9 | m_pTexture |
dynamic d3d texture | |
D3DFORMAT | m_TextureFormat |
bool | m_bUseDynamicTextures |
bool | m_bTextureUpdated |
whether the texture has been update in this rendering frame. More... | |
bool | m_bNeedUpdate |
this flag is set to true every frame move. and set to false when the target image is saved to temp buffer | |
an instance of HTML browser.
|
inline |
the last url when navigateTo() is called.
default is ""
const char * ParaEngine::CHTMLBrowser::GetName | ( | ) |
get the window name.
void ParaEngine::CHTMLBrowser::InvalidateDeviceObjects | ( | ) |
release d3d texture.
LRESULT ParaEngine::CHTMLBrowser::PostMessage | ( | UINT | Msg, |
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
post a windows message to the inner flash player window.
in most cases: we will forward mouse and key messages to the flash player using this function.
LRESULT ParaEngine::CHTMLBrowser::SendMessage | ( | UINT | Msg, |
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
send a windows message to the inner flash player window.
in most cases: we will forward mouse and key messages to the flash player using this function.
bool ParaEngine::CHTMLBrowser::m_bTextureUpdated |
whether the texture has been update in this rendering frame.
if there are multiple calls to GetTexture() in the same rendering frame, we will only copy texture once.
string ParaEngine::CHTMLBrowser::m_LastNavURL |
the last url when navigateTo() is called.
default is ""