Search completed in 1.22 seconds.
17 results for "npp_handleevent":
Your results are loading. Please wait...
NPP_HandleEvent - Archive of obsolete content
event Platform-specific value representing the event handled by the function. ...
...handled by the function. Values: MS Windows: Pointer to NPEvent structure Mac OS: Pointer to a standard Mac OS EventRecord Unix/X11: Pointer to a standard Xlib XEvent For a list of possible events, see NPEvent. Returns If the plug-in handles the event, the function should return true. If the plug-in ignores the event, the function returns false. Description The browser calls NPP_HandleEvent to tell the plug-in when events take place in the plug-in's window or drawable area. The plug-in either handles or ignores the event, depending on the value given in the event parameter of this function. For a list of event types the application is responsible for delivering to the plug-in, see the NPEvent structure. MS Windows The browser gives each windowed plug-in its own native window, ofte...
...ser window, to draw into. The plug-in has complete control over drawing and event handling within that window. Mac OS The browser does not give a windowed plug-in a native window, because the Mac OS platform does not support child windows. Instead, the windowed plug-in draws into the graphics port associated with the the browser window, at the offset that the browser specifies. For this reason, NPP_HandleEvent is only way the plug-in can receive events from its host application on Mac OS. When NPP_HandleEvent is called, the current port is set up so that its origin matches the top-left corner of the plug-in. A plug-in does not need to set up the current port for mouse coordinate translation. See Also NPEvent ...
Drawing and Event Handling - Plugins
In both cases, the drawable can be an off-screen pixmap. Drawing Plug-ins This section describes the methods and processes you use in drawing both windowed and windowless plug-ins. Processes that apply to only one of these plug-in types are described in the following sections. The plug-in uses these methods to draw plug-ins and to handle events: Plug-in methods, called by the browser: NPP_HandleEvent: Deliver a platform-specific event to the instance. NPP_Print: Request a platform-specific print operation for the instance. NPP_SetWindow: Set the window in which a plug-in draws. Browser-side methods, called by the plug-in: NPN_ForceRedraw: Force a paint message to a windowless plug-in. NPN_InvalidateRect: Invalidate an area in a windowless plug-in before repainting or refreshing. NPN_...
...tangle. The plug-in can then show the drag highlight and handle drops when they occur within the instance rectangle. The browser is also responsible for sending the plug-in all events targeted to an instance, such as mouse clicks when the cursor is within the instance rectangle or suspend and resume events when the application is switched in and out. Events are sent to the plug-in with a call to NPP_HandleEvent; for a complete list of event types, see the reference entry for NPEvent. Windows On Windows, the browser registers a window class and creates an instance of that class for the plug-in instance. The plug-in can then subclass the window to receive any events it needs. If the plug-in needs to receive periodic time messages (for example, for animation), it should use a timer or a separate thread. ...
...ndow. Mac OS does not support child windows. The native window is shared between the instance and the browser. The instance must restrict its drawing to a specified area of the shared window, and it must always save the current settings, set up the drawing environment, and restore the shared drawing environment to the previous settings. On Mac OS, events are explicitly provided to the instance by NPP_HandleEvent. Windowless Plug-ins A windowless plug-in does not require a native window to draw into. Instead it draws into a drawable (HDC on Windows or CGrafPtr on Mac OS), which can either be on-screen or off-screen. Windowless plug-ins provide the plug-in writer with some significant design possibilities: You can place a windowless plug-in within a section; other sections can exist both above and be...
...And 5 more matches
NPEvent - Archive of obsolete content
<< Gecko Plugin API Reference << Plug-in Side Plug-in API Summary Represents an event passed by NPP_HandleEvent() to a windowless plug-in. Syntax Microsoft Windows typedef struct _NPEvent { uint16 event; uint32 wParam; uint32 lParam; } NPEvent; Mac OS typedef EventRecord NPEvent; TYPE EventRecord = RECORD { what: Integer; message: LongInt; when: LongInt; where: Point; modifiers: Integer; END; XWindows typedef XEvent NPEvent; Fields NPEvent on Microsoft Windows The data structure has the following fields: event One of the following event types: WM_PAINT WM_LBUTTONDOWN WM_LBUTTONUP WM_LBUTTONDBLCLK WM_RBUTTONDOWN WM_RBUTTONUP WM_RBUTTONDBLCLK WM_MBUTTONDOWN WM_MBUTTONUP WM_MBUTTONDBLCLK WM_MOUSEMOVE WM_KEYUP ...
...r of different X11 event structures. type The type member is an int representing an event type, and indicating which structure is relevant. The event type may be any of the ollowing: GraphicsExpose FocusIn FocusOut EnterNotify LeaveNotify MotionNotify ButtonPress ButtonRelease KeyPress KeyRelease Description Microsoft Windows Description The type NPEvent represents an event passed by NPP_HandleEvent() to a windowless plug-in. For information about these events, see your Microsoft Windows documentation. Mac OS Description The NPEvent object represents an event passed by NPP_HandleEvent() to a windowless plug-in. This structure is defined as EventRecord, the event type used by Mac OS. On Mac OS, plug-ins receive the same events for both windowed and windowless plug-ins, as follows. Mouse ev...
...until the next getFocusEvent. adjustCursorEvent: Sent when the mouse enters or leaves the bounds of the instance. If your plug-in wants to set the cursor when the mouse is within the instance, set the cursor and return true. If you don't want a special cursor, return false and the browser will use the standard arrow cursor. XWindows Description The NPEvent object represents an event passed by NPP_HandleEvent() to a windowless plug-in. The NPEvent structure is defined as XEvent, the definition of the event type used by the XWindows platform. For information about the XEvent structure and XWindows events, see the XWindows documentation. As the XEvents sent to the plug-in are synthesized and there is not a native window corresponding to the plug-in rectangle, some of the members of the XEvent structures...
...ws events, see the XWindows documentation. ...
Index - Archive of obsolete content
NPAPI, Plugins NPClass is a structure that holds a set of pointers to functions that make up the behavior of an instance of an NPClass (i.e. an NPObject). 3626 NPEmbedPrint NPAPI, Plugins Substructure of NPPrint that contains platform-specific information used during embedded mode printing. 3627 NPEvent NPAPI, Plugins Represents an event passed by NPP_HandleEvent() to a windowless plug-in. 3628 NPFullPrint NPAPI, Plugins Substructure of NPPrint that contains platform-specific information used during full-page mode printing. 3629 NPIdentifier NPAPI, Plugins NPIdentifier is an opaque type used for method and property identifiers, such as strings or integers. NPIdentifiers are unique, in that for any given string or ...
... 3677 NPPVariable See NPN_SetValue. 3678 NPP_Destroy NPAPI, Plugins Deletes a specific instance of a plug-in. 3679 NPP_DestroyStream NPAPI, Plugins Tells the plug-in that a stream is about to be closed or destroyed. 3680 NPP_GetValue NPAPI, Plugins Allows the browser to query the plug-in for information. 3681 NPP_HandleEvent NPAPI, Plugins Delivers a platform-specific window event to the instance. 3682 NPP_New NPAPI, Plugins Creates a new instance of a plug-in. 3683 NPP_NewStream NPAPI, Plugins Notifies a plug-in instance of a new data stream. 3684 NPP_Print NPAPI, Plugins Requests a platform-specific print operation for an embedded or full-scre...
NPAPI plugin reference - Archive of obsolete content
called by the browser. NPByteRange Represents a particular range of bytes from a stream. NPClass NPClass is a structure that holds a set of pointers to functions that make up the behavior of an instance of an NPClass (i.e. an NPObject). NPEmbedPrint Substructure of NPPrint that contains platform-specific information 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. NPIdentifier NPIdentifier is an opaque type used for method and property identifiers, such as strings or integers. NPIdentifiers are unique, in that for any given string or integer, there is only one NPIdentifier. The lifetime of NPIdentifiers is cont...
...specific, or browser specific) members. NPP Represents a single instance of a plug-in. You specify one of these to any NPAPI function that needs to know which plug-in to work with. NPP_Destroy Deletes a specific instance of a plug-in. NPP_DestroyStream Tells the plug-in that a stream is about to be closed or destroyed. NPP_GetValue Allows the browser to query the plug-in for information. NPP_HandleEvent Delivers a platform-specific window event to the instance. NPP_New Creates a new instance of a plug-in. NPP_NewStream Notifies a plug-in instance of a new data stream. NPP_Print Requests a platform-specific print operation for an embedded or full-screen plug-in. NPP_SetValue Implemented by plugins. This call is used to inform plugins of variable information controlled by the browser. NP...
Index of archived content - Archive of obsolete content
ject NPN_SetException NPN_SetProperty NPN_SetValue NPN_SetValueForURL NPN_Status NPN_UTF8FromIdentifier NPN_UserAgent NPN_Version NPN_Write NPObject NPP NPPVariable NPP_Destroy NPP_DestroyStream NPP_GetValue NPP_HandleEvent NPP_New NPP_NewStream NPP_Print NPP_SetValue NPP_SetWindow NPP_StreamAsFile NPP_URLNotify NPP_Write NPP_WriteReady NPPrint NPPrintCallbackStruct NPRect NPRegion NPSavedData NPSetWindowCallbackStruct NPStream...
NPN_ForceRedraw - Archive of obsolete content
nction forces redrawing. ...
NPN_InvalidateRect - Archive of obsolete content
-in instance to invalidate a portion of. invalidRect The area to invalidate, specified in a coordinate system that originates at the top left of the plug-in's content area. Description Before a windowless plug-in can repaint or refresh part of its drawing area, the plug-in must first invalidate the area with either NPN_InvalidateRect() or NPN_InvalidateRegion(). NPN_InvalidateRect() causes the NPP_HandleEvent() method to pass an update event or a paint message to the plug-in. After calling this method, the plug-in receives a paint message asynchronously. The browser redraws invalid areas of the document and any windowless plug-ins at regularly timed intervals. To immediately send a paint message, the plug-in can call NPN_ForceRedraw() after calling this method. See also NPN_ForceRedraw() NPN_Invalida...
NPN_InvalidateRegion - Archive of obsolete content
instance Pointer to the current plug-in instance. invalidRegion The area to invalidate, specified in a coordinate system that originates at the top left of the plug-in. Description Before a windowless plug-in can repaint or refresh part of its drawing area, the plug-in must first invalidate the area with either NPN_InvalidateRect() or NPN_InvalidateRegion(). NPN_InvalidateRegion() causes the NPP_HandleEvent() method to pass an update event or a paint message to the plug-in. If a plug-in calls this method, it receives a paint message later. The browser redraws invalid areas of the document and windowless plug-ins at regularly timed intervals. To force a paint message, the plug-in can call NPN_ForceRedraw() after calling this method. See also NPN_ForceRedraw() NPN_InvalidateRect() NPRegion NPP ...
NPN_SetValue - Archive of obsolete content
right away what mode the plugin is designed to operate in. NPPVpluginWindowBool (Windows and Unix) specifies that the plugin operates in windowed mode. The alternative is windowless where no window messages are sent to the plugin as there is no window associated with it. In windowless mode all the browser to plugin communications related to drawing, mouse, and keyboard input are accomplished via NPP_HandleEvent. To set windowless operation, call NPN_SetValue with NPPVpluginWindowBool as the variable parameter and FALSE as the value parameter. By default, plugins are windowed. NPPVpluginTransparentBool (Windows and Unix) specifies that a plugin is either opaque or transparent. To specify an opaque mode, the plugin calls NPN_SetValue with NPPVpluginTransparentBool for the variable parameter and FALSE for...
NPP_SetWindow - Archive of obsolete content
the information 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 ...
NPAPI plug-in side API - Archive of obsolete content
these allow plug-ins to interact with the browser. The names of all of these methods begin with NPP_ to indicate that they are implemented by the plug-in and called by the browser. ...
Plug-in Development Overview - Gecko Plugin API Reference
ore repainting or refreshing. NPN_InvalidateRegion: Invalidate an area in a windowless plug-in before repainting or refreshing. The browser calls these Plug-in methods: NPP_GetValue: Query the plug-in for information. NPP_Print: Request a platform-specific print operation for the instance. NPP_SetValue: Set the browser information. NPP_SetWindow: Set the window in which a plug-in draws. NPP_HandleEvent: Deliver a platform-specific event to the instance. The plug-in can call these Netscape methods to query and set information: NPN_GetValue: Get the browser information. NPN_SetValue: Set plug-in the browser information. For information about these processes, see Drawing and Event Handling. Handling Memory Plug-in developers can take advantage of the memory features provided in the Plug-...
Plug-in Development Overview - Plugins
ore repainting or refreshing. NPN_InvalidateRegion: Invalidate an area in a windowless plug-in before repainting or refreshing. The browser calls these Plug-in methods: NPP_GetValue: Query the plug-in for information. NPP_Print: Request a platform-specific print operation for the instance. NPP_SetValue: Set the browser information. NPP_SetWindow: Set the window in which a plug-in draws. NPP_HandleEvent: Deliver a platform-specific event to the instance. The plug-in can call these Netscape methods to query and set information: NPN_GetValue: Get the browser information. NPN_SetValue: Set plug-in the browser information. For information about these processes, see Drawing and Event Handling. Handling Memory Plug-in developers can take advantage of the memory features provided in the Plug-...
Plug-in Side Plug-in API - Plugins
Deletes a specific instance of a plug-in. NPP_DestroyStream Tells the plug-in that a stream is about to be closed or destroyed. NP_GetEntryPoints Undocumented. NP_GetMIMEDescription Registers the mime types supported by the plug-in (Unix, Mac OS). NPP_GetValue Allows the browser to query the plug-in for information. NP_GetValue Allows the browser to query the plug-in for information. NPP_HandleEvent Delivers a platform-specific window event to the instance. NP_Initialize Provides global initialization for a plug-in. NPP_New Creates a new instance of a plug-in. NPP_NewStream Notifies a plug-in instance of a new data stream. NPP_Print Requests a platform-specific print operation for an embedded or full-screen plug-in. NPP_SetValue Sets information about the plug-in. NPP_SetWindow ...
Structures - Plugins
s objects in the plug-in API. Structure Summary NPAnyCallbackStruct Contains information required during embedded mode printing. NPByteRange Represents a particular range of bytes from a stream. NPEmbedPrint Substructure of NPPrint that contains platform-specific information 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...
Gecko Plugin API Reference - Plugins
n API that are available from the plug-in object. The names of all of these methods begin with NPP_ to indicate that they are implemented by the plug-in and called by the browser. For an overview of how these two sides of the plug-in API interact, see the How Plug-ins Work and Overview of Plug-in Structure sections in the introduction. NPP_Destroy NPP_DestroyStream NPP_GetValue NP_GetValue NPP_HandleEvent NP_Initialize NPP_New NPP_NewStream NPP_Print NPP_SetValue NPP_SetWindow NP_Shutdown NPP_StreamAsFile NPP_URLNotify NPP_Write NPP_WriteReady Browser Side Plug-in API This chapter describes methods in the plug-in API that are available from the browser. The names of all of these methods begin with NPN_ to indicate that they are implemented by the browser and called by the plug-in. ...