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/gf/dev_guide/api/gf_draw_rect.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/gf/dev_guide/api/gf_draw_rect.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/gf/dev_guide/api/gf_draw_rect.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/gf/dev_guide/api/gf_draw_rect.html on line 8

gf_draw_rect()

Draw a filled rectangle

Synopsis:

#include <gf/gf.h>

int gf_draw_rect( gf_context_t context,
                  int x1,
                  int y1,
                  int x2,
                  int y2 );

Arguments:

context
The handle for the draw context.
x1, y1
The coordinates of the upper-left corner of the rectangle.
x2, y2
The coordinates of the lower-right corner of the rectangle.

Library:

gf

Description:

This function draws a filled rectangle using the given rendering context. The filled rectangle is rendered using the context's current foreground color.

Returns:

GF_ERR_OK
Success.
GF_ERR_PARM
Invalid rectangle.
GF_ERR_NOLOCK
The hardware isn't locked; check to ensure gf_draw_begin() was called successfully.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_draw_bitmap(), gf_draw_blit1(), gf_draw_blit2(), gf_draw_blitscaled(), gf_draw_flush(), gf_draw_poly_fill(), gf_draw_polyline()


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/gf/dev_guide/api/gf_draw_rect.html on line 136

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/gf/dev_guide/api/gf_draw_rect.html on line 136