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_layer_set_src_viewport.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_layer_set_src_viewport.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_layer_set_src_viewport.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_layer_set_src_viewport.html on line 8
Set a layer's source viewport
#include <gf/gf.h>
void gf_layer_set_src_viewport( gf_layer_t layer,
int x1,
int y1,
int x2,
int y2 );
- layer
- A pointer to a gf_layer_t handle of the layer you want to set the source viewport for.
- x1, y1, x2, y2
- The coordinates of the bounding rectangle for the destination viewport. The x1,y1 coordinates define the upper-left corner of the rectangle, and the x2, y2 coordinates define the lower-right corner.
gf
This function sets a layer's source viewport. The source viewport specifies the area of the target surface which the layer displays in the destination viewport.
There may be hardware limitations on viewports. Check these flag bits in gf_layer_info_t.caps filled in by gf_layer_query():
- GF_LAYER_CAP_PAN_SOURCE — the source viewport position can be adjusted.
- GF_LAYER_CAP_SIZE_DEST — the size of the destination viewport can be different from the size of the source viewport.
- GF_LAYER_CAP_PAN_DEST — the position of the destination viewport can be adjusted
|
Changes to the layer's paramters are enqueued. You need to call gf_layer_update() to make them take effect. |
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_layer_set_dst_viewport(),
gf_layer_query()
“Viewports” in the Working with Layers, Surfaces and Contexts chapter
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_layer_set_src_viewport.html on line 127
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_layer_set_src_viewport.html on line 127