Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/webkit/dev_guide/updatescreen.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/webkit/dev_guide/updatescreen.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/webkit/dev_guide/updatescreen.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/webkit/dev_guide/updatescreen.html on line 8

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 )

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.

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()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/webkit/dev_guide/updatescreen.html on line 114

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/webkit/dev_guide/updatescreen.html on line 114