[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

devg_get_contextfuncs()

Get a table of your driver's context 2D drawing functions

Synopsis:

int devg_get_contextfuncs (
       disp_adapter_t *ctx,
       disp_draw_contextfuncs_t *fns,
       int tabsize);

Description:

A 2D driver must provide an entry point called devg_get_contextfuncs(). The graphics framework calls this function to get a table of your driver's context 2D drawing functions.

The arguments are:

ctx
A pointer to the disp_adapter_t structure that describes the graphics adapter.
fns
A pointer to a disp_draw_contextfuncs_t structure that this function must fill with pointers to your driver's context drawing functions.
tabsize
The size of the table, in bytes.

Use the DISP_ADD_FUNC() macro to add function pointers to the table. It checks the tabsize argument and adds a function pointer only if there's space for it in the table.

Returns:

0
Success.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

See also:

devg_get_corefuncs(), devg_get_memfuncs(), devg_get_miscfuncs(), devg_get_modefuncs(), devg_get_vcapfuncs(), devg_get_vidfuncs(), disp_adapter_t, DISP_ADD_FUNC(), disp_draw_contextfuncs_t


[Previous] [Contents] [Index] [Next]