NPAPI:CoreGraphicsDrawing: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 37: Line 37:
A plugin may call NPN_GetValue() with the following NPNVariables to query the browser for its supported drawing models:
A plugin may call NPN_GetValue() with the following NPNVariables to query the browser for its supported drawing models:


#ifndef NP_NO_QUICKDRAW
#ifndef NP_NO_QUICKDRAW
NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the QuickDraw drawing model */
/* TRUE if the browser supports the QuickDraw drawing model */
#endif
NPNVsupportsQuickDrawBool = 2000
NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the CoreGraphics drawing model */
#endif
/* TRUE if the browser supports the CoreGraphics drawing model */
NPNVsupportsCoreGraphicsBool = 2001


Once the plugin finds a supported drawing model, it calls NPN_SetValue() to tell the browser which drawing model it will use.  We're adding a new NPNVariable for this:
Once the plugin finds a supported drawing model, it calls NPN_SetValue() to tell the browser which drawing model it will use.  We're adding a new NPNVariable for this:
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits