Visit Mozilla.org

NPRect

From MDC

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

Contents

[edit] Summary

Represents a rectangular area of a page.

[edit] Syntax

typedef struct _NPRect
{
    uint16 top;
    uint16 left;
    uint16 bottom;
    uint16 right;
} NPRect;

[edit] Fields

The data structure has the following fields:

top, left, bottom, right
Top, left side, bottom, and right side of the rectangle.

[edit] Description

NPRect defines the bounding box of the area of the plug-in window to be updated, painted, invalidated, or clipped to.

[edit] See Also

NPN_ForceRedraw, NPN_InvalidateRect, NPN_InvalidateRegion, NPRegion, NPWindow