Set a layer's destination viewport
#include <gf/gf.h> void gf_layer_set_dst_viewport( gf_layer_t layer, int x1, int y1, int x2, int y2 );
The rectangle's coordinates must be within the bounds of the target display.
gf
This function sets a layer's desination viewport.
There may be hardware limitations on viewports. Check these bits in gf_layer_info_t.caps filled in by gf_layer_query():
Changes to the layer's parameters 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_src_viewport(), gf_layer_query()
“Viewports” in the Working with Layers, Surfaces and Contexts chapter