Search completed in 1.48 seconds.
16 results for "npwindow":
Your results are loading. Please wait...
NPWindow - Archive of obsolete content
<< Gecko Plugin API Reference << Plug-in Side Plug-in API Summary Contains information about the target into which the plug-in instance can draw. ...
...Mac OS: window is a pointer to an NP_Port. x, y The x and y coordinates for the top left corner of the plug-in relative to the page (and thus rel...
...Mac OS: window is a pointer to an NP_Port. x, y The x and y coordinates for the top left corner of the plug-in relative to the page (and thus relative to the origin of the drawable). Should not be mod...
...And 4 more matches
Drawing and Event Handling - Plugins
s, depending on the platform. Windowless plug-ins can be opaque or transparent. A windowless plug-in draws itself only in response to a paint message from the browser. For information about the way HTML determines plug-in display mode, see Using HTML to Display Plug-ins. NOTE: Windowless plug-ins were not supported on the X Window System platform prior to Gecko 1.9 Alpha 7 (bug 137189). The NPWindow Structure When a plug-in is loaded, it is drawn into a target area. This target is either the windowed plug-in's native window, or the drawable of a windowless plug-in. The NPWindow structure represents either the native window or a drawable. This structure contains information about coordinate position, size, the state of the plug-in (windowed or windowless), and some platform-specific informat...
...wable. This structure contains information about coordinate position, size, the state of the plug-in (windowed or windowless), and some platform-specific information. NOTE: When a plug-in is drawn to a window, the plug-in is responsible for preserving state information and ensuring that the original state is restored. ...
...ess), and some platform-specific information. NOTE: When a plug-in is drawn to a window, the plug-in is responsible for preserving state information and ensuring that the original state is restored. For windowless plug-ins, the browser calls the NPP_SetWindow method with an NPWindow structure that represents a drawable. For windowed plug-ins, the browser calls the NPP_SetWindow method with an NPWindow structure that represents a window. ...
...And 15 more matches
NPEmbedPrint - Archive of obsolete content
platformPrint Additional platform-specific printing information. Mac OS: THPrint Unix: Pointer to a NPPrintCallbackStruct. ...
... platformPrint Additional platform-specific printing information. Mac OS: THPrint Unix: Pointer to a NPPrintCallbackStruct. ...
...e for printing. platformPrint Additional platform-specific printing information. Mac OS: THPrint Unix: Pointer to a NPPrintCallbackStruct. 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 ...
NPP_SetWindow - Archive of obsolete content
Must be embedded or full-screen. window Pointer to the window into which the instance draws. The window structure contains a window handle and values for top left corner, width, height, and clipping rectangle (see note on Unix below). ...
...Unix below). Returns If successful, the function returns NPERR_NO_ERROR. If unsuccessful, the plug-in is not loaded and the function returns an error code. For possible values, see Error Codes. Description The browser calls NPP_SetWindow after creating the instance to allow drawing to begin. Subsequent calls to NPP_SetWindow indicate changes in size or position; these calls pass the same NPWindow object each time, but with different values. If the window handle is set to null, the window is destroyed. In this case, the plug-in must not perform any additional graphics operations on the window and should free any associated resources. The data structure passed in NPP_SetWindow is an NPWindow object, which contains the coordinates of the instance's area and various platform-specific data. T...
...about the new window to the previous window (if one existed) to account for any changes. For windowless plugins, NPP_SetWindow is called with a clipRect of 0,0,0,0 to signal that the plugin is not visible. NOTE: NPP_SetWindow is useful only for embedded (NP_EMBED) or full-screen (NP_FULL) plug-ins, which are drawn into windows. It is irrelevant for hidden plug-ins. See Also NPP_HandleEvent, NPWindow, NP_Port ...
NP_Port - Archive of obsolete content
<< Gecko Plugin API Reference << Plug-in Side Plug-in API Summary Used on Mac OS only Contains information required by the window field of an NPWindow structure. Syntax typedef struct NP_Port { CGrafPtr port; /* Grafport */ int32 portx; /* position inside the topmost window */ int32 porty; } NP_Port; Fields The data structure has the following fields: port Standard Mac OS port into which the plug-in should draw. portx, porty Top-left corner of the plug-in rectangle in port coordinates (taking the scroll position into account). ...
...fPtr port; /* Grafport */ int32 portx; /* position inside the topmost window */ int32 porty; } NP_Port; Fields The data structure has the following fields: port Standard Mac OS port into which the plug-in should draw. portx, porty Top-left corner of the plug-in rectangle in port coordinates (taking the scroll position into account). Description On Mac OS, the window field of an NPWindow structure points to an NP_Port object, which is allocated by the browser. The NP_Port is valid for the lifetime of the NPWindow, that is, until NPP_SetWindow is called again with a different value or the instance is destroyed. Since the port is shared between the plug-in and other plug-ins and the browser, the plug-in should always do the following: Draw only within the area designated by the N...
...he instance is destroyed. Since the port is shared between the plug-in and other plug-ins and the browser, the plug-in should always do the following: Draw only within the area designated by the NPWindow. ...
Index - Archive of obsolete content
F8 bytes. 3700 NPVariant NPAPI, Plugins NPVariant is a struct that holds a value and the type of that value. The value is held in a union, and the type is one of types defined in the NPVariantType enumeration. 3701 NPVariantType NPAPI, Plugins NPVariantType is an enumeration that is used to identify the data type of an NPVariant structure. 3702 NPWindow NPAPI, Plugins Contains information about the target into which the plug-in instance can draw. 3703 NP_GetMIMEDescription Add-ons, NPAPI, Plugins NP_GetMIMEDescription returns a supported MIME Type list for your plugin. It works on Unix (Linux) and MacOS. On Windows you have to define supported mimetypes in the dll resource file. 3704 NP_GetValue NPAP...
... MacOS. On Windows you have to define supported mimetypes in the dll resource file. 3704 NP_GetValue NPAPI, Plugins Allows the browser to query the plug-in for information. 3705 NP_Initialize NPAPI, Plugins Provides global initialization for a plug-in. 3706 NP_Port NPAPI, Plugins Contains information required by the window field of an NPWindow structure. 3707 NP_Shutdown NPAPI, Plugins Provides global deinitialization for a plug-in. 3708 Samples and Test Cases Add-ons, NeedsContent, Plugins Collections of NPAPI plugin samples can be found in the Seamonkey source code at /modules/plugin/sdk/samples. 3709 Shipping a plugin as a Toolkit bundle Add-ons, Guide, Plugins One of th...
NPSetWindowCallbackStruct - Archive of obsolete content
ow or drawable. colormap Standard X Toolkit attribute. Colormap for the plug-in window or drawable. depth Standard X Toolkit attribute. Depth of the plug-in window or drawable. Description Callback structures are used to pass platform-specific information. The NPSetWindowCallbackStruct object, allocated by the browser, contains information required for the ws_info field of an NPWindow. The NPP_SetWindow() function passes a pointer to this structure to the plug-in. The structure is valid for the lifetime of the NPWindow, that is, until NPP_SetWindow() is called again or the instance is destroyed. The type field of this structure always contains NP_SetWindow. The remaining fields are Standard X Toolkit attributes of the top-level shell window in the browser window hierarchy. See...
...ction passes a pointer to this structure to the plug-in. The structure is valid for the lifetime of the NPWindow, that is, until NPP_SetWindow() is called again or the instance is destroyed. The type field of this structure always contains NP_SetWindow. The remaining fields are Standard X Toolkit attributes of the top-level shell window in the browser window hierarchy. ...
NPAPI plugin reference - Archive of obsolete content
MEDescription NP_GetMIMEDescription returns a supported MIME Type list for your plugin. It works on Unix (Linux) and MacOS. On Windows you have to define supported mimetypes in the dll resource file. NP_GetValue Allows the browser to query the plug-in for information. NP_Initialize Provides global initialization for a plug-in. NP_Port Contains information required by the window field of an NPWindow structure. NP_Shutdown Provides global deinitialization for a plug-in. NPAnyCallbackStruct Contains information required during embedded mode printing. NPAPI plug-in side API This chapter describes methods in the plug-in API that are available from the plug-in object; these allow plug-ins to interact with the browser. The names of all of these methods begin with NPP_ to indicate that they a...
...s is not the same thing as an entire UTF-8 character, which may be comprised of multiple NPUTF8 bytes. NPVariant NPVariant is a struct that holds a value and the type of that value. The value is held in a union, and the type is one of types defined in the NPVariantType enumeration. NPVariantType NPVariantType is an enumeration that is used to identify the data type of an NPVariant structure. NPWindow Contains information about the target into which the plug-in instance can draw. ...
Structures - Plugins
ormation used during embedded mode printing. NPEvent Represents an event passed by NPP_HandleEvent to a windowless plug-in. NPFullPrint Substructure of NPPrint that contains platform-specific information used during full-page mode printing. NPP Represents a single instance of a plug-in. NP_Port Contains information required by the window field of an NPWindow structure. NPPrint Contains information the plug-in needs to print itself in full-page or embedded mode. NPPrintCallbackStruct Contains information required by the platformPrint field of the NPEmbedPrint during embedded mode printing. NPRect Represents a rectangular area of a page. NPRegion Represents a platform-defined region of a page. NP...
... NPSavedData Block of instance information saved after the plug-in is deleted; can be returned to the plug-in. NPSetWindowCallbackStruct Contains information about the plug-in's Unix window environment. NPStream Represents a stream of data either produced by the browser and consumed by the plug-in, or produced by the plug-in and consumed by the browser. NPWindow Contains information about the target into which the plug-in instance can draw. << PreviousNext >> ...
Gecko Plugin API Reference - Plugins
uilding, Platforms, and Compilers Building Carbonized Plug-ins for Mac OS X Type Libraries Installing Plug-ins Native Installers XPI Plug-ins Installations Plug-in Installation and the Windows Registry Initialization and Destruction Initialization Instance Creation Instance Destruction Shutdown Initialize and Shutdown Example Drawing and Event Handling The NPWindow Structure Drawing Plug-ins Printing the Plug-in Setting the Window Getting Information Windowed Plug-ins Mac OS Windows Unix Event Handling for Windowed Plug-ins Windowless Plug-ins Specifying That a Plug-in Is Windowless Invalidating the Drawing Area Forcing a Paint Message Making a Plug-in Opaque Making a Plug-in Transparent Creating ...
...nvoke NPN_InvokeDefault NPN_Evaluate NPN_GetProperty NPN_SetProperty NPN_RemoveProperty NPN_HasProperty NPN_HasMethod NPN_SetException NPClass Structures NPAnyCallbackStruct NPByteRange NPEmbedPrint NPEvent NPFullPrint NPP NP_Port NPPrint NPPrintCallbackStruct NPRect NPRegion NPSavedData NPSetWindowCallbackStruct NPStream NPWindow Constants Error Codes Result Codes Plug-in Version Constants Version Feature Constants External resources External projects and articles for plugin creation Original document information Copyright Information: Netscape Communication ...
Index of archived content - Archive of obsolete content
NPP_SetWindow NPP_StreamAsFile NPP_URLNotify NPP_Write NPP_WriteReady NPPrint NPPrintCallbackStruct NPRect NPRegion NPSavedData NPSetWindowCallbackStruct NPStream NPString NPUTF8 NPVariant NPVariantType NPWindow NP_GetMIMEDescription NP_GetValue NP_Initialize NP_Port NP_Shutdown Samples and Test Cases Shipping a plugin as a Toolkit bundle Supporting private browsing in plugins The First Install Problem Writing a plugin for Mac OS X XEmbed Extension for Mozilla Plu...
Plugin Architecture - Archive of obsolete content
t node that it exists now (nsIObjectLoadingContent::hasNewFrame). That function will post an event and when that fires, asks the frame to instantiate the plugin. ...
NPAPI plugin developer guide - Archive of obsolete content
uilding, Platforms, and Compilers Building Carbonized Plug-ins for Mac OS X Type Libraries Installing Plug-ins Native Installers XPI Plug-ins Installations Plug-in Installation and the Windows Registry Initialization and Destruction Initialization Instance Creation Instance Destruction Shutdown Initialize and Shutdown Example Drawing and Event Handling The NPWindow Structure Drawing Plug-ins Printing the Plug-in Setting the Window Getting Information Windowed Plug-ins Mac OS Windows Unix Event Handling for Windowed Plug-ins Windowless Plug-ins Specifying That a Plug-in Is Windowless Invalidating the Drawing Area Forcing a Paint Message Making a Plug-in Opaque Making a Plug-in Transparent Creating ...
NPRect - Archive of obsolete content
eft; uint16 bottom; uint16 right; } NPRect; Fields The data structure has the following fields: top, left, bottom, right The top, left, bottom, and right sides of the rectangle. Description NPRect defines the bounding box of the area of the plug-in window to be updated, painted, invalidated, or clipped to. See also NPN_ForceRedraw() NPN_InvalidateRect() NPN_InvalidateRegion() NPRegion NPWindow ...
NPRegion - Archive of obsolete content
ion; Note: This may need to be updated for the Cocoa event model. XWindows: typedef Region NPRegion; Description NPRegion defines the region of the plug-in window to be updated, painted, invalidated, or clipped to. For information about the region type definition used by your platform, see your platform documentation. See also NPN_ForceRedraw() NPN_InvalidateRect() NPN_InvalidateRegion() NPWindow NPRect ...
Plug-in Basics - Plugins
that are direct library entry points and not related to any particular plug-in instance. Browser methods are functions implemented by Gecko; the plug-in calls these functions. The names of all the browser functions in the API begin with NPN_, for example, NPN_Write. Data structures are plug-in-specific types defined for use in the Plug-in API. The names of structures begin with NP, for example, NPWindow. All plug-in names in the API start with NP. In general, the operation of all API functions is the same on all platforms. Where this varies, the reference entry for the function in the reference section describes the difference. Plug-ins and platform independence A plug-in is a dynamic code module that is native to the specific platform on which the browser is running. It is a code library, r...