Update the main display.
#include <GfWindow.h> virtual void updateScreen( gf_surface_t surface, int x, int y, int x2, int y2, int dstX, int dstY, int mode )
Updates the main display given WebView information.
The updateScreen() method is implemented in the GfCallbacks class. This code snippet is taken from the sample application.
class MyCallbacks : public GfCallbacks { public: void updateScreen(gf_surface_t surf, int x, int y, int x2, int y2, int dstX, int dstY) { gf_draw_begin(layer_context); gf_draw_blit2(layer_context, surf, layer_surface, x, y, x2, y2, dstX, dstY); gf_draw_finish(layer_context); gf_draw_end(layer_context); } void newWindow() { } };
runJavaScriptPrompt(), runJavaScriptAlert()