NPEmbedPrint

« Gecko Plugin API Reference « Plug-in Side Plug-in API

Summary

Substructure of NPPrint that contains platform-specific information used during embedded mode printing.

Syntax

typedef struct _NPEmbedPrint
{
    NPWindow window;
    void*    platformPrint;  /* Platform-specific */
} NPEmbedPrint;

Fields

The data structure has the following fields:

window
The NPWindow the plug-in should use for printing.
platformPrint
Additional platform-specific printing information.

Description

The NPP_Print function passes a pointer to an NPPrint object (previously allocated by the browser) to the plug-in. The NPEmbedPrint structure is used when the mode field of NPPrint is set to NP_EMBED.

Unix

The plug-in location and size in the NPWindow are in page coordinates (720/ inch), but the printer requires point coordinates (72/inch).

See Also

NPFullPrint, NP_Port, NPP_Print, NPPrint, NPPrintCallbackStruct