updateScreen()

Update the main display.

Synopsis:

#include <GfWindow.h>

virtual void updateScreen( gf_surface_t surface,
                           int x,
                           int y,
                           int x2,
                           int y2,
                           int dstX,
                           int dstY,
                           int mode )

Description:

Updates the main display given WebView information.

Arguments:

surface
The WebView surface used to update the screen.
x
The upper left coordinate of the update area.
y
The upper right coordinate of the update area.
x2
The lower left coordinate of the update area.
y2
The lower right coordinate of the update area.
dstX
The destination X coordinate.
dstY
The destination y coordinate.
mode
An integer that enables more efficient output when double-buffering. A value of 0 indicates normal processing. A value of 1 indicates intermediate processing meaning that more blits are coming.

Examples:

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()
        {
        }
};

See also:

runJavaScriptPrompt(), runJavaScriptAlert()