15 #include "config_awesomium.h" 16 #include "awWebView.h" 21 AwWebView(Awesomium::WebView * webViewPtr) {
22 _myWebView = webViewPtr;
32 loadURL2(
const string& url,
const string& frameName ,
const string& username ,
const string& password )
34 _myWebView->loadURL2(url, frameName, username, password);
39 loadHTML2(
const std::string& html,
const std::string& frameName )
41 _myWebView->loadHTML2(html, frameName);
46 loadFile2(
const std::string& file,
const std::string& frameName )
48 _myWebView->loadFile2(file, frameName);
53 render(
size_t destination,
int destRowSpan,
int destDepth,
AwWebView::Rect * renderedRect) {
55 Awesomium::Rect rect(renderedRect->x, renderedRect->y, renderedRect->width, renderedRect->height);
56 _myWebView->Awesomium::WebView::render( reinterpret_cast<unsigned char *>(destination), destRowSpan, destDepth, &rect);
60 AwWebView::render(destination, destRowSpan, destDepth, 0);
66 awesomium_cat.debug() <<
"got mouse down " << button <<
"\n";
67 _myWebView->injectMouseDown(static_cast<Awesomium::MouseButton>(button));
72 injectMouseMove(
int x,
int y) {
74 _myWebView->injectMouseMove(x,y);
MouseButton
Mouse button enumerations, used with WebView::injectMouseDown and WebView::injectMouseUp.
A simple rectangle class, used with WebView::render.
TypeHandle is the identifier used to differentiate C++ class types.