gf_surface_get_dev()

Get the handle of the graphics device currently targeted by a surface

Synopsis:

#include <gf/gf.h>

int gf_surface_get_dev( gf_surface_t surface,
                        gf_dev_t * pdev );

Arguments:

surface
The handle for the surface.
pdev
A pointer to a location where the function can store the handle of the graphics device.

Library:

gf

Description:

The gf_surface_get_dev() function gets the handle of the graphics device currently targeted by the surface.

Returns:

GF_ERR_OK
Success.
GF_ERR_PARM
The pdev argument is NULL.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_surface_attach(), gf_surface_create(), gf_surface_create_layer(), gf_surface_get_info()